Building A Box
Node
Box • Attributes
Description
Three colored boxes with the two smaller boxes offset from (0,0,0) within the scene.
VRIGNETTE Notes
Box can be resized along the X, Y and Z axis. In case you're wondering, there is no dedicated method to round the corners.
Example
Rotate the vrignette to view the geometry.
Code
<x3d> <scene> <worldInfo title="X3D Box Example"> </worldInfo> <navigationInfo visibiltyLimit="0.0"> </navigationInfo> <viewpoint position="0.0 0.0 28.0" centerOfRotation="0.0 0.0 0.0"> </viewpoint> <transform rotation="1 1 1 0.392"> <shape> <appearance> <material diffuseColor="0.749 0.0 0.749" specularColor="0.25 0.25 0.25" shininess="0.15"> </material> </appearance> <box size="5.0 5.0 5.0" solid="false"> </box> </shape> </transform> <transform translation="-7.0 1.0 -3.0" rotation="1 1 1 0.392"> <shape> <appearance> <material diffuseColor="0.0 0.749 0.0" specularColor="0.25 0.25 0.25" shininess="0.15"> </material> </appearance> <box size="4.0 4.0 4.0" solid="false"> </box> </shape> </transform> <transform translation="6.0 -1.0 3.0" rotation="1 1 1 0.392"> <shape> <appearance> <material diffuseColor="0.0 0.376 0.749" specularColor="0.25 0.25 0.25" shininess="0.15"> </material> </appearance> <box size="3.0 3.0 3.0" solid="false"> </box> </shape> </transform> <background skyColor="0.20 0.20 0.20" groundColor="0.20 0.20 0.20"> </background> </scene> </x3d>