#VRML V2.0 utf8
#创建模型
Shape { # Shape 模型节点
appearance Appearance{
material Material { #空间物体造型外观
diffuseColor 1.0 1.0 1.0 #一种材料的漫反射颜色
transparency 0.7 #物体的透明度
}
}
geometry Box {
size 20 8 0.8 #透明板
}
}
#创建文字
Shape { # Shape 模型节点
appearance Appearance{
material Material { #空间物体造型外观
diffuseColor 1.0 0.0 0.0 #一种材料的漫反射颜色
}
}
geometry Text {
string [
"Hello", #不同的行用逗号隔开
"My name is VRML"
]
fontStyle FontStyle{
family "typewriter" #
size 2.0
style "BOLDITALIC"
justify[
"MIDDLE" #中间
]
}
}
}