Post

PixelTexture3D

PixelTexture3D

Overview

PixelTexture3D defines a 3D image-based texture map as an explicit array of pixel values (image field).

The PixelTexture3D node belongs to the Texturing3D component and requires at least level 1, its default container field is texture. It is available from X3D version 3.1 or higher.

Hierarchy

1
2
3
4
5
6
+ X3DNode
  + X3DAppearanceChildNode
    + X3DTextureNode
      + X3DSingleTextureNode
        + X3DTexture3DNode
          + PixelTexture3D

Fields

SFNode [in, out] metadata NULL [X3DMetadataObject]

Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.

Hint

SFString [in, out] description “”

Author-provided prose that describes intended purpose of the url asset.

Hint

  • Many XML tools substitute XML character references for special characters automatically if needed within an attribute value (such as & for & ampersand character, or " for “ quotation-mark character).

MFInt32 [in, out] image [ 0, 0, 0, 0 ]

image describes raw data for this 3D texture: number of components to the image [0,4], width, height and depth of the texture, followed by (width x height x depth) pixel values.

Warning

  • The order of initial values in PixelTexture and PixelTexture3D image arrays are different.

SFBool [ ] repeatS FALSE

Whether to repeat texture along S axis horizontally from left to right.

SFBool [ ] repeatT FALSE

Whether to repeat texture along T axis vertically from top to bottom.

SFBool [ ] repeatR FALSE

Whether to repeat texture along R axis from front to back.

SFNode [ ] textureProperties NULL [TextureProperties]

Single contained TextureProperties node that can specify additional visual attributes applied to corresponding texture images.

Advice

Hints

Warning

  • Requires X3D profile='Full' or else include <component name='Texturing3D' level='1'/>

See Also

This post is licensed under CC BY 4.0 by the author.