home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Zone
/
VRZONE.ISO
/
mac
/
PC
/
VDF
/
TEST.VDF
< prev
next >
Wrap
Text File
|
1994-11-17
|
13KB
|
432 lines
World_information
{
Created_by
{
Person { "Bernie Roehl <broehl@uwaterloo.ca>" }
Date { 19941108 215245 }
}
Modified_by
{
Person { "Joe Worldmeister <joe@nowhere.org>" }
Date { 19941112 220045 }
}
Modified_by
{
Person { "Bernie Roehl <broehl@uwaterloo.ca>" }
Date { 19941207 011215 }
}
Copyright_message { "Copyright (c) Bernie Roehl 1994, All rights reserved." }
Usage_restrictions { "Redistribute without charge" }
Title { "A test world" }
}
// Three cubes, a camera and a light
Palette
{
Color_table
{
Count { 5 }
Color_entry { 5 6 7 }
Color_entry { 8 9 1 }
Color_entry { 7 7 4 }
Color_entry { 6 6 6 }
Color_entry { 9 4 2 }
}
Hue_table
{
Count { 2 }
Hue_entry { 12 14 }
Hue_entry { 19 28 }
}
}
Map { Name { "wood" } Filename { "woodtext.bmp" } }
Map { Name { "steel" } Filename { "steel.pcx" } }
Map { Name { "telephone ring" } Filename { "dingdong.wav" } }
Material { Identifier { 0x3A97 } Diffuse_color { 1 0 0 } } // red
Material { Identifier { 0x4873 } Diffuse_color { 0 1 0 } } // green
Material { Identifier { 0x9798 } Diffuse_color { 0 0 1 } } // blue
Material
{
Identifier { 0xABCD }
Name { "Kumquat" }
Rendering_mode { GOURAUD }
Hue { 1 }
Diffuse_color { 4 5 6 }
Ambient_color { 8 9 0 }
Transparency_color { 1.2 3.4 5.6 }
Specular_color { 7.8 9.1 0.1 }
Specular_exponent { 2.5 }
Refractive_index { 0.5 }
Texture_map { Name { "wood" } }
Bump_map { Name { "steel" } }
Opacity_map { Name { "burble" } }
Reflection_map { Name { "sunset" } }
Reflection_blur { 1.5 }
Transparency_falloff { 2.3 }
}
Material_table
{
Identifier { 0x1C756 }
Count { 3 }
Material_reference { 0x3A97 }
Material_reference { 0x4873 }
Material_reference { 0x9798 }
}
Material_table
{
Identifier { 0x19876 }
Count { 3 }
Material_reference { 0x4873 }
Material_reference { 0x9798 }
Material_reference { 0x3A97 }
}
Material_table
{
Identifier { 0x1D756 }
Count { 3 }
Material_reference { 0x9798 }
Material_reference { 0x3A97 }
Material_reference { 0x4873 }
}
Shape
{
// two red faces, two green faces, two blue faces
Identifier { 0x1234 }
Uses_material_table { 0x1C756 }
Is_convex { TRUE }
Vertex_list
{
Count { 8 }
Vertex { Point3d { 100 200 300 } }
Vertex { Point3d { 700 200 300 } }
Vertex { Point3d { 700 800 300 } }
Vertex { Point3d { 100 800 300 } }
Vertex { Point3d { 100 200 900 } }
Vertex { Point3d { 700 200 900 } }
Vertex { Point3d { 700 800 900 } }
Vertex { Point3d { 100 800 900 } }
}
Facet_list
{
Count { 6 }
Facet
{
Front_material { 0 }
Vertex_data
{
Count { 4 }
Vertex_info { Index { 3 } }
Vertex_info { Index { 2 } }
Vertex_info { Index { 1 } }
Vertex_info { Index { 0 } }
}
}
Facet
{
Front_material { 1 }
Vertex_data
{
Count { 4 }
Vertex_info { Index { 2 } }
Vertex_info { Index { 6 } }
Vertex_info { Index { 5 } }
Vertex_info { Index { 1 } }
}
}
Facet
{
Front_material { 1 }
Vertex_data
{
Count { 4 }
Vertex_info { Index { 6 } }
Vertex_info { Index { 7 } }
Vertex_info { Index { 4 } }
Vertex_info { Index { 5 } }
}
}
Facet
{
Front_material { 2 }
Vertex_data
{
Count { 4 }
Vertex_info { Index { 4 } }
Vertex_info { Index { 7 } }
Vertex_info { Index { 3 } }
Vertex_info { Index { 0 } }
}
}
Facet
{
Front_material { 2 }
Vertex_data
{
Count { 4 }
Vertex_info { Index { 7 } }
Vertex_info { Index { 6 } }
Vertex_info { Index { 2 } }
Vertex_info { Index { 3 } }
}
}
Facet
{
Front_material { 0 }
Vertex_data
{
Count { 4 }
Vertex_info { Index { 5 } }
Vertex_info { Index { 4 } }
Vertex_info { Index { 0 } }
Vertex_info { Index { 1 } }
}
}
}
}
Shape
{
// two red faces, two green faces, two blue faces
Identifier { 0x5678 }
Name { "Second shape" }
Application_handle { 0x9898ABCD }
Bounding_box { 0.5 1.5 2.5 3.5 4.5 5.5 }
Uses_material_table { 0x1D756 }
Is_convex { TRUE }
Vertex_list
{
Count { 8 }
Vertex
{
Point3d { 100 200 300 }
Normal3d { 1.0 2.0 3.0 }
Color { 2 4 6 }
Application_handle { 0x1234567 }
}
Vertex { Point3d { 700 200 300 } }
Vertex { Point3d { 700 800 300 } }
Vertex { Point3d { 100 800 300 } }
Vertex { Point3d { 100 200 900 } }
Vertex { Point3d { 700 200 900 } }
Vertex { Point3d { 700 800 900 } }
Vertex { Point3d { 100 800 900 } }
}
Facet_list
{
Count { 6 }
Facet
{
Front_material { 0 }
Vertex_data
{
Count { 4 }
Vertex_info { Index { 3 } }
Vertex_info { Index { 2 } }
Vertex_info { Index { 1 } }
Vertex_info { Index { 0 } }
}
}
Facet
{
Front_material { 1 }
Back_material { 3 }
Is_doublesided { TRUE }
Normal3D { 2.2 3.3 4.4 }
Identifier { 0xFF3EFF2E }
Application_handle { 0xAAAABBBB }
Vertex_data
{
Count { 4 }
Vertex_info { Index { 2 } }
Vertex_info { Index { 6 } }
Vertex_info { Index { 5 } }
Vertex_info { Index { 1 } }
}
}
Facet
{
Front_material { 1 }
Is_interior { TRUE }
Base_facet { 0xFF3EFF2E }
Vertex_data
{
Count { 4 }
Vertex_info { Index { 6 } }
Vertex_info { Index { 7 } }
Vertex_info { Index { 4 } }
Vertex_info { Index { 5 } }
}
}
Facet
{
Front_material { 2 }
Vertex_data
{
Count { 4 }
Vertex_info { Index { 4 } }
Vertex_info { Index { 7 } }
Vertex_info { Index { 3 } }
Vertex_info { Index { 0 } }
}
}
Facet
{
Front_material { 2 }
Vertex_data
{
Count { 4 }
Vertex_info { Index { 7 } }
Vertex_info { Index { 6 } }
Vertex_info { Index { 2 } }
Vertex_info { Index { 3 } }
}
}
Facet
{
Front_material { 0 }
Vertex_data
{
Count { 4 }
Vertex_info { Index { 5 } }
Vertex_info { Index { 4 } }
Vertex_info { Index { 0 } }
Vertex_info { Index { 1 } }
}
}
}
}
Object { Instance_of_shape { 0x1234 } Location { 0 0 0 } Identifier { 12 } }
Object { Instance_of_shape { 0x1234 } Location { 1000 0 2000 } Identifier { 14 } }
Object
{
Name { "Big object" }
Identifier { 0xCCCCABAB }
Instance_of_shape { 0x5678 }
Scaled_by { 5.5 6.6 7.7 }
Uses_material_table { 0x1C756 }
Location { 123 456 789 }
Rotation { 15 25 35 }
Attached_to { 12 }
Contained_within { 14 }
Is_invisible { TRUE }
Layer { 5 }
Text { "What a lovely object" }
Facet_behind { 0xFF3EFF2E }
Application_handle { 0xDEFA }
}
Object { Instance_of_shape { 0x1234 } Location { 1000 1000 3000 } }
Object { Name { "lightsource" } Identifier { 0x9012 } Location { 0 0 0 } }
Object { Identifier { 0x5050 } Instance_of_shape { 0x5678 } Location { -1000 -1000 -1000 } Rotation { 0.25 0.25 0 } }
Light
{
Name { "Overhead light" }
Application_handle { 0x12121212 }
Type { SPOT }
Associated_with { 0x9012 }
Color { 5.6 6.5 6.6 }
Hotspot { 15 }
Falloff { 25 }
Is_on { FALSE }
Casts_shadows { TRUE }
}
Light
{
Name { "Secondary light" }
Application_handle { 0x13131313 }
Type { POINT }
Associated_with { 0x9012 }
Color { 5.6 6.5 6.6 }
Hotspot { 15 }
Falloff { 25 }
Is_on { TRUE }
Casts_shadows { FALSE }
}
Light
{
Name { "Tertiary light" }
Application_handle { 0x14141414 }
}
Camera
{
Name { "First camera" }
Application_handle { 0xDEDE }
Field_of_view { 25.5 }
Aspect_ratio { 1.2 }
Associated_with { 0x5050 }
Projection_type { PARALLEL }
}
Camera
{
Name { "Second camera" }
Application_handle { 0xDADA }
Associated_with { 0x5050 }
Projection_type { PERSPECTIVE }
}
Camera
{
Name { "Third camera" }
Application_handle { 0xAABB }
Associated_with { 0x5050 }
Projection_type { PERSPECTIVE }
}
Sound
{
Name { "Telephone" }
Application_handle { 0x11333222 }
Associated_with { 0x5050 }
Is_on { FALSE }
Volume { 18.75 }
Sample_name { "telephone ring" }
}
Sound
{
Name { "Doorbell" }
Application_handle { 0x44333222 }
Associated_with { 0x5050 }
Is_on { FALSE }
Volume { 18.75 }
Sample_name { "door chime" }
}
Sound
{
Name { "Scream" }
Application_handle { 0x55333222 }
Associated_with { 0x5050 }
Is_on { FALSE }
Volume { 18.75 }
Sample_name { "scream test" }
}
World_attributes
{
Gravity_vector { 1.1 2.2 3.3 }
Ambient_light { .5 .5 .5 }
Has_horizon { TRUE }
Sky_color { 0 0 1 }
Ground_color { 0 2 0 }
Fog_color { 1 1 1 }
Scale { 2.1 }
}