H3D::X3DEnvironmentTextureNode Class Reference
[Abstract nodes.]

This abstract node type is the base type for all node types that specify cubic environment map sources for texture images. More...

#include <H3D/X3DEnvironmentTextureNode.h>

Inheritance diagram for H3D::X3DEnvironmentTextureNode:

Inheritance graph

List of all members.

Public Member Functions

 X3DEnvironmentTextureNode (Inst< DisplayList > _displayList=0, Inst< SFNode > _metadata=0)
 Constructor.
GLuint getTextureId ()
 Get the OpenGL texture id that is used for this texture.
GLuint getTextureUnit ()
 Get the OpenGL texture unit that is used for this texture.

Protected Attributes

GLint texture_unit
 The OpenGL texture unit that is used to render this texture.


Detailed Description

This abstract node type is the base type for all node types that specify cubic environment map sources for texture images.

Cubic environment maps support reflection and specular highlighting in a simple way. A collection of 2D texture maps define each side of the cube. All source images shall be square and provide source data in powers of two numbers of pixels. Source images in a cubic environment map shall have identical sizes. Providing differently sized images or rectangular images shall be an error.

For each texture, the three-dimensional texture coordinates (s,t,r) are treated as a direction vector from the local origin. Each texel drawn onto the geometry is treated as the texel in the environment map that is "seen" from this direction vector.

Cubic environment maps define a single texture as consisting of six separate images, one for each side of a cube. This component defines the six sides as front, back, left, right, top and bottom.


The documentation for this class was generated from the following file:

Generated on Fri Nov 7 10:31:26 2008 for H3D API by  doxygen 1.5.7