Capsaicin icon indicating copy to clipboard operation
Capsaicin copied to clipboard

SceneViewer shows nothing but dark screen

Open wumo opened this issue 8 months ago • 5 comments

image

wumo avatar Nov 01 '23 14:11 wumo

Hi, could you make sure that your working directory is set to be the repository's root directory? (i.e., Capsaicin)

If that doesn't fix your issue, could you share the content of the console output in here?

gboisse avatar Nov 02 '23 10:11 gboisse

I have the same / similar issue. It works fine when launching from Visual Studio, but trying to launch from RenderDoc just gives that black screen.

Using Executable Path: "F:\Capsaicin\build\bin\RelWithDebInfo\scene_viewer.exe" and Working Directory: "F:\Capsaicin\build\bin\RelWithDebInfo" immediately closes the program on launch, changing Working Directory to "F:\Capsaicin" runs the program as in the screenshot with the gui up but a black scene.

Edit: I don't see the console output because it only gives the black scene when launching outside of Visual Studio.

I also tried copying the binaries into "F:\Capsaicin" and can successfully launch from the command line by changing directory to "F:\Capsaicin" and typing "scene_viewer", but setting the Executable Path to "F:\Capsaicin\scene_viewer.exe" and Working Directory to "F:\Capsaicin" in RenderDoc still gives the black scene.

hbk723 avatar Nov 10 '23 18:11 hbk723

Hi @hbk723, unfortunately RenderDoc does not support DXR, so the extension is forcibly disabled when replaying a capture and the shaders fail to compile, hence the black screen.

I'd recommend using Pix if you want to debug a frame: https://devblogs.microsoft.com/pix/download/

gboisse avatar Nov 10 '23 19:11 gboisse

Really appreciate the response, I'll try Pix. Awesome work by the way!

hbk723 avatar Nov 11 '23 04:11 hbk723

Same issue with me. My scene_viewer.exe opens fine but only shows environment map and not the scene objects. also there is no output on the console Screenshot (14)

invertibleMatrix avatar Dec 25 '23 18:12 invertibleMatrix