instantreality 1.0

Component:
Texturing
Status:
fully implemented
Structure type:
concrete
Standard:
Avalon

PixelTexture2D (Standard name: 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. Hint: this is a good way to bundle image(s) into a single scene file, avoiding mutliple downloads. Warning: aggregate file size can grow dramatically. Hint: insert Shape and Appearance nodes before adding texture.

Inheritance

Code

XML encoding
<PixelTexture2D image='0 0 0'
logFeature=''
 />
Classic encoding
PixelTexture2D {
	image 0 0 0
	logFeature [""]
}

Interface

Filter: X3D only | Avalon only | All
id Name DataType PartType Default ValueType Description
MFString logFeature MFString inputOutput state, child, parent, route, eventIn, eventOut controls the logging of changes, state: log state changes (e.g. live), child: log child add/remove, parent: log parent add/remove, route: log route add/remove; eventIn: log receiving of events, eventOut: log sending of events: guiView, runtime system should create node-view, guiEdit: runtime system should create node-editeverything: log everything
SFImage image SFImage inputOutput 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-transparency). intensity example: [1 2 1 0xFF 0x00] intensity-alpha example: [needed] red-green-blue example: [2 4 3 0xFF0000 0xFF00 0 0 0 0 0xFFFFFF 0xFFFF00] red-green-blue-alpha example: [needed]
SFNode metadata SFNode inputOutput MetadataObject container for payload metadata inside MetadataSet element
SFNode textureProperties SFNode initializeOnly TextureProperties Definition of a texture property set. When set, the corresponding fields like repeat etc of the texture itself are ignored.