SoVRMLPixelTexture Class Reference
[VRML97 nodes]

VSG extension Texture node. More...

#include <Inventor/VRMLnodes/SoVRMLPixelTexture.h>

Inheritance diagram for SoVRMLPixelTexture:
SoVRMLTexture SoVRMLNode SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoVRMLPixelTexture ()

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoSFImage image

Detailed Description

VSG extension Texture node.

See the VRML97 Specification, below.

NOTE: This class does not exist in Open Inventor 10.0 and later.

If the texture image's width or height is not a power of 2, or the image's width or height is greater than the maximum supported by OpenGL, then the image will be automatically scaled up or down to the next power of 2 or the maximum texture size. For maximum speed, point-sampling is used to do the scale; if you want more accurate resampling, pre-filter images to a power of 2 smaller than the maximum texture size (use the OpenGL glGetIntegerv(GL_MAX_TEXTURE_SIZE...) call to determine maximum texture for a specific OpenGL implementation).

The quality of the texturing is affected by the textureQuality field of the SoComplexity node. The textureQuality field affects what kind of filtering is done to the texture when it must be minified or magnified. The mapping of a particular texture quality value to a particular OpenGL filtering technique is implementation dependent, and varies based on the texturing performance. If mipmap filtering is required, mipmaps are automatically created using the simple box filter.

Performance Note: Automatic scaling of texture images to a power of 2 is a very convenient feature for prototyping, but it does take additional time the first time the texture node is traversed for rendering. For large images, or a large number of images, this can make the application seem slow while starting up or loading a new data file. Avoid this effect by either pre-scaling the image or by storing it as a sub-image in a "power of 2" image (then provide explicit texture coordinates such that only the sub-image is used).

VRML97 SPECIFICATION

FILE FORMAT/DEFAULT

ACTION BEHAVIOR

EVENTS


Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/