All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----dnx.util.DNXObject | +----dnx.lr.Node | +----dnx.lr.SubsidiaryNode | +----dnx.lr.node.AppearanceNode
Appearance { exposedField SFNode material NULL exposedField SFNode texture NULL exposedField SFNode textureTransform NULL }
The Appearance node specifies the visual properties of geometry by defining the material and texture nodes. The value for each of the fields in this node can be NULL. However, if the field is non-NULL, it must contain one node of the appropriate type.
The material field, if specified, must contain a Material node. If the material field is NULL or unspecified, lighting is off (all lights are ignored during rendering of the object that references this Appearance) and the unlit object color is (0, 0, 0) - see "Concepts - Lighting Model" for details of the VRML lighting model.
The texture field, if specified, must contain one of the various types of texture nodes (ImageTexture, MovieTexture, or PixelTexture). If the texture node is NULL or unspecified, the object that references this Appearance is not textured.
The textureTransform field, if specified, must contain a TextureTransform node. If the texture field is NULL or unspecified, or if the textureTransform is NULL or unspecified, the textureTransform field has no effect.
public SFNode materialtexture
public SFNode texturetextureTransform
public SFNode textureTransform
public AppearanceNode()
protected void createNodeDefinition(NodeDefinition def)
protected void initFields()
public Material getMaterial()getMaterialNode
public MaterialNode getMaterialNode()getTexture
public Texture getTexture(Graphics3DDevice device)getTextureNode
public TextureNode getTextureNode()getTextureTransform
public Matrix4 getTextureTransform()getTextureTransformNode
public TextureTransformNode getTextureTransformNode()handleFieldChange
protected void handleFieldChange(Field f)
All Packages Class Hierarchy This Package Previous Next Index