Click or drag to resize
SoAppearancePreserverGetDisplacementMapTexture Method (String)

Computes the displacement map texture and creates an SoTexture2 node.

Namespace: OIV.FXViz.APS
Assembly: OIV.FxViz (in OIV.FxViz.dll) Version: 9.9.13.0 (9.9.13.0)
Syntax
public SoTexture2 GetDisplacementMapTexture(
	string filename
)

Parameters

filename
Type: SystemString

Return Value

Type: SoTexture2
Remarks

If no file name is specified, the texture is stored in the SoTexture2 image field. Otherwise the file name is stored in the SoTexture2 filename field and the texture is written to a PNG format file. NULL is returned if the texture could not be computed, generally due to there being more triangles than could be stored in the normal map.

See Also