View Issue Details

IDProjectCategoryView StatusLast Update
0033598Open CASCADEOCCT:Visualizationpublic2024-03-28 17:07
ReporterdrochaloAssigned Tobugmaster  
PrioritynormalSeverityfeature 
Status closedResolutionfixed 
Product Version7.7.1 
Target Version7.8.1 
Summary0033598: Visualization - Initialize window context to enable debugging with renderdoc
DescriptionIn some visualization tasks, it is useful to use external tools such as renderdoc to help with debugging tasks.
Currently on OCCT that is not possible to do without making direct modifications on some key methods on moment of creation.

Modifying OpenGl_Window::Init method to enforce the OpenGl_Caps "contextCompatible" property allows the debugging with renderdoc, but it is a crude way to do things.
There are already options on OCCT to modify the OpenGl_Caps properties using the "vcaps" command, but unfortunately they only become available after initializing the window, and when that happens, using renderdoc becomes impossible.

The proposal is to allow the creation of a new window context with a custom OpenGl_Caps beforehand, so that it allows to modify the "contextCompatible" property and allow renderdoc to perform captures.
Steps To Reproduce1 - Run draw.exe
2 - Open renderdoc and go to File->"Inject into Process" (if not available go to Tools->Settings->General->"Allow process injection")
3 - Select DRAWEXE.exe from processes
4 - Run the following test tcl script:
pload MODELING VISUALIZATION
vclear
vinit
box b1 20 0 0 10 10 10
box b2 -20 0 0 10 10 10
box b3 0 20 0 10 10 10
box b4 0 -20 0 10 10 10
box b5 0 0 20 10 10 10
box b6 0 0 -20 10 10 10

vdisplay -dispmode 1 b1 b2 b3 b4 b5 b6
vsetcolor b1 RED3
vsetcolor b2 GREEN3
vsetcolor b3 BLUE3
vsetcolor b4 ORANGE3
vsetcolor b5 YELLOW3
vsetcolor b6 SALMON3
vfit
vlight -clear
vlight lamp1 -type SPOTLIGHT -pos 0 100 0 -direction 0 -1 0 -spotAngle 90 -castShadows 1
TagsNo tags attached.
Test case number

Activities

gkv311

2024-02-21 11:49

reporter   ~0115141

Last edited: 2024-02-21 18:32

pload VISUALIZATION
vdriver -load GL
vcaps -core
vgldebug 1
vinit
vglinfo

drochalo

2024-02-27 20:55

developer   ~0115184

Dear Bugmaster,

solution presented by @gvk311 works.
Created confluence page explaining the use of this methodology in mor detail (https://jira-opencascade.atlassian.net/wiki/spaces/OCCT/pages/318799888/Debug+visual+issues+on+OCCT+draw+with+RenderDoc).

Please close issue.

vglukhik

2024-03-28 17:07

administrator   ~0115497

closed.

Issue History

Date Modified Username Field Change
2024-02-14 14:26 drochalo New Issue
2024-02-14 14:26 drochalo Assigned To => sshutina
2024-02-14 14:26 drochalo Assigned To sshutina =>
2024-02-21 11:49 gkv311 Note Added: 0115141
2024-02-21 16:41 dpasukhi Summary Initialize window context to enable debugging with renderdoc. => Visualization - Initialize window context to enable debugging with renderdoc.
2024-02-21 16:46 dpasukhi Steps to Reproduce Updated
2024-02-21 18:32 dpasukhi Note Edited: 0115141
2024-02-21 22:55 dpasukhi Summary Visualization - Initialize window context to enable debugging with renderdoc. => Visualization - Initialize window context to enable debugging with renderdoc
2024-02-27 20:55 drochalo Note Added: 0115184
2024-02-27 20:59 drochalo Assigned To => bugmaster
2024-02-27 20:59 drochalo Status new => confirmed
2024-03-28 17:07 vglukhik Status confirmed => closed
2024-03-28 17:07 vglukhik Resolution open => fixed
2024-03-28 17:07 vglukhik Note Added: 0115497