home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
VRML Tools for 3D Cyberspace
/
VRML_Tools_For_3D_Cyberspace.iso
/
vream
/
data.1
/
plugin.vre
< prev
next >
Wrap
Text File
|
1996-02-09
|
5KB
|
184 lines
// VREAM Extension File
// activate links
vrc_links,s,1;
// set properties for the lights
VRC_REFERENCE_OBJECT,S,rightglow;
vrc_object_display,s,0;
VRC_REFERENCE_OBJECT,S,rightspot;
vrc_auto_rotate_relative_limits,s,1,0,0, -1.2,1.2,0,0, 0,0;
VRC_REFERENCE_OBJECT,S,rightpitch;
vrc_auto_rotate_relative_limits,s,0,1,0, 0,0,-.3,.3, 0,0;
VRC_REFERENCE_OBJECT,S,rightbulb;
vrc_light,s,5,255,255,255;
VRC_REFERENCE_OBJECT,S,leftglow;
vrc_object_display,s,0;
VRC_REFERENCE_OBJECT,S,leftspot;
vrc_auto_rotate_relative_limits,s,1,0,0, -1.2,1.2,0,0, 0,0;
VRC_REFERENCE_OBJECT,S,leftpitch;
vrc_auto_rotate_relative_limits,s,0,1,0, 0,0,-.3,.3, 0,0;
VRC_REFERENCE_OBJECT,S,leftbulb;
vrc_light,s,5,255,255,255;
// LINKS
// note: the variable @ui_0 has z value of zero on load
// on load set new position for spot lights
vrc_link,s,null,rightglow,0,0,10;
vrc_variable,c,eq,@ui_0,0;
vrc_object_translate_relative,r,170,-150,-200;
vrc_link,s,null,leftglow,0,0,15;
vrc_variable,c,eq,@ui_0,0;
vrc_object_translate_relative,r,230,-150,-200;
//start counter for animation
vrc_link,s,null,null,0,0,20;
vrc_variable,c,gt,@ui_0,-1;
vrc_variable,r,add,@ui_0,1;
// move the cord, plug and word plugin, toward Netscape logo
vrc_link,s,null,null,0,0,30;
vrc_variable,c,gt,@ui_0,5;
vrc_and,r;
vrc_link,s,null,group,0,0,40;
vrc_variable,c,lt,@ui_0,50;
vrc_object_translate_relative,r,-2.2,0,0;
// now move the plug into the socket
vrc_link,s,null,null,0,0,50;
vrc_variable,c,gt,@ui_0,49;
vrc_and,r;
vrc_link,s,null,plug,0,0,60;
vrc_variable,c,lt,@ui_0,65;
vrc_object_translate_relative,r,-2.2,0,0;
// plug is in the socket, now light up the letters and globe
// globe
vrc_link,s,null,globe,0,0,65;
vrc_variable,c,eq,@ui_0,65;
vrc_variable,r,set,@ui_1,100;
vrc_link,s,null,globe,0,0,70;
vrc_variable,c,gt,@ui_0,64;
vrc_colorrgb,r,100,100,@ui_1;
vrc_link,s,null,null,0,0,75;
vrc_variable,c,gt,@ui_0,64;
vrc_and,r;
vrc_link,s,null,null,0,0,76;
vrc_variable,c,lt,@ui_0,73;
vrc_variable,r,add,@ui_1,15;
// p
vrc_link,s,null,p,0,0,80;
vrc_variable,c,eq,@ui_0,66;
vrc_colorrgb,r,220,220,100;
// l
vrc_link,s,null,l,0,0,90;
vrc_variable,c,eq,@ui_0,67;
vrc_colorrgb,r,220,220,100;
// u
vrc_link,s,null,u,0,0,100;
vrc_variable,c,eq,@ui_0,68;
vrc_colorrgb,r,220,220,100;
// g
vrc_link,s,null,g,0,0,110;
vrc_variable,c,eq,@ui_0,69;
vrc_colorrgb,r,220,220,100;
// -
vrc_link,s,null,dash,0,0,120;
vrc_variable,c,eq,@ui_0,70;
vrc_colorrgb,r,220,220,100;
// i
vrc_link,s,null,i,0,0,130;
vrc_variable,c,eq,@ui_0,71;
vrc_colorrgb,r,220,220,100;
// n
vrc_link,s,null,n,0,0,140;
vrc_variable,c,eq,@ui_0,72;
vrc_colorrgb,r,220,220,100;
// rotate the word plug-in once
vrc_link,s,null,null,0,0,150;
vrc_variable,c,gt,@ui_0,72;
vrc_and,r;
vrc_link,s,null,plugin,0,0,160;
vrc_variable,c,lt,@ui_0,156;
vrc_object_rotate_relative,r,-.1513,0,0,0, 280,0,0;
// translate the Netscape 'N' up and back
// up
vrc_link,s,null,null,0,0,180;
vrc_variable,c,gt,@ui_0,72;
vrc_and,r;
vrc_link,s,null,netscape,0,0,190;
vrc_variable,c,lt,@ui_0,115;
vrc_object_translate_relative,r,0,0,2.5;
// back
vrc_link,s,null,null,0,0,200;
vrc_variable,c,gt,@ui_0,114;
vrc_and,r;
vrc_link,s,null,netscape,0,0,210;
vrc_variable,c,lt,@ui_0,156;
vrc_object_translate_relative,r,0,0,-2.5;
// flash the Netscape 'N' a few times
vrc_link,s,null,netscape,0,0,220;
vrc_variable,c,eq,@ui_0,160;
vrc_colorrgb,r,255,255,255;
vrc_link,s,null,netscape,0,0,230;
vrc_variable,c,eq,@ui_0,165;
vrc_colorrgb,r,46,188,191;
vrc_link,s,null,netscape,0,0,240;
vrc_variable,c,eq,@ui_0,170;
vrc_colorrgb,r,255,255,255;
vrc_link,s,null,netscape,0,0,250;
vrc_variable,c,eq,@ui_0,175;
vrc_colorrgb,r,46,188,191;
vrc_link,s,null,netscape,0,0,260;
vrc_variable,c,eq,@ui_0,180;
vrc_colorrgb,r,255,255,255;
vrc_link,s,null,netscape,0,0,270;
vrc_variable,c,eq,@ui_0,185;
vrc_colorrgb,r,46,188,191;
vrc_link,s,null,netscape,0,0,280;
vrc_variable,c,eq,@ui_0,190;
vrc_colorrgb,r,255,255,255;
vrc_link,s,null,netscape,0,0,290;
vrc_variable,c,eq,@ui_0,195;
vrc_colorrgb,r,46,188,191;
// turn on the lights(rotate light up) and start the rotations
// left spotlight
vrc_link,s,null,leftbulb,0,0,1000;
vrc_variable,c,eq,@ui_0,200;
vrc_object_rotate_relative,r,0,-1.0,0, 0, -52.5,-65,147;
vrc_link,s,null,leftspot,0,0,1010;
vrc_and,c;
vrc_auto_rotate_relative,r,-0.1,0,0, 0, -52.5,-67.5,145;
vrc_link,s,null,leftglow,0,0,1020;
vrc_and,c;
vrc_object_display,r,1;
vrc_link,s,null,leftpitch,0,0,1025;
vrc_and,c;
vrc_auto_rotate_relative,r,0,0.025,0, 0, -52.5,-70,145;
// right spotlight
vrc_link,s,null,rightbulb,0,0,1030;
vrc_and,c;
vrc_object_rotate_relative,r,0,-0.85,0, 0, 40,-65,145;
vrc_link,s,null,rightspot,0,0,1040;
vrc_and,c;
vrc_auto_rotate_relative,r,0.1,0,0, 0, 40,-67.5,145;
vrc_link,s,null,rightpitch,0,0,1045;
vrc_and,c;
vrc_auto_rotate_relative,r,0,-0.025,0, 0, 40,-67.5,145;
vrc_link,s,null,rightglow,0,0,1050;
vrc_and,c;
vrc_object_display,r,1;
// after turning on lights, stop the counter
vrc_link,s,null,null,0,0,1060;
vrc_and,c;
vrc_variable,r,set,@ui_0,-1;