SoVolumeShapeInterpolations Enumeration |
Interpolation mode.
Namespace: OIV.VolumeViz.Nodes
Member name | Value | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
NEAREST | 0 | OpenGL "nearest neighbor" interpolation. | |||||||||
LINEAR | 1 | OpenGL linear interpolation (Default). This implies bi-linear interpolation for 2D textures (e.g. OIV.VolumeViz.Nodes.SoOrthoSlice, OIV.VolumeViz.Nodes.SoObliqueSlice, OIV.VolumeViz.Nodes.SoVolumeSkin, OIV.VolumeViz.Nodes.SoFenceSlice) and tri-linear interpolation for 3D textures (OIV.VolumeViz.Nodes.SoVolumeRender, SoVolumeGeometry). | |||||||||
TRILINEAR | 2 | Tri-linear interpolation for OIV.VolumeViz.Nodes.SoObliqueSlice. Tri-linear interpolation is used when extracting the 2D texture that will be applied to the slice, providing better image quality. Same as LINEAR for other nodes.
| |||||||||
MULTISAMPLE_12 | 3 | Multi-sample interpolation for slice shapes. Interpolates data values using 12 samples around the voxel. This provides much higher image quality and specifically avoids rendering artifacts due to bi-linear interpolation. Only supported for 2D texture shapes (e.g. OIV.VolumeViz.Nodes.SoOrthoSlice, OIV.VolumeViz.Nodes.SoObliqueSlice, OIV.VolumeViz.Nodes.SoVolumeSkin, OIV.VolumeViz.Nodes.SoFenceSlice). Same as LINEAR for other nodes.
| |||||||||
CUBIC | 4 | Cubic interpolation. This implies bi-cubic interpolation for 2D textures (e.g. OIV.VolumeViz.Nodes.SoOrthoSlice, OIV.VolumeViz.Nodes.SoObliqueSlice, OIV.VolumeViz.Nodes.SoVolumeSkin, OIV.VolumeViz.Nodes.SoFenceSlice) and tri-cubic interpolation for 3D textures (OIV.VolumeViz.Nodes.SoVolumeRender, SoVolumeGeometry). It gives smoother results, especially for volume rendering.
SoInteractiveComplexity icplx = new SoInteractiveComplexity(); icplx.fieldSettings[0] = "SoVolumeRender interpolation LINEAR CUBIC"; root.AddChild(icplx);
|
Used with OIV.VolumeViz.Nodes.SoVolumeShape.interpolation field. Also used with interpolation field in volume geometry nodes, e.g. OIV.VolumeViz.Nodes.SoVolumeIndexedFaceSet.interpolation