Post

OpacityMapVolumeStyle

Overview

OpacityMapVolumeStyle specifies that volumetric data is rendered using opacity mapped to a transfer function texture.

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

Hierarchy

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

Fields

SFBool [in, out] enabled TRUE

Enables/disables node operation.

SFNode [in, out] metadata NULL [X3DMetadataObject]

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

Hint

SFNode [in, out] transferFunction NULL [X3DTexture2DNode,X3DTexture3DNode]

The transferFunction field holds a single texture representation in either two or three dimensions that maps the voxel data values to a specific colour output. If no value is supplied for this field, the default implementation shall generate a 256x1 alpha-only image that blends from completely transparent at pixel 0 to fully opaque at pixel 255.The texture may be any number of dimensions and any number of components. The voxel values are used as a lookup coordinates into the transfer function texture, where the texel value represents the output colour.

Advice

Hint

  • Contains a single ImageTexture2D or ImageTexture3D node with containerField='transferFunction'. Voxel values are used as lookup coordinates into the transfer function texture, where the texel value represents the output color.

Warning

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

See Also

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