SoAppearancePreserver Class |
Note: This API is now obsolete.
Encapsulates an appearance preserving simplification algorithm.
Namespace: OIV.FXViz.APS
The SoAppearancePreserver type exposes the following members.
Name | Description | |
---|---|---|
![]() | SoAppearancePreserver | Constructor. |
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | GetBumpCoords | Computes the texture coordinates and creates an SoTextureCoordinate2 node. |
![]() | GetDisplacementMapTexture | Calls GetDisplacementMapTexture(""). |
![]() | GetDisplacementMapTexture(String) | Computes the displacement map texture and creates an SoTexture2 node. |
![]() | GetHashCode |
Overrides GetHashCode().
(Inherited from SoNetBase.) |
![]() | GetNormalMapTexture | Calls GetNormalMapTexture((System.String ^)nullptr). |
![]() | GetNormalMapTexture(String) | Computes the normal map texture and creates an SoTexture2 node. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | SetSceneGraphs | Specifies the original scene graph and the simplified scene graph. |
![]() | SetTextureSize | Specifies the texture size to be generated. |
![]() | SetTriangleMinSize | Specifies the mininum size for a triangle stored within the normal map texture. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() | ProgressCallback | Sets a progress callback. |
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.