Post

ShadedVolumeStyle

Overview

ShadedVolumeStyle applies Blinn-Phong illumination model to volume rendering.

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

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.

SFBool [in, out] lighting FALSE

Whether rendering calculates and applies shading effects to visual output.

SFBool [in, out] shadows FALSE

Whether rendering calculates and applies shadows to visual output (using global illumination model).

SFString [ ] phaseFunction “Henyey-Greenstein” [“Henyey-Greenstein”|”NONE”|…]

Define scattering model for implementations using global illumination (NONE or Henyey-Greenstein phase function).#10;

Warning

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

SFNode [in, out] material NULL [X3DMaterialNode]

Colour and opacity is determined based on whether a value has been specified for the material field.

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

  • ShadedVolumeStyle can contain a single Texture3D node with containerField='surfaceNormals' and a single Material node.

Warning

  • Requires X3D profile='Full' or else include <component name='VolumeRendering' level='3'/> or level=’4’ to include shadows.

Example

See Also

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