Going Beyond Color
Node
ImageTexture • Attributes
Description
A Box with cube dimensions textured with a JPEG. The image itself is square.
VRIGNETTE Notes
A lot of shapes have a default texture mapping. More advanced texture methods such as TextureCoordinate allow finer control over how textures are applied.
Other Nodes
Example
Rotate the vrignette to view the geometry.
Code
<x3d> <scene> <worldInfo title="X3D ImageTexture Example"> </worldInfo> <navigationInfo headlight="true"> </navigationInfo> <viewpoint position="0.0 0.0 20.0" centerOfRotation="0.0 0.0 0.0"> </viewpoint> <transform rotation="1 0 0 0.785"> <transform rotation="0 1 0 0.392"> <shape> <appearance> <material specularColor="0.0 0.0 0.0" shininess="0.20"> </material> <imageTexture url="cloudy_day_texture_square_1000.jpeg" repeatS="false" repeatT="false"> </imageTexture> </appearance> <box size="5.0 5.0 5.0" solid="true"> </box> </shape> </transform> <background skyColor="0.20 0.20 0.20" groundColor="0.20 0.20 0.20"> </background> </scene> </x3d>