shg8 / 3DGS.cpp

A cross-platform, high performance renderer for Gaussian Splatting using Vulkan Compute. Supports ✅ Windows, Linux, macOS, iOS, and visionOS
GNU Lesser General Public License v2.1
447 stars 26 forks source link

Doesn't work #6

Closed Disa-Kizonda closed 7 months ago

Disa-Kizonda commented 7 months ago

https://github.com/shg8/VulkanSplatting/assets/53359732/09abba2a-4fd8-4c7a-8fca-5e96a8f18191

shg8 commented 7 months ago

How large is your scene? Try reducing this to 10.

Disa-Kizonda commented 7 months ago

Nothing changed I tried on iteration 100 and reduced to 10

shg8 commented 7 months ago

Could you pull the latest commit and do a Release build? It should print some errors now

Disa-Kizonda commented 7 months ago

image

shg8 commented 7 months ago

Hmm there should be more errors. Could you double check that you cleared the CMake folder and set the build type to Release. Or try downloading a prebuilt version here. Very likely it's a VRAM issue.

Disa-Kizonda commented 7 months ago

Same with prebuilt

image

shg8 commented 7 months ago

I'm not sure why but std::cerr doesn't seem to be printing on your system. I'm running the exact same commands and getting the errors printed out. If you're comfortable with debugging, you can trying setting a break point on exit.

oUp2Uo commented 7 months ago

Same with @Disa-Kizonda . On win 10, run the program, came out a window and then shut down.

[0] NVIDIA GeForce GTX 1050
[1] Intel(R) UHD Graphics 620
Selected physical device (automatically): NVIDIA GeForce GTX 1050
shg8 commented 7 months ago

Same with @Disa-Kizonda . On win 10, run the program, came out a window and then shut down.

[0] NVIDIA GeForce GTX 1050
[1] Intel(R) UHD Graphics 620
Selected physical device (automatically): NVIDIA GeForce GTX 1050

The errors should be now printing in stdout. Please try the latest build here.

oUp2Uo commented 7 months ago

Same with @Disa-Kizonda . On win 10, run the program, came out a window and then shut down.

[0] NVIDIA GeForce GTX 1050
[1] Intel(R) UHD Graphics 620
Selected physical device (automatically): NVIDIA GeForce GTX 1050

The errors should be now printing in stdout. Please try the latest build here.

Still the same, no other new prints.

shg8 commented 7 months ago

Same with @Disa-Kizonda . On win 10, run the program, came out a window and then shut down.

[0] NVIDIA GeForce GTX 1050
[1] Intel(R) UHD Graphics 620
Selected physical device (automatically): NVIDIA GeForce GTX 1050

The errors should be now printing in stdout. Please try the latest build here.

Still the same, no other new prints.

Could you try the latest build with the -v option? Thanks

Disa-Kizonda commented 7 months ago

image

shg8 commented 7 months ago

image

This looks like an old build. Could you try the latest one here? Also please paste the full log if you could. Thanks

Disa-Kizonda commented 7 months ago

image

full log from old build full.txt

shg8 commented 7 months ago

image

full log from old build full.txt

Cool. Now at least the errors are printing. Could you try it with -v --validation now?

Disa-Kizonda commented 7 months ago

full.txt

shg8 commented 7 months ago

full.txt

Thanks for the logs. The latest commit should fix it now.

oUp2Uo commented 7 months ago

Hi, the latest commit gave out some print.

[15:33:47] [C] Failed to load shader: shaders/precomp_cov3d.comp.spv
Failed to load shader: shaders/precomp_cov3d.comp.spv

Then I downloaded the shaders folder, but could not find the .spv file there.

shg8 commented 7 months ago

Hi, the latest commit gave out some print.

[15:33:47] [C] Failed to load shader: shaders/precomp_cov3d.comp.spv
Failed to load shader: shaders/precomp_cov3d.comp.spv

Then I downloaded the shaders folder, but could not find the .spv file there.

For now, you'd have to compile them manually or build it from source unfortunately. CMake should handle all of the shader compilation. I'll add bundled shaders to my TODO list.

Disa-Kizonda commented 7 months ago

It's working now thank you

image

oUp2Uo commented 7 months ago

Hi, the latest commit gave out some print.

[15:33:47] [C] Failed to load shader: shaders/precomp_cov3d.comp.spv
Failed to load shader: shaders/precomp_cov3d.comp.spv

Then I downloaded the shaders folder, but could not find the .spv file there.

For now, you'd have to compile them manually or build it from source unfortunately. CMake should handle all of the shader compilation. I'll add bundled shaders to my TODO list.

I have build the program, and could see the result now! (Although run out of memory after several seconds) I will try this on other PC. Btw, does it means that if I want to run on one PC, I should build it one that PC again? Thanks.

Update: I use the compiled program by PC with Nvidia graphics, on a AMD PC (ROG ally), it also works. But my ROG ally also run out of memory after few seconds...

Update2: I tried it on PC with GTX 2080, very smooth!!

shg8 commented 7 months ago

Hi, the latest commit gave out some print.

[15:33:47] [C] Failed to load shader: shaders/precomp_cov3d.comp.spv
Failed to load shader: shaders/precomp_cov3d.comp.spv

Then I downloaded the shaders folder, but could not find the .spv file there.

For now, you'd have to compile them manually or build it from source unfortunately. CMake should handle all of the shader compilation. I'll add bundled shaders to my TODO list.

I have build the program, and could see the result now! (Although run out of memory after several seconds) I will try this on other PC. Btw, does it means that if I want to run on one PC, I should build it one that PC again? Thanks.

Update: I use the compiled program by PC with Nvidia graphics, on a AMD PC (ROG ally), it also works. But my ROG ally also run out of memory after few seconds...

Update2: I tried it on PC with GTX 2080, very smooth!!

You should be able to copy the build folder over

xuyanging commented 1 month ago

image

hi, I meet crash when runing, could any one help to solve it ?