PDA

View Full Version : Syntax about VRML...and opengl..



Least Lee
11-08-2001, 08:51 AM
Following is initial part of VRML code
"
#VRML V2.0 utf8

# Produced by 3D Studio MAX VRML97 exporter, Version 4, Revision 0
# MAX File: Somebody, Date: XXX Dec 10 12:21:15 2001

DEF Omni01 PointLight {
intensity 1.825
color 0.9529 0.6039 0.5333
location 1278 0 -372.6
on TRUE
radius 1854
}
DEF Omni02 PointLight {
intensity 1.076
color 0.8235 0.8784 0.898
location -359.3 0 330.6
on TRUE
radius 1854
}
DEF Direct01 DirectionalLight {
intensity 0.9472
color 0.9176 0.9176 0.9176
direction 0.2162 -0.6785 0.7021
on TRUE
}
DEF Direct01-TIMER TimeSensor { loop TRUE cycleInterval 3.333 },
DEF Omni03 PointLight {
intensity 0.35
color 0.9412 0.5373 0.3176
location 399.4 0 327.6
on TRUE
radius 1854
}
NavigationInfo { headlight FALSE }
....
"

it seems that it is the part of putting
the light source...
Can any body tell me how to write
corresponding statement in opengl?
the problem is that i don't throughly
understand the vrml and opengl....

just tell me anything you know is very helpful already...

Thank you