# ======================================= }
# COMMENT }
# Unlike normal VRML code, }
# notice that a curly bracket ends these comments }
# ======================================= }
# ========================== }
# INLNE EXAMPLE }
# ========================== }
DEF myInlineTrf Transform
{
scale 2 2 2
translation -7 9 0
rotation 0 1 0 0.52
children
[
Inline
{
url " http://www.evl.uic.edu/pape/vrml/JASON/JasonWorldHi.wrl"
}
]
}
# ==========================}
# BOX EXAMPLE }
# ==========================}
DEF myBoxTrf Transform
{
scale 1 1 1
translation 0 0 -10
rotation 0 1 0 0.52
children
[
DEF myBoxShp Shape
{
appearance DEF myBoxApp Appearance
{
material DEF myBoxMat Material
{
diffuseColor 0 1 0
emissiveColor 0 1 0
specularColor 0 1 0
transparency 0.75
}
}
geometry DEF myBoxGeo Box
{
size 20 10 5
}
}
]
}
# ==========================}
# SPHERE EXAMPLE }
# ==========================}
DEF mySphereTrf Transform
{
scale 1 1 1
translation 0 0 -10
rotation 0 1 0 0.52
children
[
DEF mySphereShp Shape
{
appearance DEF mySphereApp Appearance
{
material DEF mySphereMat Material
{
diffuseColor 0 1 1
emissiveColor 0 1 1
specularColor 0 0 1
transparency 0.75
}
}
geometry DEF mySphereGeo Sphere
{
radius 10
}
}
]
}
# ==========================}
# 3D TEXT EXAMPLE }
# ==========================}
DEF myTextTrf Transform
{
scale 4 4 4
translation 0 9 -10
rotation 0 1 0 0.52
children
[
DEF myTextShp Shape
{
appearance DEF myTextApp Appearance
{
material DEF myTextMat Material
{
diffuseColor 0 0 1
emissiveColor 0 0 1
specularColor 0.5 0.7 1
transparency 0.50
}
}
geometry DEF myTextGeo Text3D
{
string "My Title"
}
}
]
}