Difference between revisions of "Appearance"
Abergstrom (Talk | contribs) |
Abergstrom (Talk | contribs) |
||
Line 13: | Line 13: | ||
</pre> | </pre> | ||
− | <p>The Appearance node specifies the visual properties of geometry. The value for each of the fields in this node may be < | + | <p>The Appearance node specifies the visual properties of geometry. The value for each of the fields in this node may be <code>NULL</code>. However, if the field is non-<code>NULL</code>, it shall contain one node of the appropriate type.</p> |
− | The material field, if specified, shall contain a Material node. If the material field is | + | <p>The material field, if specified, shall contain a Material node. If the material field is <code>NULL</code> or unspecified, lighting is off (all lights are ignored during rendering of the object that references this Appearance) and the unlit object colour is (1, 1, 1). Details of the X3D lighting model are in 17 Lighting component.</p> |
− | The texture field, if specified, shall contain one of the various types of texture nodes (see | + | The texture field, if specified, shall contain one of the various types of texture nodes (see: Texturing component). If the texture node is <code>NULL</code> or the texture field is unspecified, the object that references this Appearance is not textured. |
− | The textureTransform field, if specified, shall contain a TextureTransform node as defined in 18.4.8 TextureTransform. If the textureTransform is NULL or unspecified, the textureTransform field has no effect. | + | The textureTransform field, if specified, shall contain a TextureTransform node as defined in 18.4.8 TextureTransform. If the textureTransform is <code>NULL</code> or unspecified, the textureTransform field has no effect. |
− | The lineProperties field, if specified, shall contain a LineProperties node as specified in 12.4.3 LineProperties. If lineProperties is NULL or unspecified, the lineProperties field has no effect. | + | The lineProperties field, if specified, shall contain a LineProperties node as specified in 12.4.3 LineProperties. If lineProperties is <code>NULL</code> or unspecified, the lineProperties field has no effect. |
− | The fillProperties field, if specified, shall contain a FillProperties node as specified in 12.4.2 FillProperties. If fillProperties is NULL or unspecified, the fillProperties field has no effect. | + | The fillProperties field, if specified, shall contain a FillProperties node as specified in 12.4.2 FillProperties. If fillProperties is <code>NULL</code> or unspecified, the fillProperties field has no effect. |
* [[Node Reference]] | * [[Node Reference]] |
Revision as of 22:35, 27 January 2006
Appearance
Appearance : X3DAppearanceNode { SFNode [in,out] fillProperties NULL [FillProperties] SFNode [in,out] lineProperties NULL [LineProperties] SFNode [in,out] material NULL [X3DMaterialNode] SFNode [in,out] metadata NULL [X3DMetadataObject] SFNode [in,out] texture NULL [X3DTextureNode] SFNode [in,out] textureTransform NULL [X3DTextureTransformNode] }
The Appearance node specifies the visual properties of geometry. The value for each of the fields in this node may be NULL
. However, if the field is non-NULL
, it shall contain one node of the appropriate type.
The material field, if specified, shall 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 colour is (1, 1, 1). Details of the X3D lighting model are in 17 Lighting component.
The texture field, if specified, shall contain one of the various types of texture nodes (see: Texturing component). If the texture node is NULL
or the texture field is unspecified, the object that references this Appearance is not textured.
The textureTransform field, if specified, shall contain a TextureTransform node as defined in 18.4.8 TextureTransform. If the textureTransform is NULL
or unspecified, the textureTransform field has no effect.
The lineProperties field, if specified, shall contain a LineProperties node as specified in 12.4.3 LineProperties. If lineProperties is NULL
or unspecified, the lineProperties field has no effect.
The fillProperties field, if specified, shall contain a FillProperties node as specified in 12.4.2 FillProperties. If fillProperties is NULL
or unspecified, the fillProperties field has no effect.