Click or drag to resize
SoVolumeRenderSetRenderProgress Method

Set an application defined OIV.Inventor.SoProgressIndicator object which will raise an event before and after the volume 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
Assembly: OIV.VolumeViz (in OIV.VolumeViz.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax
public void SetRenderProgress(
	SoProgressIndicator ps
)

Parameters

ps
Type: OIV.InventorSoProgressIndicator
Remarks

  • 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 reseted when the viewer is moving the camera.

Limitations :

  • if MaxMainMemory (CPU Mem) is lower than MaxTexMemory (GPU mem) 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).

If set to NULL no events will be raised. Default is NULL.

Note Note

Member available since Open Inventor 9.9

See Also