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=''
anisotropy='1'
internalFormat='auto'
pixelType='keep'
pixelFormat='keep'
repeatR='TRUE'
pixelScale='1'
magFilter='auto'
repeatS='TRUE'
repeatT='TRUE'
compression='auto'
minFilter='auto'
envFunction='auto'
autoScale='TRUE'
envSource='auto'
envColor='1 1 1 1'
envMode='auto'
 />
Classic encoding
PixelTexture2D {
	image 0 0 0
	logFeature [""]
	anisotropy 1
	internalFormat "auto"
	pixelType "keep"
	pixelFormat "keep"
	repeatR TRUE
	pixelScale 1
	magFilter "auto"
	repeatS TRUE
	repeatT TRUE
	compression "auto"
	minFilter "auto"
	envFunction "auto"
	autoScale TRUE
	envSource "auto"
	envColor 1 1 1 1
	envMode "auto"
}

Interface

Filter: X3D only | Avalon only | All
id Name DataType PartType Default ValueType Description
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.