Pinecoast
 
Basic
Handbag
Cell Phone
Watch
 
Basic 3D Geometry
Messaging
Background
Butterflies
Fog
Color Interpolator
3D Shapes
2D Shapes
Textures
Material
IndexedFaceSet
Layering
Overlay
Shaders 1
Shaders 2
 
     


Tutorial: Image and Pixel Textures

Image Texture

For an ImageTexture, the url field contains the name of the image files to be used for the texture, in order of preference. The coordinates for the texture are in (s, t), where each of the coordinates is between 0 and 1. The repeatS and repeatT fields of the node determine how the texture is repeated. In each of the illustrations the texture coordinates are set at (0, 0), (4, 0), (4, 4), (0, 4). In the first case repeatS and repeatT are both true. This means that the image is repeated 4 times in each direction.

Image Texture - repeatS

In this case, repeatS is true but repeatT is false. As a result, the texture is repeated 4 times horizontally. The texture is not repeated vertically, in the t direction. The top line of the texture, however, is extended up to the top of the rectangle.

Image Texture - repeatT

In this case, repeatS is false but repeatT is true. Now, the texture is repeated vertically but not horizontally. The right edge is extended toward to the right edge of the rectangle.

Pixel Texture

In a PixelTexture, instead of specifiying an image file, the image data is placed directly in the image field. The image has a width, a height, and a number of components. The number of components is 1, 2, 3 or 4. If there are 3 components, they are in RGB color format. The fourth component is the alpha component.

Pixel Texture - repeatT

The repeatS and repeatT fields for the PixelTexture behave in exactly the same way as the fields in an ImageTexture.

Pixel Texture - 1 component

If the number of components is 1 or 2. The image data specifies intensity. In this example, the diffuseColor of the Material node is set to green. The texture then varies the intensity of the green.


























     
 
 

SwirlX3D Viewer


The SwirlX3D Viewer is a free standalone application for viewing VRML, X3D. It also displays sw3d archives created by the SwPublish program.
The professional version also displays files from other formst such as Collada(DAE), 3DS, OBJ, PLY, STL and IGES (IGS).
For more details ...

 

SwTranslator for VRML, X3D and Collada


The SwTranslator can export VRML, X3D, Collada(DAE), 3DS, OBJ, PLY, STL or IGES files to VRML, X3D or Collada. For X3D this offers a migration path for importing high quality 3D models from a variety of sources. For Collada, it offers an opportunity to bring geometry and animation into this increasingly popular format.
For more details ...