RenderDoc - how?

classic Classic list List threaded Threaded
23 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: RenderDoc - how?

gouessej
Administrator
You're right but you can make some holes in command line anyway, I don't find the way it works consistent, it's the results of some compromises.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: RenderDoc - how?

V. Scott Gordon
I know this is an old thread, but I thought I'd list the steps I used to get RenderDoc to work with a simple Java/JOGL application.  This is for Windows and Java-17....

0. install RenderDoc using the .msi provided on the RenderDoc webpage
1. add C:\Program Files\RenderDoc  to the PATH system environment variable (requires restart)
2. add System.loadLibrary("renderdoc");  to first line of code in the java program (typically the no-arg constructor)
3. compile the java program
4. run RenderDoc
5. in RenderDoc, go to File > launch application
6. under "Executable Path" put the path to java.exe (probably in C:/Program Files/Java/jdk-17/bin) or similar
7. under "Working Directory" put the path to the folder containing the run.bat (or however you launch the application)
8. under "Command-line Arguments" put all of them (i.e., anything that goes after "java", including the name of the compiled .class file, and relative path to it if applicable)
9. click "launch application"
10. should see the program running in a graphic window, with some light annotation at the top
11. click the PrtSc key to capture a frame
12. back in RenderDoc, an icon of the frame should appear.  Double-click it.
13. the inspection tabs should now work, such as "Pipeline State", which allows examining uniforms, etc.
Reply | Threaded
Open this post in threaded view
|

Re: RenderDoc - how?

V. Scott Gordon
This post was updated on .
I should add that, unlike NSight, it isn't necessary to put double-quotes around each of the command line arguments.
I should also add that my main class extends JFrame, to which is added the GLCanvas.
12