home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magazyn WWW 2001 May
/
cd49www.iso
/
inne
/
spirit
/
www.spiritpower.org
/
test.wrl
/
test
Wrap
Text File
|
2000-11-03
|
5KB
|
12 lines
#VRML V2.0 utf8
WorldInfo {
title "cube.htm"
info ["Copyright, 1998, TriVista Technologies, Inc. All rights reserved.",
"The content and structure of this document are",
"protected by U.S. copyright and international",
"treaties and may not be copied without the express",
"permission of TriVista Technologies, Inc."]
}
#Registered Version: Preferred Customer
Background { skyColor 1 1 1 } NavigationInfo { type "NONE" } Viewpoint { description "Initial" position 0 0 5.67 orientation 0 1 0 0 fieldOfView 0.3 } PROTO Face_BE [ field MFString textureURL [""] field MFVec2f cp4 [0 1,0 0,1 0,1 1] field SFVec3f imgScale 1.0 1.0 1.0 field SFColor bColor 0 0 1 field MFVec3f p8 [] ] { Group { children [ Transform { scale IS imgScale children Shape { appearance Appearance { texture ImageTexture { url IS textureURL } } geometry DEF IFS1 IndexedFaceSet { coord Coordinate { point [-0.5 0.5 0,-0.5 -0.5 0,0.5 -0.5 0,0.5 0.5 0] } coordIndex [0, 1, 2, 3] texCoord TextureCoordinate { point IS cp4 } normalPerVertex FALSE creaseAngle 0.5 } } } Shape { appearance Appearance { material Material { emissiveColor IS bColor diffuseColor 0 0 0 } } geometry IndexedFaceSet { coord Coordinate { point IS p8 } coordIndex [0,4,5,1,-1,1,5,6,2,-1,2,6,7,3,-1,3,7,4,0] normalPerVertex FALSE creaseAngle 0.5 } } ] } } Group { children [ DEF T1 Transform { children [ DEF CubeXXfm Transform { rotation 0.7 1 0 0.8 children DEF CubeYXfm Transform { children DEF CubeZXfm Transform { children [ Transform { translation -0.5 0 0 rotation 0 1 0 4.71239 children [ Group { children Shape { appearance Appearance { material Material { emissiveColor 0 0 1 diffuseColor 0 0 0 }} geometry IndexedFaceSet { coord Coordinate { point [-0.5 0.5 0,-0.5 -0.5 0,0.5 -0.5 0,0.5 0.5 0]} coordIndex [0, 1, 2, 3] } } } ] } Transform { translation 0 0 0.5 children [ Group { children Shape { appearance Appearance { material Material { emissiveColor 0 0 1 diffuseColor 0 0 0 }} geometry IndexedFaceSet { coord Coordinate { point [-0.5 0.5 0,-0.5 -0.5 0,0.5 -0.5 0,0.5 0.5 0]} coordIndex [0, 1, 2, 3] } } } ] } Transform { translation 0.5 0 0 rotation 0 1 0 1.5708 children [ Group { children Shape { appearance Appearance { material Material { emissiveColor 0 0 1 diffuseColor 0 0 0 }} geometry IndexedFaceSet { coord Coordinate { point [-0.5 0.5 0,-0.5 -0.5 0,0.5 -0.5 0,0.5 0.5 0]} coordIndex [0, 1, 2, 3] } } } ] } Transform { translation 0 0 -0.5 rotation 0 1 0 3.14159 children [ Group { children Shape { appearance Appearance { material Material { emissiveColor 0 0 1 diffuseColor 0 0 0 }} geometry IndexedFaceSet { coord Coordinate { point [-0.5 0.5 0,-0.5 -0.5 0,0.5 -0.5 0,0.5 0.5 0]} coordIndex [0, 1, 2, 3] } } } ] } Transform { translation 0 0.5 0 rotation 1 0 0 4.71239 children [ Group { children Shape { appearance Appearance { material Material { emissiveColor 0 0 1 diffuseColor 0 0 0 }} geometry IndexedFaceSet { coord Coordinate { point [-0.5 0.5 0,-0.5 -0.5 0,0.5 -0.5 0,0.5 0.5 0]} coordIndex [0, 1, 2, 3] } } } ] } Transform { translation 0 -0.5 0 rotation 1 0 0 1.5708 children [ Group { children Shape { appearance Appearance { material Material { emissiveColor 0 0 1 diffuseColor 0 0 0 }} geometry IndexedFaceSet { coord Coordinate { point [-0.5 0.5 0,-0.5 -0.5 0,0.5 -0.5 0,0.5 0.5 0]} coordIndex [0, 1, 2, 3] } } } ] } ] } } } ]} DEF CubeSphereSensor SphereSensor{} ] } DEF RandClock TimeSensor { cycleInterval 34 loop TRUE} DEF RandClock2 TimeSensor { cycleInterval 28 loop TRUE} DEF RandOrientY OrientationInterpolator { key [0,0.5,1.0] keyValue [1 0 1 0,1 0 1 3.1416,1 0 1 6.2832]} DEF RandOrientZ OrientationInterpolator { key [0,0.5,1.0] keyValue [0 1 0 0,0 1 0 3.1416,0 1 0 6.2832]} ROUTE RandClock.fraction_changed TO RandOrientY.set_fraction ROUTE RandOrientY.value_changed TO CubeYXfm.set_rotation ROUTE RandClock2.fraction_changed TO RandOrientZ.set_fraction ROUTE RandOrientZ.value_changed TO CubeZXfm.set_rotation ROUTE CubeSphereSensor.rotation_changed TO T1.set_rotation