#VRML V2.0 utf8 WorldInfo { title "神龙词" info [ "Author: 金臂螳螂" "Date: Feb. 28, 1998 (Sat)", ] } NavigationInfo { type "EXAMINE" headlight TRUE speed 1.0 } Background { frontUrl ["stand.gif"] #背景图象的路径 backUrl ["stand.gif"] topUrl ["stand.gif"] bottomUrl ["stand.gif"] leftUrl ["stand.gif"] rightUrl ["stand.gif"] } Billboard { #Billboard 是组合指令,它使所规定的物体与虚拟实境整体不 axisOfRotation 0 1 0 #在一个轴向转动。 bboxSize 7.0 7.0 0.2 #此指令用以包含其子物体。 children [ Shape { appearance Appearance { material Material { diffuseColor 1.0 1.0 0.0 } } geometry Text { #虚拟实境中的文字 string ["Dragon's","Shrine" ] fontStyle FontStyle { family "ARIAL" style "ITALIC" justify [ "MIDDLE" "MIDDLE"] spacing 1.5 size 1.5 } } }, Transform { translation 0.0 -0.0 -0.06 children [ Shape { appearance Appearance { material Material { diffuseColor 0.5 0.5 0.5 transparency 0.6 } } geometry Box { size 7.0 7.0 0.1 } #板状体 } ] } ] } Group { children [ Transform { translation 8.0 8.0 1.0 children DEF Sphere Inline { #Inline 指令可令被指令的文件重复引用。 bboxSize 2.0 2.0 2.0 #这里是DEF Sphere,即sphere.wrl。 bboxCenter 0.0 0.0 0.0 url "sphere.wrl" #这个虚拟实境是个圆球,表面粘贴了龙的图案。 } }, Transform { translation -8.0 8.0 -1.0 children USE Sphere #在这里 USE Sphere 将引用sphere.wrl。 }, Transform { translation 8.0 -8.0 -1.0 children USE Sphere }, Transform { translation -8.0 -8.0 1.0 children USE Sphere } ] } Group { #规定视点的指令群,请注意顺序的不同。 children [ DEF EntryView Viewpoint { fieldOfView 1.27 orientation 0 0 -1 0 position 0.0 0.0 12.0 description "EntryView" }, DEF BackView Viewpoint { fieldOfView 1.57 orientation 0 1 0 3.14 position 0.0 0.0 -12.0 description "BackView" } ] }