home *** CD-ROM | disk | FTP | other *** search
/ Virtual Reality Zone / VRZONE.ISO / mac / PC / VDF / TEST.VDF < prev    next >
Text File  |  1994-11-17  |  13KB  |  432 lines

  1. World_information
  2.     {
  3.     Created_by
  4.         {
  5.         Person { "Bernie Roehl <broehl@uwaterloo.ca>" }
  6.         Date { 19941108 215245 }
  7.         }
  8.     Modified_by
  9.         {
  10.         Person { "Joe Worldmeister <joe@nowhere.org>" }
  11.         Date { 19941112 220045 }
  12.         }
  13.     Modified_by
  14.         {
  15.         Person { "Bernie Roehl <broehl@uwaterloo.ca>" }
  16.         Date { 19941207 011215 }
  17.         }
  18.     Copyright_message { "Copyright (c) Bernie Roehl 1994, All rights reserved." }
  19.     Usage_restrictions { "Redistribute without charge" }
  20.     Title { "A test world" }
  21.     }
  22.  
  23. // Three cubes, a camera and a light
  24.  
  25. Palette
  26.     {
  27.     Color_table
  28.         {
  29.         Count { 5 }
  30.         Color_entry { 5 6 7 }
  31.         Color_entry { 8 9 1 }
  32.         Color_entry { 7 7 4 }
  33.         Color_entry { 6 6 6 }
  34.         Color_entry { 9 4 2 }
  35.         }
  36.     Hue_table
  37.         {
  38.         Count { 2 }
  39.         Hue_entry { 12 14 }
  40.         Hue_entry { 19 28 }
  41.         }
  42.     }
  43.  
  44. Map { Name { "wood" } Filename { "woodtext.bmp" } }
  45. Map { Name { "steel" } Filename { "steel.pcx" } }
  46. Map { Name { "telephone ring" } Filename { "dingdong.wav" } }
  47.  
  48. Material { Identifier { 0x3A97 } Diffuse_color { 1 0 0 } }  // red
  49. Material { Identifier { 0x4873 } Diffuse_color { 0 1 0 } }  // green
  50. Material { Identifier { 0x9798 } Diffuse_color { 0 0 1 } }  // blue
  51. Material
  52.     {
  53.     Identifier { 0xABCD }
  54.     Name { "Kumquat" }
  55.     Rendering_mode { GOURAUD }
  56.     Hue { 1 }
  57.     Diffuse_color { 4 5 6 }
  58.     Ambient_color { 8 9 0 }
  59.     Transparency_color { 1.2 3.4 5.6 }
  60.     Specular_color { 7.8 9.1 0.1 }
  61.     Specular_exponent { 2.5 }
  62.     Refractive_index { 0.5 }
  63.     Texture_map { Name { "wood" } }
  64.     Bump_map { Name { "steel" } }
  65.     Opacity_map { Name { "burble" } }
  66.     Reflection_map { Name { "sunset" } }
  67.     Reflection_blur { 1.5 }
  68.     Transparency_falloff { 2.3 }
  69.     }
  70.  
  71. Material_table
  72.        {
  73.        Identifier { 0x1C756 }
  74.        Count { 3 }
  75.        Material_reference { 0x3A97 }
  76.        Material_reference { 0x4873 }
  77.        Material_reference { 0x9798 }
  78.        }
  79.  
  80. Material_table
  81.        {
  82.        Identifier { 0x19876 }
  83.        Count { 3 }
  84.        Material_reference { 0x4873 }
  85.        Material_reference { 0x9798 }
  86.        Material_reference { 0x3A97 }
  87.        }
  88.  
  89. Material_table
  90.        {
  91.        Identifier { 0x1D756 }
  92.        Count { 3 }
  93.        Material_reference { 0x9798 }
  94.        Material_reference { 0x3A97 }
  95.        Material_reference { 0x4873 }
  96.        }
  97.  
  98. Shape
  99.        {
  100.        // two red faces, two green faces, two blue faces
  101.        Identifier { 0x1234 }
  102.        Uses_material_table { 0x1C756 }
  103.        Is_convex { TRUE }
  104.        Vertex_list
  105.               {
  106.               Count { 8 }
  107.               Vertex { Point3d { 100 200 300 } }
  108.               Vertex { Point3d { 700 200 300 } }
  109.               Vertex { Point3d { 700 800 300 } }
  110.               Vertex { Point3d { 100 800 300 } }
  111.               Vertex { Point3d { 100 200 900 } }
  112.               Vertex { Point3d { 700 200 900 } }
  113.               Vertex { Point3d { 700 800 900 } }
  114.               Vertex { Point3d { 100 800 900 } }
  115.               }
  116.        Facet_list
  117.               {
  118.               Count { 6 }
  119.               Facet
  120.                      {
  121.                      Front_material { 0 }
  122.                      Vertex_data
  123.                            {
  124.                            Count { 4 }
  125.                            Vertex_info { Index { 3 } }
  126.                            Vertex_info { Index { 2 } }
  127.                            Vertex_info { Index { 1 } }
  128.                            Vertex_info { Index { 0 } }
  129.                            }
  130.                      }
  131.               Facet
  132.                      {
  133.                      Front_material { 1 }
  134.                      Vertex_data
  135.                            {
  136.                            Count { 4 }
  137.                            Vertex_info { Index { 2 } }
  138.                            Vertex_info { Index { 6 } }
  139.                            Vertex_info { Index { 5 } }
  140.                            Vertex_info { Index { 1 } }
  141.                            }
  142.                      }
  143.               Facet
  144.                      {
  145.                      Front_material { 1 }
  146.                      Vertex_data
  147.                            {
  148.                            Count { 4 }
  149.                            Vertex_info { Index { 6 } }
  150.                            Vertex_info { Index { 7 } }
  151.                            Vertex_info { Index { 4 } }
  152.                            Vertex_info { Index { 5 } }
  153.                            }
  154.                      }
  155.               Facet
  156.                      {
  157.                      Front_material { 2 }
  158.                      Vertex_data
  159.                            {
  160.                            Count { 4 }
  161.                            Vertex_info { Index { 4 } }
  162.                            Vertex_info { Index { 7 } }
  163.                            Vertex_info { Index { 3 } }
  164.                            Vertex_info { Index { 0 } }
  165.                            }
  166.                      }
  167.               Facet
  168.                      {
  169.                      Front_material { 2 }
  170.                      Vertex_data
  171.                            {
  172.                            Count { 4 }
  173.                            Vertex_info { Index { 7 } }
  174.                            Vertex_info { Index { 6 } }
  175.                            Vertex_info { Index { 2 } }
  176.                            Vertex_info { Index { 3 } }
  177.                            }
  178.                      }
  179.               Facet
  180.                      {
  181.                      Front_material { 0 }
  182.                      Vertex_data
  183.                            {
  184.                            Count { 4 }
  185.                            Vertex_info { Index { 5 } }
  186.                            Vertex_info { Index { 4 } }
  187.                            Vertex_info { Index { 0 } }
  188.                            Vertex_info { Index { 1 } }
  189.                            }
  190.                      }
  191.               }
  192.        }
  193.  
  194. Shape
  195.        {
  196.        // two red faces, two green faces, two blue faces
  197.        Identifier { 0x5678 }
  198.        Name { "Second shape" }
  199.        Application_handle { 0x9898ABCD }
  200.        Bounding_box { 0.5 1.5 2.5 3.5 4.5 5.5 }
  201.        Uses_material_table { 0x1D756 }
  202.        Is_convex { TRUE }
  203.        Vertex_list
  204.               {
  205.               Count { 8 }
  206.               Vertex
  207.                   {
  208.                   Point3d { 100 200 300 }
  209.                   Normal3d { 1.0 2.0 3.0 }
  210.                   Color { 2 4 6 }
  211.                   Application_handle { 0x1234567 }
  212.                   }
  213.               Vertex { Point3d { 700 200 300 } }
  214.               Vertex { Point3d { 700 800 300 } }
  215.               Vertex { Point3d { 100 800 300 } }
  216.               Vertex { Point3d { 100 200 900 } }
  217.               Vertex { Point3d { 700 200 900 } }
  218.               Vertex { Point3d { 700 800 900 } }
  219.               Vertex { Point3d { 100 800 900 } }
  220.               }
  221.        Facet_list
  222.               {
  223.               Count { 6 }
  224.               Facet
  225.                      {
  226.                      Front_material { 0 }
  227.                      Vertex_data
  228.                            {
  229.                            Count { 4 }
  230.                            Vertex_info { Index { 3 } }
  231.                            Vertex_info { Index { 2 } }
  232.                            Vertex_info { Index { 1 } }
  233.                            Vertex_info { Index { 0 } }
  234.                            }
  235.                      }
  236.               Facet
  237.                      {
  238.                      Front_material { 1 }
  239.                      Back_material { 3 }
  240.                      Is_doublesided { TRUE }
  241.                      Normal3D { 2.2 3.3 4.4 }
  242.                      Identifier { 0xFF3EFF2E }
  243.                      Application_handle { 0xAAAABBBB }
  244.                      Vertex_data
  245.                            {
  246.                            Count { 4 }
  247.                            Vertex_info { Index { 2 } }
  248.                            Vertex_info { Index { 6 } }
  249.                            Vertex_info { Index { 5 } }
  250.                            Vertex_info { Index { 1 } }
  251.                            }
  252.                      }
  253.               Facet
  254.                      {
  255.                      Front_material { 1 }
  256.                      Is_interior { TRUE }
  257.                      Base_facet { 0xFF3EFF2E }
  258.                      Vertex_data
  259.                            {
  260.                            Count { 4 }
  261.                            Vertex_info { Index { 6 } }
  262.                            Vertex_info { Index { 7 } }
  263.                            Vertex_info { Index { 4 } }
  264.                            Vertex_info { Index { 5 } }
  265.                            }
  266.                      }
  267.               Facet
  268.                      {
  269.                      Front_material { 2 }
  270.                      Vertex_data
  271.                            {
  272.                            Count { 4 }
  273.                            Vertex_info { Index { 4 } }
  274.                            Vertex_info { Index { 7 } }
  275.                            Vertex_info { Index { 3 } }
  276.                            Vertex_info { Index { 0 } }
  277.                            }
  278.                      }
  279.               Facet
  280.                      {
  281.                      Front_material { 2 }
  282.                      Vertex_data
  283.                            {
  284.                            Count { 4 }
  285.                            Vertex_info { Index { 7 } }
  286.                            Vertex_info { Index { 6 } }
  287.                            Vertex_info { Index { 2 } }
  288.                            Vertex_info { Index { 3 } }
  289.                            }
  290.                      }
  291.               Facet
  292.                      {
  293.                      Front_material { 0 }
  294.                      Vertex_data
  295.                            {
  296.                            Count { 4 }
  297.                            Vertex_info { Index { 5 } }
  298.                            Vertex_info { Index { 4 } }
  299.                            Vertex_info { Index { 0 } }
  300.                            Vertex_info { Index { 1 } }
  301.                            }
  302.                      }
  303.               }
  304.        }
  305.  
  306. Object { Instance_of_shape { 0x1234 } Location { 0 0 0 } Identifier { 12 } }
  307.  
  308. Object { Instance_of_shape { 0x1234 } Location { 1000 0 2000 } Identifier { 14 } }
  309.  
  310. Object
  311.     {
  312.     Name { "Big object" }
  313.     Identifier { 0xCCCCABAB }
  314.     Instance_of_shape { 0x5678 }
  315.     Scaled_by { 5.5 6.6 7.7 }
  316.     Uses_material_table { 0x1C756 }
  317.     Location { 123 456 789 }
  318.     Rotation { 15 25 35 }
  319.     Attached_to { 12 }
  320.     Contained_within { 14 }
  321.     Is_invisible { TRUE }
  322.     Layer { 5 }
  323.     Text { "What a lovely object" }
  324.     Facet_behind { 0xFF3EFF2E }
  325.     Application_handle { 0xDEFA }
  326.     }
  327.  
  328. Object { Instance_of_shape { 0x1234 } Location { 1000 1000 3000 } }
  329.  
  330. Object { Name { "lightsource" } Identifier { 0x9012 } Location { 0 0 0 } }
  331.  
  332. Object { Identifier { 0x5050 } Instance_of_shape { 0x5678 } Location { -1000 -1000 -1000 } Rotation { 0.25 0.25 0 } }
  333.  
  334. Light
  335.     {
  336.     Name { "Overhead light" }
  337.     Application_handle { 0x12121212 }
  338.     Type { SPOT }
  339.     Associated_with { 0x9012 }
  340.     Color { 5.6 6.5 6.6 }
  341.     Hotspot { 15 }
  342.     Falloff { 25 }
  343.     Is_on { FALSE }
  344.     Casts_shadows { TRUE }
  345.     }
  346.  
  347. Light
  348.     {
  349.     Name { "Secondary light" }
  350.     Application_handle { 0x13131313 }
  351.     Type { POINT }
  352.     Associated_with { 0x9012 }
  353.     Color { 5.6 6.5 6.6 }
  354.     Hotspot { 15 }
  355.     Falloff { 25 }
  356.     Is_on { TRUE }
  357.     Casts_shadows { FALSE }
  358.     }
  359.  
  360. Light
  361.     {
  362.     Name { "Tertiary light" }
  363.     Application_handle { 0x14141414 }
  364.     }
  365.  
  366. Camera
  367.     {
  368.     Name { "First camera" }
  369.     Application_handle { 0xDEDE }
  370.     Field_of_view { 25.5 }
  371.     Aspect_ratio { 1.2 }
  372.     Associated_with { 0x5050 }
  373.     Projection_type { PARALLEL }
  374.     }
  375.  
  376. Camera
  377.     {
  378.     Name { "Second camera" }
  379.     Application_handle { 0xDADA }
  380.     Associated_with { 0x5050 }
  381.     Projection_type { PERSPECTIVE }
  382.     }
  383.  
  384. Camera
  385.     {
  386.     Name { "Third camera" }
  387.     Application_handle { 0xAABB }
  388.     Associated_with { 0x5050 }
  389.     Projection_type { PERSPECTIVE }
  390.     }
  391.  
  392. Sound
  393.     {
  394.     Name { "Telephone" }
  395.     Application_handle { 0x11333222 }
  396.     Associated_with { 0x5050 }
  397.     Is_on { FALSE }
  398.     Volume { 18.75 }
  399.     Sample_name { "telephone ring" }
  400.     }
  401.  
  402. Sound
  403.     {
  404.     Name { "Doorbell" }
  405.     Application_handle { 0x44333222 }
  406.     Associated_with { 0x5050 }
  407.     Is_on { FALSE }
  408.     Volume { 18.75 }
  409.     Sample_name { "door chime" }
  410.     }
  411.  
  412. Sound
  413.     {
  414.     Name { "Scream" }
  415.     Application_handle { 0x55333222 }
  416.     Associated_with { 0x5050 }
  417.     Is_on { FALSE }
  418.     Volume { 18.75 }
  419.     Sample_name { "scream test" }
  420.     }
  421.  
  422. World_attributes
  423.     {
  424.     Gravity_vector { 1.1 2.2 3.3 }
  425.     Ambient_light { .5 .5 .5 }
  426.     Has_horizon { TRUE }
  427.     Sky_color { 0 0 1 }
  428.     Ground_color { 0 2 0 }
  429.     Fog_color { 1 1 1 }
  430.     Scale { 2.1 }
  431.     }
  432.