Click or drag to resize
SoAppearancePreserver Class

Note: This API is now obsolete.

Encapsulates an appearance preserving simplification algorithm.

Inheritance Hierarchy
SystemObject
  OIV.InventorSoNetBase
    OIV.FXViz.APSSoAppearancePreserver

Namespace: OIV.FXViz.APS
Assembly: OIV.FxViz (in OIV.FxViz.dll) Version: 9.9.13.0 (9.9.13.0)
Syntax
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
[ObsoleteAttribute("See documentation for more details")]
public class SoAppearancePreserver : SoNetBase

The SoAppearancePreserver type exposes the following members.

Constructors
  NameDescription
Public methodSoAppearancePreserver

Constructor.

Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetBumpCoords

Computes the texture coordinates and creates an SoTextureCoordinate2 node.

Public methodGetDisplacementMapTexture
Calls GetDisplacementMapTexture("").
Public methodGetDisplacementMapTexture(String)

Computes the displacement map texture and creates an SoTexture2 node.

Public methodGetHashCode
Overrides GetHashCode().
(Inherited from SoNetBase.)
Public methodGetNormalMapTexture
Calls GetNormalMapTexture((System.String ^)nullptr).
Public methodGetNormalMapTexture(String)

Computes the normal map texture and creates an SoTexture2 node.

Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSetSceneGraphs

Specifies the original scene graph and the simplified scene graph.

Public methodSetTextureSize

Specifies the texture size to be generated.

Public methodSetTriangleMinSize

Specifies the mininum size for a triangle stored within the normal map texture.

Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyProgressCallback

Sets a progress callback.

Top
Remarks

This technique computes, from a highly detailed model and its corresponding simplified model obtained with the decimation tools (see SoSimplifyAction, SoSimplify...), a normal map texture and texture coordinates for this texture to be applied to the simplified model. For each triangle in the simplified model, there is a triangular area in the normal map texture that contains normal vectors derived from the original complex model. Using the bump mapping technique with the generated normal map, the rendering of the simplified model will appear with the details of the original model but using much fewer triangles.

Note 1: The time for generating the normal map depends on the size of the original model, the size of the simplified model, and also the size of the normal map texture. This process could take several minutes.

Note 2: The quality of the final rendering using the bump mapping technique is closely linked to the size of the normal map texture.

Limitations: The size of the normal map texture limits the number of possible triangles for the simplified model. This is because the minimum size for a triangle in the normal map texture is at least 3 pixels. So for a 256*256 texture size, a maximum of 22,000 triangles can be stored. If necessary, specify a larger texture (see setTextureSize) or a more aggressive simplification of the model.

See Also