Post

CartoonVolumeStyle

Overview

CartoonVolumeStyle generates cartoon-style non-photorealistic rendering of associated volumetric data.

The CartoonVolumeStyle node belongs to the VolumeRendering component and requires at least level 3, its default container field is renderStyle. It is available from X3D version 3.3 or higher.

Hierarchy

1
2
3
4
+ X3DNode
  + X3DVolumeRenderStyleNode
    + X3DComposableVolumeRenderStyleNode
      + CartoonVolumeStyle

Fields

SFNode [in, out] metadata NULL [X3DMetadataObject]

Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.

Hint

SFBool [in, out] enabled TRUE

Enables/disables node operation.

SFInt32 [in, out] colorSteps 4 [1,64]

Number of distinct colors taken from interpolated colors and used to render the object.

Hints

  • colorSteps=1 means no color interpolation takes place, only use orthogonalColor.
  • ParallelColor and orthogonalColor interpolation is in HSV color space for RGB components, linearly for alpha component.

SFColorRGBA [in, out] orthogonalColor 1 1 1 1 [0,1]

orthogonalColor is used for surface normals that are orthogonal (perpendicular) to viewer’s current location.

Hints

SFColorRGBA [in, out] parallelColor 0 0 0 1 [0,1]

parallelColor is used for surface normals that are orthogonal to viewer’s current location.

Hints

SFNode [in, out] surfaceNormals NULL [X3DTexture3DNode]

The surfaceNormals field contains a 3D texture with at least three component values. Each voxel in the texture represents the surface normal direction for the corresponding voxel in the base data source.

Advice

Hint

  • Contains single Texture3D node with containerField='surfaceNormals'

Warning

  • Requires X3D profile='Full' or else include <component name='VolumeRendering' level='3'/>

See Also

This post is licensed under CC BY 4.0 by the author.