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 >
Text File  |  1996-02-09  |  5KB  |  184 lines

  1. // VREAM Extension File
  2.  
  3. // activate links
  4. vrc_links,s,1;
  5.  
  6. // set properties for the lights
  7. VRC_REFERENCE_OBJECT,S,rightglow;
  8.      vrc_object_display,s,0;
  9. VRC_REFERENCE_OBJECT,S,rightspot;
  10.       vrc_auto_rotate_relative_limits,s,1,0,0, -1.2,1.2,0,0, 0,0;
  11. VRC_REFERENCE_OBJECT,S,rightpitch;
  12.       vrc_auto_rotate_relative_limits,s,0,1,0, 0,0,-.3,.3, 0,0;
  13. VRC_REFERENCE_OBJECT,S,rightbulb;
  14.       vrc_light,s,5,255,255,255;
  15.  
  16. VRC_REFERENCE_OBJECT,S,leftglow;
  17.       vrc_object_display,s,0;
  18. VRC_REFERENCE_OBJECT,S,leftspot;
  19.    vrc_auto_rotate_relative_limits,s,1,0,0, -1.2,1.2,0,0, 0,0;
  20. VRC_REFERENCE_OBJECT,S,leftpitch;
  21.       vrc_auto_rotate_relative_limits,s,0,1,0, 0,0,-.3,.3, 0,0;
  22. VRC_REFERENCE_OBJECT,S,leftbulb;
  23.       vrc_light,s,5,255,255,255;
  24.  
  25. // LINKS
  26. // note: the variable @ui_0 has z value of zero on load
  27.  
  28. // on load set new position for spot lights
  29. vrc_link,s,null,rightglow,0,0,10;
  30.    vrc_variable,c,eq,@ui_0,0;
  31.    vrc_object_translate_relative,r,170,-150,-200;
  32. vrc_link,s,null,leftglow,0,0,15;
  33.    vrc_variable,c,eq,@ui_0,0;
  34.    vrc_object_translate_relative,r,230,-150,-200;
  35.  
  36. //start counter for animation 
  37. vrc_link,s,null,null,0,0,20;
  38.    vrc_variable,c,gt,@ui_0,-1;
  39.    vrc_variable,r,add,@ui_0,1;
  40.  
  41. // move the cord, plug and word plugin, toward Netscape logo
  42. vrc_link,s,null,null,0,0,30;
  43.    vrc_variable,c,gt,@ui_0,5;
  44.    vrc_and,r;
  45. vrc_link,s,null,group,0,0,40;
  46.    vrc_variable,c,lt,@ui_0,50;
  47.    vrc_object_translate_relative,r,-2.2,0,0;
  48.  
  49. // now move the plug into the socket
  50. vrc_link,s,null,null,0,0,50;
  51.    vrc_variable,c,gt,@ui_0,49;
  52.    vrc_and,r;
  53. vrc_link,s,null,plug,0,0,60;
  54.    vrc_variable,c,lt,@ui_0,65;
  55.    vrc_object_translate_relative,r,-2.2,0,0;
  56.  
  57. // plug is in the socket, now light up the letters and globe
  58. // globe
  59. vrc_link,s,null,globe,0,0,65;
  60.    vrc_variable,c,eq,@ui_0,65;
  61.     vrc_variable,r,set,@ui_1,100;
  62. vrc_link,s,null,globe,0,0,70;
  63.    vrc_variable,c,gt,@ui_0,64;
  64.    vrc_colorrgb,r,100,100,@ui_1;
  65. vrc_link,s,null,null,0,0,75;
  66.    vrc_variable,c,gt,@ui_0,64;
  67.    vrc_and,r;
  68. vrc_link,s,null,null,0,0,76;
  69.    vrc_variable,c,lt,@ui_0,73;
  70.    vrc_variable,r,add,@ui_1,15;
  71.  
  72.  
  73. // p
  74. vrc_link,s,null,p,0,0,80;
  75.    vrc_variable,c,eq,@ui_0,66;
  76.    vrc_colorrgb,r,220,220,100;
  77. // l
  78. vrc_link,s,null,l,0,0,90;
  79.    vrc_variable,c,eq,@ui_0,67;
  80.    vrc_colorrgb,r,220,220,100;
  81. // u
  82. vrc_link,s,null,u,0,0,100;
  83.    vrc_variable,c,eq,@ui_0,68;
  84.    vrc_colorrgb,r,220,220,100;
  85. // g
  86. vrc_link,s,null,g,0,0,110;
  87.    vrc_variable,c,eq,@ui_0,69;
  88.    vrc_colorrgb,r,220,220,100;
  89. // -
  90. vrc_link,s,null,dash,0,0,120;
  91.    vrc_variable,c,eq,@ui_0,70;
  92.    vrc_colorrgb,r,220,220,100;
  93. // i
  94. vrc_link,s,null,i,0,0,130;
  95.    vrc_variable,c,eq,@ui_0,71;
  96.    vrc_colorrgb,r,220,220,100;
  97. // n
  98. vrc_link,s,null,n,0,0,140;
  99.    vrc_variable,c,eq,@ui_0,72;
  100.    vrc_colorrgb,r,220,220,100;
  101.  
  102. // rotate the word plug-in once
  103. vrc_link,s,null,null,0,0,150;
  104.     vrc_variable,c,gt,@ui_0,72;
  105.    vrc_and,r;
  106. vrc_link,s,null,plugin,0,0,160;
  107.    vrc_variable,c,lt,@ui_0,156;
  108.    vrc_object_rotate_relative,r,-.1513,0,0,0, 280,0,0;
  109.  
  110. // translate the Netscape 'N' up and back
  111. // up
  112. vrc_link,s,null,null,0,0,180;
  113.    vrc_variable,c,gt,@ui_0,72;
  114.    vrc_and,r;
  115. vrc_link,s,null,netscape,0,0,190;
  116.    vrc_variable,c,lt,@ui_0,115;
  117.    vrc_object_translate_relative,r,0,0,2.5;
  118. // back
  119. vrc_link,s,null,null,0,0,200;
  120.    vrc_variable,c,gt,@ui_0,114;
  121.    vrc_and,r;
  122. vrc_link,s,null,netscape,0,0,210;
  123.    vrc_variable,c,lt,@ui_0,156;
  124.    vrc_object_translate_relative,r,0,0,-2.5;
  125.  
  126. // flash the Netscape 'N' a few times
  127. vrc_link,s,null,netscape,0,0,220;
  128.    vrc_variable,c,eq,@ui_0,160;
  129.    vrc_colorrgb,r,255,255,255;
  130. vrc_link,s,null,netscape,0,0,230;
  131.    vrc_variable,c,eq,@ui_0,165;
  132.    vrc_colorrgb,r,46,188,191;
  133. vrc_link,s,null,netscape,0,0,240;
  134.    vrc_variable,c,eq,@ui_0,170;
  135.    vrc_colorrgb,r,255,255,255;
  136. vrc_link,s,null,netscape,0,0,250;
  137.    vrc_variable,c,eq,@ui_0,175;
  138.    vrc_colorrgb,r,46,188,191;
  139. vrc_link,s,null,netscape,0,0,260;
  140.    vrc_variable,c,eq,@ui_0,180;
  141.    vrc_colorrgb,r,255,255,255;
  142. vrc_link,s,null,netscape,0,0,270;
  143.    vrc_variable,c,eq,@ui_0,185;
  144.    vrc_colorrgb,r,46,188,191;
  145. vrc_link,s,null,netscape,0,0,280;
  146.    vrc_variable,c,eq,@ui_0,190;
  147.    vrc_colorrgb,r,255,255,255;
  148. vrc_link,s,null,netscape,0,0,290;
  149.    vrc_variable,c,eq,@ui_0,195;
  150.    vrc_colorrgb,r,46,188,191;
  151.  
  152. // turn on the lights(rotate light up) and start the rotations
  153. // left spotlight
  154. vrc_link,s,null,leftbulb,0,0,1000;
  155.     vrc_variable,c,eq,@ui_0,200;
  156.     vrc_object_rotate_relative,r,0,-1.0,0, 0, -52.5,-65,147;
  157. vrc_link,s,null,leftspot,0,0,1010;
  158.     vrc_and,c;
  159.     vrc_auto_rotate_relative,r,-0.1,0,0, 0, -52.5,-67.5,145;
  160. vrc_link,s,null,leftglow,0,0,1020;
  161.     vrc_and,c;
  162.     vrc_object_display,r,1;
  163. vrc_link,s,null,leftpitch,0,0,1025;
  164.     vrc_and,c;
  165.     vrc_auto_rotate_relative,r,0,0.025,0, 0, -52.5,-70,145;
  166.  
  167. // right spotlight
  168. vrc_link,s,null,rightbulb,0,0,1030;
  169.     vrc_and,c;
  170.     vrc_object_rotate_relative,r,0,-0.85,0, 0, 40,-65,145;
  171. vrc_link,s,null,rightspot,0,0,1040;
  172.     vrc_and,c;
  173.     vrc_auto_rotate_relative,r,0.1,0,0, 0, 40,-67.5,145;
  174. vrc_link,s,null,rightpitch,0,0,1045;
  175.     vrc_and,c;
  176.     vrc_auto_rotate_relative,r,0,-0.025,0, 0, 40,-67.5,145;
  177. vrc_link,s,null,rightglow,0,0,1050;
  178.     vrc_and,c;
  179.     vrc_object_display,r,1;
  180.  
  181. // after turning on lights, stop the counter
  182. vrc_link,s,null,null,0,0,1060;
  183.     vrc_and,c;
  184.     vrc_variable,r,set,@ui_0,-1;