Titania X3D Editor

Bring Colours to Your Life.

Titania v4.3.4

Bring Colours to Your Life.

X3D Reference

PixelTexture

PixelTexture

PixelTexture creates a 2D-image texture map using a numeric array of pixel values. Texture maps have a 2D coordinate system (s, t) horizontal and vertical, with (s, t) values in range [0.0, 1.0] for opposite corners of the image.

The PixelTexture node belongs to the Texturing component and its container field is texture. It is available since X3D version 3.0 or later.

Hierarchy

Fields

SFNode [in, out] metadata NULL [X3DMetadataObject]

Metadata are not part of the X3D world and not interpreted by the X3D browser, but they can be accessed via the ECMAScript interface.

SFImage [in, out] image 0 0 0

Defines image: width height number_of_components pixel_values. width and height are pixel count, number_of_components = 1 (intensity), 2 (intensity alpha), 3 (red green blue), 4 (red green blue alpha-opacity).

SFBool [ ] repeatS TRUE

Whether to horizontally repeat texture along S axis.

SFBool [ ] repeatT TRUE

Whether to vertically repeat texture along T axis.

SFNode [ ] textureProperties NULL [TextureProperties]

Field textureProperties.

Description

Hints

  • This is a good way to bundle image(s) into a single scene file, avoiding multiple downloads.
  • Can contain a single TextureProperties node.
  • Insert Shape and Appearance nodes before adding texture.

Warning

  • Aggregate file size can grow dramatically.

Example

PixelTexture

XML Encoding

Classic Encoding

JSON Encoding

Browser Compatibility

Titania X_ITE
yes yes

Cookies and other Technologies

By clicking »Accept« or continuing to use the site, you agree to the use of CREATE3000 and third-party cookies and other similar technologies to enhance your browsing experience, analyze and measure your engagement with our content, and provide more relevant ads on CREATE3000 websites and others. Learn more about cookies. You can withdraw your consent at any time.