Source Codes of Gallery Files - "Waterfall"


This page contains the source code for the "Waterfall.vobj" file.

This source code may be edited in any text editor and saved as a .vobj file.

Please feel free to edit this source code to see the effects of changes. You can try changing color values, animation speeds, or whatever else you'd like to explore.

Copy the ScriptV code below into a text editor. Once you've finished editing the code, save it as a new file with a ".vobj" extension. Click here for instructions on running the edited file.



object Waterfall:Perspective
{
	style=(Use3DAcc);
	width=300p;
	height=600p;
	eye_position=(0,0,100);
	orientation=(0,1,0);
	view_near=10;
	view_far=1000;
	object material:Material
	{
		plane_normal=(0,0,1);
	};
	object light:DirectionalLight
	{
		direction=(0,-0.9909,-0.2);
		ambient=(0.2,0.2,0.2);
		color=(255, 255, 255);
		intensity=0;
	};
	object :DirectionalLight
	{
		direction=(0.84813,-0.52715,0.05271);
		color=(153, 153, 255);
	};
	object :DirectionalLight
	{
		direction=(-0.77055,0.63421,-0.06342);
		color=(204, 204, 255);
	};
	object rock_back:Shape3D
	{
		center=(0.08016,-0.73873,-30.1626);
		object surface:Plane
		{
			x_size=110;
			y_size=220;
			i_num=16;
			j_num=16;
		};
		object material:Material
		{
			diffuse=(255, 255, 255, 255);
			ambient=(102, 102, 204, 255);
			specular=(178, 178, 178, 255);
			emission=(255, 255, 255, 255);
			shininess=0.07812;
			plane_normal=(0,0,1);
			object diffuse_map:TextureImage
			{
				pixmap="rock_back.jpg";
			};
		};
	};
	object default_camera:Camera
	{
		eye_position=(0,1,10);
		orthogonal=False;
	};
	object :ParticleEmitter
	{
		predefine object particle:Image;
		emit_pos=(0,92,0);
		emit_pos_shift=(100,50,1);
		emit_interval=0:0:0:400;
		emit_number=1;
		max_gen=2;
		min_gen=2;
		style=(Infinite,SimpleTranslate,DragonMove,AutoStart);
		interval=0:0:0:20;
		min_life=0:0:2;
		max_life=0:0:2;
		attraction=120;
		resistance=0.001;
		collision="Stone";
		shield_stiffness=1;
		direction=(-0.0995,-0.99503,-0.0004);
		direction_shift=(0,0,0);
		speed=100;
		speed_shift=10;
		size=8;
		size_evolve=((Percentage),null,100,200,0);
		par_scale=(0.5,1,1);
		angle_evolve=((),null,0,180,-180);
		turbulence_evolve=((),null,1,100,0);
		alpha_evolve=((SmoothCurve,ForceMax,ForceMin,Percentage),(0,100,1,61.23595),100,100,0);
		split_max_num=20;
		split_interval=2000;
		trail_length=100;
		trail_start_alpha=0.5;
		object material:Material
		{
			style=(ClampModX,ClampModY);
			diffuse=(255, 255, 255, 243);
			ambient=(12, 12, 12, 255);
			specular=(178, 178, 178, 255);
			emission=(255, 255, 255, 255);
			shininess=0.07812;
			transparency=0.04705;
			plane_normal=(0,0,1);
			object tex_modifier:Turbulence
			{
				scatter=2;
				intensity=0.05;
				yfactor=0;
				ani_style=(Evolving,AutoStart,PingPong);
			};
		};
		object particle:Image
		{
			pixmap="tide1.png";
			draw_style=(Hidden);
		};
	};
	object plants:Shape3D
	{
		center=(0.30697,-51.38303,18.01371);
		object surface:Plane
		{
			x_size=70;
			y_size=35;
			i_num=16;
			j_num=16;
		};
		object material:Material
		{
			emission=(255, 255, 255, 255);
			shininess=0.07812;
			plane_normal=(0,0,1);
			object diffuse_map:TextureImage
			{
				pixmap="plants1.png";
			};
		};
	};
	object shield:Shape3D
	{
		center=(5.24379,-21.59791,-0.00438);
		draw_style=(Hidden);
		group="Stone";
		object surface:Sphere
		{
			r=10.09121;
			i_num=16;
			j_num=16;
		};
	};
};

Return to Hall of Animated Amusements

    Copyright © 1998, 1999, 2000, 2001 Visviva Software, Inc. All rights reserved. Last revised: February 20, 2001
    This site is best viewed in 16-bit or true color display mode.