Post

BlendedVolumeStyle

BlendedVolumeStyle

Overview

BlendedVolumeStyle combines rendering of two voxel data sets into one by blending voxel values.

The BlendedVolumeStyle 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
      + BlendedVolumeStyle

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.

SFFloat [in, out] weightConstant1 0.5 [0,1]

weightConstant1 is used when weightFunction1=CONSTANT

SFFloat [in, out] weightConstant2 0.5 [0,1]

weightConstant2 is used when weightFunction2=CONSTANT

SFString [in, out] weightFunction1 “CONSTANT” [“CONSTANT”, “ALPHA0”, “ALPHA1”, “TABLE”, “ONE_MINUS_ALPHA0”, “ONE_MINUS_ALPHA1”]

Specifies 2D textures used to determine weight values when weight function is set to TABLE.

Hints

Warning

  • Do not wrap extra quotation marks around these SFString enumeration values, since “quotation” “marks” are only used for MFString values.

SFString [in, out] weightFunction2 “CONSTANT” [“CONSTANT”, “ALPHA0”, “ALPHA1”, “TABLE”, “ONE_MINUS_ALPHA0”, “ONE_MINUS_ALPHA1”]

Specifies 2D textures used to determine weight values when weight function is set to TABLE.

Hints

Warning

  • Do not wrap extra quotation marks around these SFString enumeration values, since “quotation” “marks” are only used for MFString values.

SFNode [in, out] weightTransferFunction1 NULL [X3DTexture2DNode]

The weightTransferFunction1 and weightTransferFunction2 fields specify two-dimensional textures that are used to determine the weight values when the weight function is set to “TABLE”. The output weight value depends on the number of components in the textures as specified in Table 41.4.

Hint

  • Https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/volume.html#t-transferFunctionToWeightMapping

SFNode [in, out] weightTransferFunction2 NULL [X3DTexture2DNode]

The weightTransferFunction1 and weightTransferFunction2 fields specify two-dimensional textures that are used to determine the weight values when the weight function is set to “TABLE”. The output weight value depends on the number of components in the textures as specified in Table 41.4.

Hint

  • Https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/volume.html#t-transferFunctionToWeightMapping

SFNode [in, out] renderStyle NULL [X3DComposableVolumeRenderStyleNode]

Single contained X3DComposableVolumeRenderStyleNode node that defines specific rendering technique for data in the voxels field, and the result is blended with parent VolumeData or SegmentedVoliumeData node.

SFNode [in, out] voxels NULL [X3DTexture3DNode]

Single contained X3DTexture3DNode (ComposedTexture3D, ImageTexture3D, PixelTexture3D) that provides second set of raw voxel information utilized by corresponding rendering styles. Any number of color components (1-4) may be defined.

Advice

Hint

  • BlendedVolumeStyle can contain just one each of following: VolumeStyle node with containerField='renderStyle', Texture3D node with containerField='voxels', Texture2D node with containerField='weightTransferFunction1' and Texture2D node with containerField='weightTransferFunction2'.

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.