SoVolumeShapeSetRenderProgress Method |
Set an application defined OIV.Inventor.SoProgressIndicator object which will raise an event before and after the rendering task, before and after each subtask (in this case: Texture creation and Geometry creation) and after each step in the subtasks which represents in most cases individual tiles of data.
Namespace: OIV.VolumeViz.Nodes
OIV.Inventor.SoProgressIndicator.onBeginTask / OIV.Inventor.SoProgressIndicator.onEndTask will be raised only one time per frame : "Rendering".
OIV.Inventor.SoProgressIndicator.onBeginSubTask / OIV.Inventor.SoProgressIndicator.onEndSubTask will be raised 2 times per frame : "Loading Texture" and "Create Geometry".
OIV.Inventor.SoProgressIndicator.onEndStep will be raised several times per subtask.
Track loading progression with OIV.Inventor.SoProgressIndicator.onEndStep event of SubTask "Loading Texture":
NumSteps represents here the number of tiles to load to reach the "stable rendering state".
NumStepsDone represents here the number of tiles currently loaded since the last NumSteps reset.
The two numbers are reset when the viewer is moving the camera.
Limitations :
if OIV.LDM.Nodes.SoLDMResourceParameters.maxMainMemory (CPU Mem) is lower than OIV.LDM.Nodes.SoLDMResourceParameters.maxTexMemory / OIV.LDM.Nodes.SoLDMResourceParameters.max2DTexMemory (GPU mem/GPU mem for slices) the number of steps to reach the "stable rendering state" will be bigger than expected (the progress bar will stop without reaching the end).
if screen resolution culling is activated (see OIV.LDM.SoLDMGlobalResourceParameters.SetScreenResolutionCulling(System.Boolean)) the number of steps to reach the "stable rendering state" might be lower than expected (progress bar reaches the end but loading might continue).
Not yet supported by OIV.VolumeViz.Nodes.SoFenceSlice and SoHeighFieldRender.
If set to NULL no events will be raised. Default is NULL.
Note |
---|
Member available since Open Inventor 2023.2 |