home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of Windows 95.com 1996 September
/
WIN95_09962.iso
/
vrml
/
MWE105.ZIP
/
EExamples
/
Street.vxr
< prev
next >
Wrap
Text File
|
1996-01-25
|
2KB
|
77 lines
#VRML V1.0 ascii
Separator {
# Options: ON OFF AUTO
renderCulling AUTO
OUTPUT_TO Street.wrl
DEF BackgroundColor Info {
string ".1 .2 .7"
}
PerspectiveCamera {
position 0 2 10
focalDistance 5
heightAngle 45'deg
}
DEF param PARAMETERS {
fields [ SFFloat streetWidth ]
streetWidth 20'ft
}
Wall {
fields [ SFLong placement, SFFloat width, MFFloat height,
MFFloat elevation, MFVec2f data ]
placement -1 # -1: Inside, 1: Outside
width param:streetWidth
height [ 6'in ]
elevation [ -6'in ]
data [param:streetWidth/2 0, param:streetWidth/2 -1000'ft] # Describe the (x,y) coordinates of the wall here
}
LOOP {
fields [ SFLong start, SFLong end, SFLong step, SFLong position ]
start 0
end 5
step 1
Separator {
# Options: ON OFF AUTO
renderCulling AUTO
Transform {
translation -param:streetWidth/2 0 -position*100'ft
}
PARAMETERS {
fields [SFVec3f centerLOD, SFFloat streetLightHeight, SFFloat streetLightArmLength ]
centerLOD -param:streetWidth/2 0 -position*100'ft
streetLightHeight 20'ft
streetLightArmLength 2'ft
INCLUDE StreetLight.vxr
}
}
Separator {
# Options: ON OFF AUTO
renderCulling AUTO
Transform {
translation param:streetWidth/2 0 -position*100'ft
rotation 0 1 0 pi()
}
PARAMETERS {
fields [SFVec3f centerLOD, SFFloat streetLightHeight, SFFloat streetLightArmLength ]
centerLOD param:streetWidth/2 0 -position*100'ft
streetLightHeight 20'ft
streetLightArmLength 2'ft
INCLUDE StreetLight.vxr
}
}
}
}