home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 July & August / Pcwk7897.iso / netscape / nav4 / live3d.z / live3d.wrl < prev    next >
Text File  |  1997-04-02  |  38KB  |  1,021 lines

  1. #VRML V2.0 utf8
  2.  
  3. # Produced by 3D Studio MAX VRML 2.0 exporter, Version 1
  4. # MAX File: origui2.max, Date: Tue Sep 24 22:14:58 1996
  5. #
  6. # Netscape's Live3D UI
  7.  
  8. EXTERNPROTO LayoutHint [ field SFString placement BOTTOMCENTER
  9.                             field SFFloat widthFraction 0.
  10.                             field SFFloat heightFraction 0.
  11.                             field SFInt32 maxPixelWidth 0
  12.                             field SFInt32 maxPixelHeight 0 ]
  13. [ "urn:inet:netscape.com:vrml/LayoutHint.wrl" ]
  14.  
  15.  
  16. NavigationInfo 
  17. {
  18.     headlight FALSE
  19. }
  20.  
  21.  
  22. Transform {
  23.   children [
  24.     LayoutHint {
  25.       placement BOTTOMCENTER
  26.       widthFraction 450.0
  27.       heightFraction 0.085
  28.       maxPixelHeight 40
  29.     }
  30.  
  31.     Transform {
  32.       children [
  33.         Shape {
  34.           appearance Appearance {
  35.             material Material {
  36.               diffuseColor 0 0 0
  37.               shininess 0
  38.               transparency 0
  39.             }
  40.           }
  41.           geometry DEF BlackBack-FACES IndexedFaceSet {
  42.             ccw TRUE
  43.             solid TRUE
  44.             coord DEF BlackBack-COORD Coordinate { point [
  45.               0 4 -0.1, 200000 4 -0.1, 0 37 -0.1, 200000 37 -0.1 ]
  46.             }
  47.             coordIndex [
  48.               0, 1, 3, -1, 
  49.               3, 2, 0, -1]
  50.           }
  51.         }
  52.       ]
  53.     }
  54.   ]
  55. }
  56.  
  57.  
  58. Anchor
  59. {
  60.   url "http://home.netscape.com/eng/live3d" 
  61.   description "Netscape           "
  62.  
  63.   children
  64.   [
  65.     LayoutHint {
  66.       placement BOTTOMRIGHT
  67.       widthFraction .069
  68.       heightFraction 0.08
  69.       maxPixelHeight 36
  70.     }
  71.  
  72.     Transform {
  73.       children [
  74.         Shape {
  75.           geometry IndexedFaceSet {
  76.             coord Coordinate {
  77.               point [
  78.                 -1  1  0,
  79.                 1   1  0,
  80.                 1  -1  0,
  81.                 -1 -1  0
  82.               ]
  83.             }
  84.             texCoord TextureCoordinate {
  85.                 point [
  86.                   0 1,
  87.                   1 1,
  88.                   1 0,
  89.                   0 0
  90.                 ]
  91.             }
  92.             coordIndex [
  93.               3, 2, 1, 0, -1
  94.             ]
  95.             texCoordIndex [
  96.               3, 2, 1, 0, -1
  97.             ]
  98.           }
  99.           appearance Appearance {
  100.             material Material {
  101.               ambientIntensity .28
  102.               diffuseColor .5 .5 1
  103.               transparency 0
  104.             }
  105.             texture ImageTexture { url "netscape\nslogo.gif" }
  106.           }
  107.         }
  108.       ]
  109.     }
  110.   ]
  111. }
  112.  
  113.  
  114. DEF Buttons-ROOT Transform {
  115.   children [
  116.     LayoutHint {
  117.       placement BOTTOMLEFT
  118.       widthFraction .9
  119.       heightFraction 0.08
  120.       maxPixelHeight 36
  121.     }
  122.  
  123.     Transform {
  124.       children [
  125.         Shape {
  126.           appearance Appearance {
  127.             material Material {
  128.               diffuseColor 0 0 0
  129.               shininess 0
  130.               transparency 0
  131.             }
  132.           }
  133.           geometry DEF BlackBack-FACES IndexedFaceSet {
  134.             ccw TRUE
  135.             solid TRUE
  136.             coord DEF BlackBack-COORD Coordinate { point [
  137.               -405 5 -0.1, 37 5 -0.1, -405 36 -0.1, 37 36 -0.1 ]
  138.             }
  139.             coordIndex [
  140.               0, 1, 3, -1, 
  141.               3, 2, 0, -1]
  142.             }
  143.         }
  144.  
  145.         DEF WalkButton-ROOT Transform {
  146.           translation -372 10.4 0
  147.           scale 0.5058 0.5058 1
  148.           children [
  149.             DEF WalkButton_Passive Transform {
  150.               scale 0.0000001 0.0000001 0.0000001
  151.               children [
  152.                 DEF WalkButton_Passive_TouchSensor TouchSensor { }
  153.                 Shape {
  154.                   appearance Appearance {
  155.                     material Material {
  156.                       ambientIntensity 1
  157.                       diffuseColor 0.7 0.7 0.7
  158.                       shininess 0.4
  159.                       transparency 0
  160.                     }
  161.                     texture ImageTexture {
  162.                       url "netscape\walk1.gif"
  163.                     }
  164.                   }
  165.                   geometry DEF WalkButton-FACES IndexedFaceSet {
  166.                     ccw TRUE
  167.                     solid TRUE
  168.                     coord DEF WalkButton-COORD Coordinate { point [
  169.                       -44.82 0 0, 44.82 0 0, -44.82 41.45 0, 44.82 41.45 0]
  170.                     }
  171.                     texCoord DEF WalkButton-TEXCOORD TextureCoordinate { point [
  172.                       0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1]
  173.                     }
  174.                     coordIndex [
  175.                       0, 1, 3, -1, 3, 2, 0, -1]
  176.                     texCoordIndex [
  177.                       4, 5, 7, -1, 7, 6, 4, -1]
  178.                     }
  179.                 }
  180.               ]
  181.             }
  182.             DEF WalkButton_Active Transform {
  183.               scale 1 1 1
  184.               children [
  185.                 Shape {
  186.                   appearance Appearance {
  187.                     material Material {
  188.                       ambientIntensity 1
  189.                       diffuseColor 0.7 0.7 0.7
  190.                       shininess 0.4
  191.                       transparency 0
  192.                     }
  193.                     texture ImageTexture {
  194.                       url "netscape\walk2.gif"
  195.                     }
  196.                   }
  197.                   geometry DEF WalkButton-FACES IndexedFaceSet {
  198.                     ccw TRUE
  199.                     solid TRUE
  200.                     coord DEF WalkButton-COORD Coordinate { point [
  201.                       -44.82 0 0, 44.82 0 0, -44.82 41.45 0, 44.82 41.45 0]
  202.                     }
  203.                     texCoord DEF WalkButton-TEXCOORD TextureCoordinate { point [
  204.                       0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1]
  205.                     }
  206.                     coordIndex [
  207.                       0, 1, 3, -1, 3, 2, 0, -1]
  208.                     texCoordIndex [
  209.                       4, 5, 7, -1, 7, 6, 4, -1]
  210.                     }
  211.                 }
  212.               ]
  213.             }
  214.             #
  215.             DEF WalkButton_Passive_Script Script {
  216.                 eventIn SFTime touchTime
  217.                 eventOut SFVec3f large
  218.                 eventOut SFVec3f small
  219.  
  220.                 url "javascript:
  221.                      function touchTime(nav)
  222.                      {
  223.                          l3dBrowser.SetNavigationType('WALK');
  224.                          large = new SFVec3f(1,1,1);
  225.                          small = new SFVec3f(0.0000001, 0.0000001, 0.0000001);
  226.                     }"
  227.             }
  228.             # WalkButton
  229.             ROUTE WalkButton_Passive_TouchSensor.touchTime    TO WalkButton_Passive_Script.touchTime
  230.             #
  231.             ROUTE WalkButton_Passive_Script.small             TO WalkButton_Passive.scale
  232.             ROUTE WalkButton_Passive_Script.large             TO WalkButton_Active.scale
  233.           ]
  234.         },
  235.         DEF SpinButton-ROOT Transform {
  236.           translation -324.3 10.4 0
  237.           scale 0.5058 0.5058 1
  238.           children [
  239.             DEF SpinButton_Passive Transform {
  240.               scale 1 1 1
  241.               children [
  242.                 DEF SpinButton_Passive_TouchSensor TouchSensor { }
  243.                 Shape {
  244.                   appearance Appearance {
  245.                     material Material {
  246.                       ambientIntensity 1
  247.                       diffuseColor 0.7 0.7 0.7
  248.                       shininess 0.4
  249.                       transparency 0
  250.                     }
  251.                     texture ImageTexture {
  252.                       url "netscape\spin1.gif"
  253.                     }
  254.                   }
  255.                   geometry DEF SpinButton-FACES IndexedFaceSet {
  256.                     ccw TRUE
  257.                     solid TRUE
  258.                     coord DEF SpinButton-COORD Coordinate { point [
  259.                       -44.82 0 0, 44.82 0 0, -44.82 41.45 0, 44.82 41.45 0]
  260.                     }
  261.                     texCoord DEF SpinButton-TEXCOORD TextureCoordinate { point [
  262.                       0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1]
  263.                     }
  264.                     coordIndex [
  265.                       0, 1, 3, -1, 3, 2, 0, -1]
  266.                     texCoordIndex [
  267.                       4, 5, 7, -1, 7, 6, 4, -1]
  268.                     }
  269.                 }
  270.               ]
  271.             }
  272.             DEF SpinButton_Active Transform {
  273.               scale 0.0000001 0.0000001 0.0000001
  274.               children [
  275.                 Shape {
  276.                   appearance Appearance {
  277.                     material Material {
  278.                       ambientIntensity 1
  279.                       diffuseColor 0.7 0.7 0.7
  280.                       shininess 0.4
  281.                       transparency 0
  282.                     }
  283.                     texture ImageTexture {
  284.                       url "netscape\spin2.gif"
  285.                     }
  286.                   }
  287.                   geometry DEF SpinButton-FACES IndexedFaceSet {
  288.                     ccw TRUE
  289.                     solid TRUE
  290.                     coord DEF SpinButton-COORD Coordinate { point [
  291.                       -44.82 0 0, 44.82 0 0, -44.82 41.45 0, 44.82 41.45 0]
  292.                     }
  293.                     texCoord DEF SpinButton-TEXCOORD TextureCoordinate { point [
  294.                       0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1]
  295.                     }
  296.                     coordIndex [
  297.                       0, 1, 3, -1, 3, 2, 0, -1]
  298.                     texCoordIndex [
  299.                       4, 5, 7, -1, 7, 6, 4, -1]
  300.                     }
  301.                 }
  302.               ]
  303.             }
  304.             #
  305.             DEF SpinButton_Passive_Script Script {
  306.                 eventIn SFTime touchTime
  307.                 eventOut SFVec3f large
  308.                 eventOut SFVec3f small
  309.  
  310.                 url "javascript:
  311.                      function touchTime(nav)
  312.                      {
  313.                          l3dBrowser.SetNavigationType('SPIN');
  314.                          large = new SFVec3f(1,1,1);
  315.                          small = new SFVec3f(0.0000001, 0.0000001, 0.0000001);
  316.                     }"
  317.             }
  318.             # SpinButton
  319.             ROUTE SpinButton_Passive_TouchSensor.touchTime    TO SpinButton_Passive_Script.touchTime
  320.             #
  321.             ROUTE SpinButton_Passive_Script.small             TO SpinButton_Passive.scale
  322.             ROUTE SpinButton_Passive_Script.large             TO SpinButton_Active.scale
  323.           ]
  324.         },
  325.         DEF LookButton-ROOT Transform {
  326.           translation -275.8 10.4 0
  327.           scale 0.5058 0.5058 1
  328.           children [
  329.             DEF LookButton_Passive Transform {
  330.               scale 1 1 1
  331.               children [
  332.                 DEF LookButton_Passive_TouchSensor TouchSensor { }
  333.                 Shape {
  334.                   appearance Appearance {
  335.                     material Material {
  336.                       ambientIntensity 1
  337.                       diffuseColor 0.7 0.7 0.7
  338.                       shininess 0.4
  339.                       transparency 0
  340.                     }
  341.                     texture ImageTexture {
  342.                       url "netscape\look1.gif"
  343.                     }
  344.                   }
  345.                   geometry DEF LookButton-FACES IndexedFaceSet {
  346.                     ccw TRUE
  347.                     solid TRUE
  348.                     coord DEF LookButton-COORD Coordinate { point [
  349.                       -44.82 0 0, 44.82 0 0, -44.82 41.45 0, 44.82 41.45 0]
  350.                     }
  351.                     texCoord DEF LookButton-TEXCOORD TextureCoordinate { point [
  352.                       0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1]
  353.                     }
  354.                     coordIndex [
  355.                       0, 1, 3, -1, 3, 2, 0, -1]
  356.                     texCoordIndex [
  357.                       4, 5, 7, -1, 7, 6, 4, -1]
  358.                     }
  359.                 }
  360.               ]
  361.             }
  362.             DEF LookButton_Active Transform {
  363.               scale 0.0000001 0.0000001 0.0000001
  364.               children [
  365.                 Shape {
  366.                   appearance Appearance {
  367.                     material Material {
  368.                       ambientIntensity 1
  369.                       diffuseColor 0.7 0.7 0.7
  370.                       shininess 0.4
  371.                       transparency 0
  372.                     }
  373.                     texture ImageTexture {
  374.                       url "netscape\look2.gif"
  375.                     }
  376.                   }
  377.                   geometry DEF LookButton-FACES IndexedFaceSet {
  378.                     ccw TRUE
  379.                     solid TRUE
  380.                     coord DEF LookButton-COORD Coordinate { point [
  381.                       -44.82 0 0, 44.82 0 0, -44.82 41.45 0, 44.82 41.45 0]
  382.                     }
  383.                     texCoord DEF LookButton-TEXCOORD TextureCoordinate { point [
  384.                       0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1]
  385.                     }
  386.                     coordIndex [
  387.                       0, 1, 3, -1, 3, 2, 0, -1]
  388.                     texCoordIndex [
  389.                       4, 5, 7, -1, 7, 6, 4, -1]
  390.                     }
  391.                 }
  392.               ]
  393.             }
  394.             #
  395.             DEF LookButton_Passive_Script Script {
  396.                 eventIn SFTime touchTime
  397.                 eventOut SFVec3f large
  398.                 eventOut SFVec3f small
  399.  
  400.                 url "javascript:
  401.                      function touchTime(nav)
  402.                      {
  403.                          l3dBrowser.SetNavigationType('LOOK');
  404.                          large = new SFVec3f(1,1,1);
  405.                          small = new SFVec3f(0.0000001, 0.0000001, 0.0000001);
  406.                     }"
  407.             }
  408.             # LookButton
  409.             ROUTE LookButton_Passive_TouchSensor.touchTime    TO LookButton_Passive_Script.touchTime
  410.             #
  411.             ROUTE LookButton_Passive_Script.small             TO LookButton_Passive.scale
  412.             ROUTE LookButton_Passive_Script.large             TO LookButton_Active.scale
  413.  
  414.           ]
  415.         },
  416.         DEF SlideButton-ROOT Transform {
  417.           translation -228 10.4 0
  418.           scale 0.5058 0.5058 1
  419.           children [
  420.             DEF SlideButton_Passive Transform {
  421.               scale 1 1 1
  422.               children [
  423.                 DEF SlideButton_Passive_TouchSensor TouchSensor { }
  424.                 Shape {
  425.                   appearance Appearance {
  426.                     material Material {
  427.                       ambientIntensity 1
  428.                       diffuseColor 0.7 0.7 0.7
  429.                       shininess 0.4
  430.                       transparency 0
  431.                     }
  432.                     texture ImageTexture {
  433.                       url "netscape\slide1.gif"
  434.                     }
  435.                   }
  436.                   geometry DEF SlideButton-FACES IndexedFaceSet {
  437.                     ccw TRUE
  438.                     solid TRUE
  439.                     coord DEF SlideButton-COORD Coordinate { point [
  440.                       -44.82 0 0, 44.82 0 0, -44.82 41.45 0, 44.82 41.45 0]
  441.                     }
  442.                     texCoord DEF SlideButton-TEXCOORD TextureCoordinate { point [
  443.                       0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1]
  444.                     }
  445.                     coordIndex [
  446.                       0, 1, 3, -1, 3, 2, 0, -1]
  447.                     texCoordIndex [
  448.                       4, 5, 7, -1, 7, 6, 4, -1]
  449.                     }
  450.                 }
  451.               ]
  452.             }
  453.             DEF SlideButton_Active Transform {
  454.               scale 0.0000001 0.0000001 0.0000001
  455.               children [
  456.                 Shape {
  457.                   appearance Appearance {
  458.                     material Material {
  459.                       ambientIntensity 1
  460.                       diffuseColor 0.7 0.7 0.7
  461.                       shininess 0.4
  462.                       transparency 0
  463.                     }
  464.                     texture ImageTexture {
  465.                       url "netscape\slide2.gif"
  466.                     }
  467.                   }
  468.                   geometry DEF SlideButton-FACES IndexedFaceSet {
  469.                     ccw TRUE
  470.                     solid TRUE
  471.                     coord DEF SlideButton-COORD Coordinate { point [
  472.                       -44.82 0 0, 44.82 0 0, -44.82 41.45 0, 44.82 41.45 0]
  473.                     }
  474.                     texCoord DEF SlideButton-TEXCOORD TextureCoordinate { point [
  475.                       0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1]
  476.                     }
  477.                     coordIndex [
  478.                       0, 1, 3, -1, 3, 2, 0, -1]
  479.                     texCoordIndex [
  480.                       4, 5, 7, -1, 7, 6, 4, -1]
  481.                     }
  482.                 }
  483.               ]
  484.             }
  485.             #
  486.             DEF SlideButton_Passive_Script Script {
  487.                 eventIn SFTime touchTime
  488.                 eventOut SFVec3f large
  489.                 eventOut SFVec3f small
  490.  
  491.                 url "javascript:
  492.                      function touchTime(nav)
  493.                      {
  494.                          l3dBrowser.SetNavigationType('SLIDE');
  495.                          large = new SFVec3f(1,1,1);
  496.                          small = new SFVec3f(0.0000001, 0.0000001, 0.0000001);
  497.                      }"
  498.             }
  499.             # SlideButton
  500.             ROUTE SlideButton_Passive_TouchSensor.touchTime    TO SlideButton_Passive_Script.touchTime
  501.             #
  502.             ROUTE SlideButton_Passive_Script.small             TO SlideButton_Passive.scale
  503.             ROUTE SlideButton_Passive_Script.large             TO SlideButton_Active.scale
  504.           ]
  505.         },
  506.         DEF PointButton1-ROOT Transform {
  507.           translation -148.7 10.4 0
  508.           scale 0.5058 0.5058 1
  509.           children [
  510.             DEF PointButton_Passive Transform {
  511.               scale 1 1 1
  512.               children [
  513.                 DEF PointButton_Passive_TouchSensor TouchSensor { }
  514.                 Shape {
  515.                   appearance Appearance {
  516.                     material Material {
  517.                       ambientIntensity 1
  518.                       diffuseColor 0.7 0.7 0.7
  519.                       shininess 0.4
  520.                       transparency 0
  521.                     }
  522.                     texture ImageTexture {
  523.                       url "netscape\point1.gif"
  524.                     }
  525.                   }
  526.                   geometry DEF PointButton1-FACES IndexedFaceSet {
  527.                     ccw TRUE
  528.                     solid TRUE
  529.                     coord DEF PointButton1-COORD Coordinate { point [
  530.                       -44.82 0 0, 44.82 0 0, -44.82 41.45 0, 44.82 41.45 0]
  531.                     }
  532.                     texCoord DEF PointButton1-TEXCOORD TextureCoordinate { point [
  533.                       0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1]
  534.                     }
  535.                     coordIndex [
  536.                       0, 1, 3, -1, 3, 2, 0, -1]
  537.                     texCoordIndex [
  538.                       4, 5, 7, -1, 7, 6, 4, -1]
  539.                     }
  540.                 }
  541.               ]
  542.             }
  543.             DEF PointButton_Active Transform {
  544.               scale 0.0000001 0.0000001 0.0000001
  545.               children [
  546.                 DEF PointButton_Active_TouchSensor TouchSensor { }
  547.                 Shape {
  548.                   appearance Appearance {
  549.                     material Material {
  550.                       ambientIntensity 1
  551.                       diffuseColor 0.7 0.7 0.7
  552.                       shininess 0.4
  553.                       transparency 0
  554.                     }
  555.                     texture ImageTexture {
  556.                       url "netscape\point2.gif"
  557.                     }
  558.                   }
  559.                   geometry DEF PointButton1-FACES IndexedFaceSet {
  560.                     ccw TRUE
  561.                     solid TRUE
  562.                     coord DEF PointButton1-COORD Coordinate { point [
  563.                       -44.82 0 0, 44.82 0 0, -44.82 41.45 0, 44.82 41.45 0]
  564.                     }
  565.                     texCoord DEF PointButton1-TEXCOORD TextureCoordinate { point [
  566.                       0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1]
  567.                     }
  568.                     coordIndex [
  569.                       0, 1, 3, -1, 3, 2, 0, -1]
  570.                     texCoordIndex [
  571.                       4, 5, 7, -1, 7, 6, 4, -1]
  572.                     }
  573.                 }
  574.               ]
  575.             }
  576.             #
  577.             DEF PointButton_Passive_Script Script {
  578.                 eventIn SFTime touchTime
  579.                 eventOut SFVec3f large
  580.                 eventOut SFVec3f small
  581.  
  582.                 url "javascript:
  583.                      function touchTime(nav)
  584.                      {
  585.                          l3dBrowser.SetPointMode(true);
  586.                          large = new SFVec3f(1,1,1);
  587.                          small = new SFVec3f(0.0000001, 0.0000001, 0.0000001);
  588.                      }"
  589.             }
  590.             DEF PointButton_Active_Script Script {
  591.                 eventIn SFTime touchTime
  592.                 eventOut SFVec3f large
  593.                 eventOut SFVec3f small
  594.  
  595.                 url "javascript:
  596.                      function touchTime(nav)
  597.                      {
  598.                          l3dBrowser.SetPointMode(false);
  599.                          large = new SFVec3f(1,1,1);
  600.                          small = new SFVec3f(0.0000001, 0.0000001, 0.0000001);
  601.                      }"
  602.             }
  603.             ROUTE PointButton_Passive_TouchSensor.touchTime    TO PointButton_Passive_Script.touchTime
  604.             ROUTE PointButton_Active_TouchSensor.touchTime     TO PointButton_Active_Script.touchTime
  605.             #
  606.             ROUTE PointButton_Passive_Script.small             TO PointButton_Passive.scale
  607.             ROUTE PointButton_Active_Script.large              TO PointButton_Passive.scale
  608.             ROUTE PointButton_Passive_Script.large             TO PointButton_Active.scale
  609.             ROUTE PointButton_Active_Script.small              TO PointButton_Active.scale
  610.           ]
  611.         }
  612.         DEF LampButton-ROOT Transform {
  613.           translation -56.52 10.4 0
  614.           scale 0.5058 0.5058 1
  615.           children [
  616.             DEF LampButton_Passive Transform {
  617.               scale 1 1 1
  618.               children [
  619.                 DEF LampButton_Passive_TouchSensor TouchSensor { }
  620.                 Shape {
  621.                   appearance Appearance {
  622.                     material Material {
  623.                       ambientIntensity 1
  624.                       diffuseColor 0.7 0.7 0.7
  625.                       shininess 0.4
  626.                       transparency 0
  627.                     }
  628.                     texture ImageTexture {
  629.                       url "netscape\lamp1.gif"
  630.                     }
  631.                   }
  632.                   geometry DEF LampButton-FACES IndexedFaceSet {
  633.                     ccw TRUE
  634.                     solid TRUE
  635.                     coord DEF LampButton-COORD Coordinate { point [
  636.                       -44.82 0 0, 44.82 0 0, -44.82 41.45 0, 44.82 41.45 0]
  637.                     }
  638.                     texCoord DEF LampButton-TEXCOORD TextureCoordinate { point [
  639.                       0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1]
  640.                     }
  641.                     coordIndex [
  642.                       0, 1, 3, -1, 3, 2, 0, -1]
  643.                     texCoordIndex [
  644.                       4, 5, 7, -1, 7, 6, 4, -1]
  645.                     }
  646.                 }
  647.               ]
  648.             }
  649.             DEF LampButton_Active Transform {
  650.               scale 0.0000001 0.0000001 0.0000001
  651.               children [
  652.                 DEF LampButton_Active_TouchSensor TouchSensor { }
  653.                 Shape {
  654.                   appearance Appearance {
  655.                     material Material {
  656.                       ambientIntensity 1
  657.                       diffuseColor 0.7 0.7 0.7
  658.                       shininess 0.4
  659.                       transparency 0
  660.                     }
  661.                     texture ImageTexture {
  662.                       url "netscape\lamp2.gif"
  663.                     }
  664.                   }
  665.                   geometry DEF LampButton-FACES IndexedFaceSet {
  666.                     ccw TRUE
  667.                     solid TRUE
  668.                     coord DEF LampButton-COORD Coordinate { point [
  669.                       -44.82 0 0, 44.82 0 0, -44.82 41.45 0, 44.82 41.45 0]
  670.                     }
  671.                     texCoord DEF LampButton-TEXCOORD TextureCoordinate { point [
  672.                       0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1]
  673.                     }
  674.                     coordIndex [
  675.                       0, 1, 3, -1, 3, 2, 0, -1]
  676.                     texCoordIndex [
  677.                       4, 5, 7, -1, 7, 6, 4, -1]
  678.                     }
  679.                 }
  680.               ]
  681.             }
  682.             #
  683.             DEF LampButton_Passive_Script Script {
  684.                 eventIn SFTime touchTime
  685.                 eventOut SFVec3f large
  686.                 eventOut SFVec3f small
  687.  
  688.                 url "javascript:
  689.                      function touchTime(nav)
  690.                      {
  691.                          l3dBrowser.SetHeadlight(true); // hit the off button to toggle on
  692.                          large = new SFVec3f(1,1,1);
  693.                          small = new SFVec3f(0.0000001, 0.0000001, 0.0000001);
  694.                      }"
  695.             }
  696.             DEF LampButton_Active_Script Script {
  697.                 eventIn SFTime touchTime
  698.                 eventOut SFVec3f large
  699.                 eventOut SFVec3f small
  700.  
  701.                 url "javascript:
  702.                      function touchTime(nav)
  703.                      {
  704.                          l3dBrowser.SetHeadlight(false);
  705.                          large = new SFVec3f(1,1,1);
  706.                          small = new SFVec3f(0.0000001, 0.0000001, 0.0000001);
  707.                      }"
  708.             }
  709.             # LampButton
  710.             ROUTE LampButton_Passive_TouchSensor.touchTime    TO LampButton_Passive_Script.touchTime
  711.             ROUTE LampButton_Active_TouchSensor.touchTime     TO LampButton_Active_Script.touchTime
  712.             #
  713.             ROUTE LampButton_Passive_Script.small             TO LampButton_Passive.scale
  714.             ROUTE LampButton_Active_Script.large              TO LampButton_Passive.scale
  715.             ROUTE LampButton_Passive_Script.large             TO LampButton_Active.scale
  716.             ROUTE LampButton_Active_Script.small              TO LampButton_Active.scale
  717.  
  718.           ]
  719.         },
  720.         DEF ViewButton-ROOT Transform {
  721.           translation 9.079 10.4 0
  722.           scale 0.5058 0.5058 1
  723.           children [
  724.             DEF ViewButton_TouchSensor TouchSensor { }
  725.             Shape {
  726.               appearance Appearance {
  727.                 material Material {
  728.                   ambientIntensity 1
  729.                   diffuseColor 0.7 0.7 0.7
  730.                   shininess 0.4
  731.                   transparency 0
  732.                 }
  733.                 texture ImageTexture {
  734.                   url "netscape\view1.gif"
  735.                 }
  736.               }
  737.               geometry DEF ViewButton-FACES IndexedFaceSet {
  738.                 ccw TRUE
  739.                 solid TRUE
  740.                 coord DEF ViewButton-COORD Coordinate { point [
  741.                   -44.82 0 0, 44.82 0 0, -44.82 41.45 0, 44.82 41.45 0]
  742.                 }
  743.                 texCoord DEF ViewButton-TEXCOORD TextureCoordinate { point [
  744.                   0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1]
  745.                 }
  746.                 coordIndex [
  747.                   0, 1, 3, -1, 3, 2, 0, -1]
  748.                 texCoordIndex [
  749.                   4, 5, 7, -1, 7, 6, 4, -1]
  750.                 }
  751.             }
  752.             #
  753.             DEF ViewButton_Script Script {
  754.                 eventIn SFTime touchTime
  755.  
  756.                 url "javascript:
  757.                      function touchTime(nav)
  758.                      {
  759.                          l3dBrowser.ReturnToViewpoint();
  760.                      }"
  761.             }
  762.             ROUTE ViewButton_TouchSensor.touchTime    TO ViewButton_Script.touchTime
  763.           ]
  764.         },
  765.     #    DEF PlayButton1-ROOT Transform {
  766.     #      translation -412.4 13.65 -35.13
  767.     #      scale 0.1518 0.328 4.789
  768.     #      children [
  769.     #        Shape {
  770.     #          appearance Appearance {
  771.     #            material Material {
  772.     #              ambientIntensity 1
  773.     #              diffuseColor 0.7 0.7 0.7
  774.     #              shininess 0.4
  775.     #              transparency 0
  776.     #            }
  777.     #            texture ImageTexture {
  778.     #              url "netscape\play1.gif"
  779.     #            }
  780.     #          }
  781.     #          geometry DEF PlayButton1-FACES IndexedFaceSet {
  782.     #            ccw TRUE
  783.     #            solid TRUE
  784.     #            coord DEF PlayButton1-COORD Coordinate { point [
  785.     #              -44.82 0 0, 44.82 0 0, -44.82 41.45 0, 44.82 41.45 0]
  786.     #            }
  787.     #            texCoord DEF PlayButton1-TEXCOORD TextureCoordinate { point [
  788.     #              0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1]
  789.     #            }
  790.     #            coordIndex [
  791.     #              0, 1, 3, -1, 3, 2, 0, -1]
  792.     #            texCoordIndex [
  793.     #              4, 5, 7, -1, 7, 6, 4, -1]
  794.     #            }
  795.     #        }
  796.     #      ]
  797.     #    },
  798.          DEF LampUpButton1-ROOT Transform {
  799.            translation -84.71 22.14 0
  800.            scale 0.1032 0.2231 3.258
  801.            children [
  802.              DEF LampUpButton_TouchSensor TouchSensor { }
  803.              Shape {
  804.                appearance Appearance {
  805.                  material Material {
  806.                    ambientIntensity 1
  807.                    diffuseColor 0.7 0.7 0.7
  808.                    shininess 0.4
  809.                    transparency 0
  810.                  }
  811.                  texture ImageTexture {
  812.                    url "netscape\up1.gif"
  813.                  }
  814.                }
  815.                geometry DEF LampUpButton1-FACES IndexedFaceSet {
  816.                  ccw TRUE
  817.                  solid TRUE
  818.                  coord DEF LampUpButton1-COORD Coordinate { point [
  819.                    -44.82 0 0, 44.82 0 0, -44.82 41.45 0, 44.82 41.45 0]
  820.                  }
  821.                  texCoord DEF LampUpButton1-TEXCOORD TextureCoordinate { point [
  822.                    0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1]
  823.                  }
  824.                  coordIndex [
  825.                    0, 1, 3, -1, 3, 2, 0, -1]
  826.                  texCoordIndex [
  827.                    4, 5, 7, -1, 7, 6, 4, -1]
  828.                  }
  829.              }
  830.              #
  831.              DEF LampUpButton_Script Script {
  832.                  eventIn SFTime touchTime
  833.  
  834.                  url "javascript:
  835.                       function touchTime(nav)
  836.                       {
  837.                           l3dBrowser.BrightenHeadlight();
  838.                       }"
  839.              }
  840.              ROUTE LampUpButton_TouchSensor.touchTime    TO LampUpButton_Script.touchTime
  841.  
  842.            ]
  843.          },
  844.          DEF LampDownButton1-ROOT Transform {
  845.            translation -84.71 10.53 0
  846.            scale 0.1032 0.2231 3.258
  847.            children [
  848.              DEF LampDownButton_TouchSensor TouchSensor { }
  849.              Shape {
  850.                appearance Appearance {
  851.                  material Material {
  852.                    ambientIntensity 1
  853.                    diffuseColor 0.7 0.7 0.7
  854.                    shininess 0.4
  855.                    transparency 0
  856.                  }
  857.                  texture ImageTexture {
  858.                    url "netscape\down1.gif"
  859.                  }
  860.                }
  861.                geometry DEF LampDownButton1-FACES IndexedFaceSet {
  862.                  ccw TRUE
  863.                  solid TRUE
  864.                  coord DEF LampDownButton1-COORD Coordinate { point [
  865.                    -44.82 0 0, 44.82 0 0, -44.82 41.45 0, 44.82 41.45 0]
  866.                  }
  867.                  texCoord DEF LampDownButton1-TEXCOORD TextureCoordinate { point [
  868.                    0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1]
  869.                  }
  870.                  coordIndex [
  871.                    0, 1, 3, -1, 3, 2, 0, -1]
  872.                  texCoordIndex [
  873.                    4, 5, 7, -1, 7, 6, 4, -1]
  874.                  }
  875.              }
  876.              #
  877.              DEF LampDownButton_Script Script {
  878.                  eventIn SFTime touchTime
  879.  
  880.                  url "javascript:
  881.                       function touchTime(nav)
  882.                       {
  883.                           l3dBrowser.DimHeadlight();
  884.                       }"
  885.              }
  886.              ROUTE LampDownButton_TouchSensor.touchTime    TO LampDownButton_Script.touchTime
  887.            ]
  888.          },
  889.         DEF ViewUpButton1-ROOT Transform {
  890.           translation -19.19 22.14 0
  891.           scale 0.1032 0.2231 3.258
  892.           children [
  893.             DEF ViewUpButton_TouchSensor TouchSensor { }
  894.             Shape {
  895.               appearance Appearance {
  896.                 material Material {
  897.                   ambientIntensity 1
  898.                   diffuseColor 0.7 0.7 0.7
  899.                   shininess 0.4
  900.                   transparency 0
  901.                 }
  902.                 texture ImageTexture {
  903.                   url "netscape\up1.gif"
  904.                 }
  905.               }
  906.               geometry DEF ViewUpButton1-FACES IndexedFaceSet {
  907.                 ccw TRUE
  908.                 solid TRUE
  909.                 coord DEF ViewUpButton1-COORD Coordinate { point [
  910.                   -44.82 0 0, 44.82 0 0, -44.82 41.45 0, 44.82 41.45 0]
  911.                 }
  912.                 texCoord DEF ViewUpButton1-TEXCOORD TextureCoordinate { point [
  913.                   0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1]
  914.                 }
  915.                 coordIndex [
  916.                   0, 1, 3, -1, 3, 2, 0, -1]
  917.                 texCoordIndex [
  918.                   4, 5, 7, -1, 7, 6, 4, -1]
  919.                 }
  920.             }
  921.             #
  922.             DEF ViewUpButton_Script Script {
  923.                 eventIn SFTime touchTime
  924.  
  925.                 url "javascript:
  926.                      function touchTime(nav)
  927.                      {
  928.                          l3dBrowser.GoToNextViewpoint();
  929.                      }"
  930.             }
  931.             ROUTE ViewUpButton_TouchSensor.touchTime    TO ViewUpButton_Script.touchTime
  932.           ]
  933.         },
  934.         DEF ViewDownButton1-ROOT Transform {
  935.           translation -19.19 10.53 0
  936.           scale 0.1032 0.2231 3.258
  937.           children [
  938.             DEF ViewDownButton_TouchSensor TouchSensor { }
  939.             Shape {
  940.               appearance Appearance {
  941.                 material Material {
  942.                   ambientIntensity 1
  943.                   diffuseColor 0.7 0.7 0.7
  944.                   shininess 0.4
  945.                   transparency 0
  946.                 }
  947.                 texture ImageTexture {
  948.                   url "netscape\down1.gif"
  949.                 }
  950.               }
  951.               geometry DEF ViewDownButton1-FACES IndexedFaceSet {
  952.                 ccw TRUE
  953.                 solid TRUE
  954.                 coord DEF ViewDownButton1-COORD Coordinate { point [
  955.                   -44.82 0 0, 44.82 0 0, -44.82 41.45 0, 44.82 41.45 0]
  956.                 }
  957.                 texCoord DEF ViewDownButton1-TEXCOORD TextureCoordinate { point [
  958.                   0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1, 0 0, 1 0, 0 1, 1 1]
  959.                 }
  960.                 coordIndex [
  961.                   0, 1, 3, -1, 3, 2, 0, -1]
  962.                 texCoordIndex [
  963.                   4, 5, 7, -1, 7, 6, 4, -1]
  964.                 }
  965.             }
  966.             #
  967.             DEF ViewDownButton_Script Script {
  968.                 eventIn SFTime touchTime
  969.  
  970.                 url "javascript:
  971.                      function touchTime(nav)
  972.                      {
  973.                          l3dBrowser.GoToPrevViewpoint();
  974.                      }"
  975.             }
  976.             ROUTE ViewDownButton_TouchSensor.touchTime    TO ViewDownButton_Script.touchTime
  977.           ]
  978.         }
  979.       ]
  980.     }
  981.   ]
  982. }
  983.  
  984. # these need to be at the bottom because they refer to things defined after the button
  985.  
  986. ROUTE WalkButton_Passive_Script.large             TO SpinButton_Passive.scale
  987. ROUTE WalkButton_Passive_Script.small             TO SpinButton_Active.scale
  988.  
  989. ROUTE WalkButton_Passive_Script.large             TO LookButton_Passive.scale
  990. ROUTE WalkButton_Passive_Script.small             TO LookButton_Active.scale
  991.  
  992. ROUTE WalkButton_Passive_Script.large             TO SlideButton_Passive.scale
  993. ROUTE WalkButton_Passive_Script.small             TO SlideButton_Active.scale
  994.  
  995. ROUTE SpinButton_Passive_Script.large             TO WalkButton_Passive.scale
  996. ROUTE SpinButton_Passive_Script.small             TO WalkButton_Active.scale
  997.  
  998. ROUTE SpinButton_Passive_Script.large             TO LookButton_Passive.scale
  999. ROUTE SpinButton_Passive_Script.small             TO LookButton_Active.scale
  1000.  
  1001. ROUTE SpinButton_Passive_Script.large             TO SlideButton_Passive.scale
  1002. ROUTE SpinButton_Passive_Script.small             TO SlideButton_Active.scale
  1003.  
  1004. ROUTE LookButton_Passive_Script.large             TO WalkButton_Passive.scale
  1005. ROUTE LookButton_Passive_Script.small             TO WalkButton_Active.scale
  1006.  
  1007. ROUTE LookButton_Passive_Script.large             TO SpinButton_Passive.scale
  1008. ROUTE LookButton_Passive_Script.small             TO SpinButton_Active.scale
  1009.  
  1010. ROUTE LookButton_Passive_Script.large             TO SlideButton_Passive.scale
  1011. ROUTE LookButton_Passive_Script.small             TO SlideButton_Active.scale
  1012.  
  1013. ROUTE SlideButton_Passive_Script.large             TO WalkButton_Passive.scale
  1014. ROUTE SlideButton_Passive_Script.small             TO WalkButton_Active.scale
  1015.  
  1016. ROUTE SlideButton_Passive_Script.large             TO SpinButton_Passive.scale
  1017. ROUTE SlideButton_Passive_Script.small             TO SpinButton_Active.scale
  1018.  
  1019. ROUTE SlideButton_Passive_Script.large             TO LookButton_Passive.scale
  1020. ROUTE SlideButton_Passive_Script.small             TO LookButton_Active.scale
  1021.