home *** CD-ROM | disk | FTP | other *** search
/ VRML Tools for 3D Cyberspace / VRML_Tools_For_3D_Cyberspace.iso / web_fx / castle.wr_ / castle.wr
Text File  |  1996-07-01  |  4KB  |  194 lines

  1. #VRML V1.0 ascii
  2. # Copyright (c) 1995 Paper Software, Inc.
  3. # Created with SkyPaper
  4. Separator
  5. {
  6.     DEF BackgroundColor Info {
  7.     string  "0.0 0.0 0.5"
  8.     }
  9.     DEF CollisionDetection Info 
  10.     {
  11.         string  "TRUE"
  12.     }
  13.  
  14. CollisionDetection {
  15.         fields [SFBool collision]
  16.         collision    TRUE
  17. }                  
  18.  
  19. # Setup cameras
  20.     DEF Cameras Switch 
  21.     {
  22.         whichChild  0
  23.         DEF Threshold PerspectiveCamera 
  24.         {
  25.                 position    60 5 0
  26.                 orientation 0 1 0 1.3
  27.         }
  28.         DEF Courtyard PerspectiveCamera 
  29.         {
  30.             position    20 5 -10
  31.             orientation 0 1 0 -4
  32.         }
  33.         DEF Exit PerspectiveCamera 
  34.         {
  35.             position    -20 5 8
  36.             orientation 0 1 0 1.57
  37.         }
  38.         DEF BirdsEye PerspectiveCamera 
  39.         {
  40.                 position    0 50 50
  41.                 orientation 1 0 0 -.5
  42.         }
  43.     }
  44.  
  45. # Create ground and floor
  46.     Separator 
  47.     {   
  48.         BaseColor {
  49.         rgb .5 .2 .2
  50.         }
  51.         MaterialBinding {
  52.         value   OVERALL
  53.         }
  54.         WWWInline 
  55.         {
  56.             name        "floor.wrl"
  57.         }   
  58.     }
  59.  
  60. # Create Towers
  61.     Separator
  62.     {
  63.         Transform 
  64.         {
  65.             translation 20 5 20
  66.         }
  67.         DEF Tower Separator 
  68.         {
  69. #            Texture2 { filename "rocks.bmp" }
  70.             WWWInline 
  71.             {
  72.                 name        "tower.wrl"
  73.                 bboxCenter  0 5 5
  74.                 bboxSize    10 10 10
  75.                 }   
  76.         }
  77.     }
  78.  
  79.     Separator 
  80.     {
  81.         Transform 
  82.         {
  83.             translation 20 5 -20
  84.         }
  85.         USE Tower
  86.     }
  87.  
  88.     Separator 
  89.     {
  90.         Transform 
  91.         {
  92.             translation -20 5 -20
  93.         }
  94.         USE Tower
  95.     }
  96.  
  97.     Separator 
  98.     {
  99.         Transform 
  100.         {
  101.             translation -20 5 20
  102.         }
  103.         USE Tower
  104.     }
  105.  
  106. # Create Archways
  107.     DEF Archways Separator 
  108.     {
  109.         Separator {
  110.             Transform 
  111.             {
  112.                 translation -25 5 2.5
  113.             }
  114.         DEF Archway Separator
  115.         {
  116.             DEF Tower Separator 
  117.             {
  118.                 Texture2 { filename "ceiling1.bmp" }
  119.                 WWWInline 
  120.                 {
  121.                     name        "archway.wrl"
  122.                     bboxCenter  0 5 5
  123.                     bboxSize    10 10 10
  124.                     }   
  125.             }
  126.         }
  127.         }
  128.  
  129.         Separator 
  130.         {
  131.             Transform 
  132.             {
  133.                 translation -25 5 -12.5
  134.             }
  135.             USE Archway
  136.         }
  137.     }
  138.  
  139.     Separator
  140.     {
  141.         Transform 
  142.         {
  143.             translation 50 0 0
  144.         }
  145.         USE Archways
  146.     }
  147.  
  148. # Create Walls
  149.     Transform 
  150.     {
  151.         translation 0 5 20
  152.     }
  153.     DEF Walls Separator
  154.     {
  155.         Texture2 { filename "house.bmp" }
  156.  
  157.         DEF Wall Separator 
  158.         {
  159.             Transform 
  160.             {
  161.                 scaleFactor 5 5 0
  162.             }
  163.             WWWInline 
  164.             {
  165.                 name        "cube.wrl"
  166.             }
  167.         }
  168.  
  169.         Texture2 { filename "house2.bmp" }
  170.         Transform 
  171.         {
  172.             translation 10 0 0
  173.         }
  174.         USE Wall
  175.  
  176.         Texture2 { filename "astrol.bmp" }
  177.         Transform 
  178.         {
  179.             translation -20 0 0
  180.         }
  181.         USE Wall
  182.     }
  183.  
  184.     Separator
  185.     {
  186.         Transform 
  187.         {
  188.             translation 0 0 -40
  189.         }
  190.  
  191.         USE Walls
  192.     }
  193. }
  194.