Applying Filler with Scenegraph
- Last UpdatedFeb 19, 2025
- 1 minute read
The Filler functionality draws a filled 2D geometry over a 3D geometry. The filler is drawn on top of everything and does not support clipping.
Supported platforms
-
Supported in both Windows and Portable platforms.
-
Applying Filler on a SGL node will change the override color of the geometry instead.
Setting filler
User can manage filler through the following fields.
|
Mode |
Fields |
|---|---|
|
Stateful mode |
fillerIDs |
|
Stateless mode |
setFillerForID, resetFillerForID, resetFillerForAllID |
Parameters
Both fillerIDs and setFillerForID fields require the following parameters:
-
Key - Set this value to the geometry unique ID. The ID could be, for example, retrieved from a PickSensor.
-
Value - Customization of the filler.
-
Color - SVEC3 (RGB) or SVEC4 (RGBA) color value in (0-1) scale.
Examples
These are examples of valid key and values.
-
RGBA color example: scene02|jersey_001=1 0 0 0.5
-
RGB color with no Z Test skip example: scene02|jersey_001=1 0 0
Resetting filler
When removing an entry from fillerIDs, its filler is automatically reset.
To reset filler for a single scene element, use resetFillerForID and pass it the scene element uniqueID.
To reset a whole file, use resetFillerForAllID and pass it the file node name or a file scene element uniqueID.
