View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0033598 | Open CASCADE | OCCT:Visualization | public | 2024-02-14 14:26 | 2024-03-28 17:07 |
Reporter | Assigned To | bugmaster | |||
Priority | normal | Severity | feature | ||
Status | closed | Resolution | fixed | ||
Product Version | 7.7.1 | ||||
Target Version | 7.8.1 | ||||
Summary | 0033598: Visualization - Initialize window context to enable debugging with renderdoc | ||||
Description | In 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 Reproduce | 1 - 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 | ||||
Tags | No tags attached. | ||||
Test case number | |||||
|
pload VISUALIZATION vdriver -load GL vcaps -core vgldebug 1 vinit vglinfo |
|
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. |
|
closed. |
Date Modified | Username | Field | Change |
---|---|---|---|
2024-02-14 14:26 |
|
New Issue | |
2024-02-14 14:26 |
|
Assigned To | => sshutina |
2024-02-14 14:26 |
|
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 |
|
Note Added: 0115184 | |
2024-02-27 20:59 |
|
Assigned To | => bugmaster |
2024-02-27 20:59 |
|
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 |