API / geotoolkit3d / scene / volumetric / RenderingVolume / RenderingVolume
volumetric.RenderingVolume.RenderingVolume
Namespaces
Type Aliases
Type Aliases
Ƭ Options: Object
The options
| Name | Type | Description |
|---|---|---|
alphacorrection? | number | The corrective factor for the alpha transparency. This alpha factor affect the opacity of each raytraced samples, higher alpha means the volume becomes more opaque. It might be necessary to adjust the alpha based on the number of steps, a higher step count should use a proportionally lower alpha value.
|
data? | { max?: number ; min?: number ; points?: Vector4[] ; rawdata?: Float32Array ; size?: Vector3 ; values?: number[] ; x?: number[] ; y?: number[] ; z?: number[] } | The Volume data options. The Volume Renderer accepts two types of data, 3D scalar fields and points sets.
|
data.max? | number | The maximum value of the data. |
data.min? | number | The minimum value of the data. |
data.points? | Vector4[] | Define the voume data using points. A Point is represented by a Vector4, where x,y,z are the respective coordinates, and w is the point value. Alternatively, poitns can be specified using multiple arrays with the x, y, z and values options. |
data.rawdata? | Float32Array | A Float32Array that contain the raw data with the order Z,Y,X (see description for more information) |
data.size? | Vector3 | The size of the data in 3D. |
data.values? | number[] | Define the volume data points's values. |
data.x? | number[] | Define the volume data points's x coordinates. |
data.y? | number[] | Define the volume data points's y coordinates. |
data.z? | number[] | Define the volume data points's z coordinates. |
end? | Vector3 | The end location of the grid in world coordinates. |
flipz? | boolean | Flip the data with the Z axis |
interpolator? | AbstractInterpolator | Interpolator function, used to convert the PointSet data into a 3D scalar field data for rendering. Users can define their own interpolation function if desired, but a default implementation is included. |
start? | Vector3 | The start location of the grid in world coordinates. |
steps? | number | The number of steps for each ray in the volume raytracing. Each step will perform an additional sample for each pixel of the final raytraced render. Bear in mind that a large step count may be detrimental to performances, and a step count larger than the data resolution will have diminishing returns. |
switchlights? | boolean | toggle the Lights in the volumetric render |
Ƭ OptionsBase: Options & Options
The options
Ƭ OptionsBaseOut: Required<Options> & OptionsOut