#VRML V2.0 utf8 #バックグラウンド指定 Background{ skyColor 0 0 1 } #けん玉(右) Transform{ translation 0.8 0 0 rotation 0 0 1 1.57 scale 1 0.8 1 #物体の形状を拡大・縮小する children[ DEF SARA Shape{ #ラベル付け appearance Appearance{ texture ImageTexture{ url "katura.gif" } } geometry Cone{} } ] } #けん玉(左) Transform{ translation -0.8 0 0 rotation 0 0 1 -1.57 scale 1 0.8 1 children[ USE SARA #SARAとラベルされている物体を使う #という意味 ] } #けん玉(下) Transform{ scale 0.7 2 0.7 translation 0 -1 0 children[ USE SARA ] } #けん玉(玉) Transform{ translation 0 0.9 0 children[ Shape{ appearance Appearance{ material Material{ diffuseColor 1 0 0 } } geometry Sphere{radius 0.8} } ] }