SoVolumeRenderSamplingAlignments Enumeration |
Sampling alignment.
Namespace: OIV.VolumeViz.Nodes
Member name | Value | Description | |||
---|---|---|---|---|---|
VIEW_ALIGNED | 0 | Samples are located on planes perpendicular to the view direction. | |||
DATA_ALIGNED | 1 | Samples are located on planes perpendicular to one axis of the volume. | |||
BOUNDARY_ALIGNED | 2 | Samples are located on shells aligned with the volume's internal "boundary". Each ray begins sampling at the first intersected voxel that has an alpha value > OIV.VolumeViz.Nodes.SoVolumeRender.opacityThreshold. | |||
SMOOTH_BOUNDARY_ALIGNED | 3 | Similar to BOUNDARY_ALIGNED but uses a cubic interpolation to compute the boundary, giving smoother results when using OIV.VolumeViz.Nodes.SoVolumeRenderingQuality.deferredLighting. When using linear interpolation and deferred lighting, BOUNDARY_ALIGNED can generate "flat shading" due to linear interpolation between voxels. SMOOTH_BOUNDARY_ALIGNED will generate a smooth shading using a cubic interpolation to find the volume's boundary and use a linear interpolation for the rest of volume. This is a good compromise between result and performances of a full tricubic interpolation. Please refer to OIV.VolumeViz.Nodes.SoVolumeRenderingQuality.deferredLighting and OIV.VolumeViz.Nodes.SoVolumeShape.interpolation for details. LIMITATIONS SMOOTH_BOUNDARY_ALIGNED is not supported in the following case:
|
Used with the OIV.VolumeViz.Nodes.SoVolumeRender.samplingAlignment field.
Note |
---|
Enum available since Open Inventor 9.1 |