3DGS.cpp icon indicating copy to clipboard operation
3DGS.cpp copied to clipboard

Skip rendering loop when there's no view changes

Open linhanwang opened this issue 1 year ago • 4 comments

I built the viewer and tried to use it to load output of original 3DGS and got this error message:

(base) linhanwang@MacBook-Air:~/softwares/3DGS.cpp ⚡ ./build/apps/viewer/3dgs_viewer -v ~/Documents/sep_road/
^[[O[13:06:26] [D] Initializing Vulkan
[13:06:26] [D] Vulkan instance created
[13:06:26] [I] Available physical devices:
[13:06:26] [I] [0] Apple M3
[13:06:26] [I] Selected physical device (automatically): Apple M3
[13:06:26] [D] Logical device created
[13:06:26] [D] Surface format: VK_FORMAT_B8G8R8A8_UNORM
[13:06:26] [D] Present mode: VK_PRESENT_MODE_FIFO_KHR
[13:06:26] [D] Swapchain extent range: 1x1 - 16384x16384
[13:06:26] [D] Swapchain extent: 2560x1440. Preferred extent: 2560x1440
[13:06:26] [D] Swapchain created
[13:06:26] [D] Creating GUI
[13:06:26] [D] Loading scene to GPU
[13:06:26] [C] Could not find end of header
Could not find end of header

linhanwang avatar Apr 04 '24 17:04 linhanwang

This error is located in the LoadPlyHeader. The original 3DGS generated the ply file. Does incompatibility cause it?

linhanwang avatar Apr 04 '24 17:04 linhanwang

Could you try supplying the full path to the .ply file? Reading the dataset folder is planned but not supported yet.

shg8 avatar Apr 04 '24 19:04 shg8

Could you try supplying the full path to the .ply file? Reading the dataset folder is planned but not supported yet.

Thanks. It workes now. However, I noticed that the % gpu is always 95+ though I didn't change view angle. This behavior makes my mac heat up quickly. Do you have plan to optimize it?

linhanwang avatar Apr 04 '24 22:04 linhanwang

Will get to this eventually - should be an easy fix. Feel free to submit a PR in the meantime.

Could you try supplying the full path to the .ply file? Reading the dataset folder is planned but not supported yet.

Thanks. It workes now. However, I noticed that the % gpu is always 95+ though I didn't change view angle. This behavior makes my mac heat up quickly. Do you have plan to optimize it?

shg8 avatar Apr 05 '24 00:04 shg8