-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi VAO loading #13
Comments
This is likely due to the rendering order of the VAOs. Gaussian splats require depth sorting in order to render correctly. If the splats from two different VAOs overlap/interpenetrate, they will likely exhibit errors like the ones shown in the images you provided (I assume you set the background color to red) You are already making changes to the source code, so I would suggest making another modification. Specifically, combining the data from both ply files into one. Here's how you "might" achieve this.
After this change you can load two ply files into a single GaussianCloud instance.
then pass that gaussianCloud to splatRenderer->Init(). This should "in theory" render both ply files together as a single VAO, which will eliminate the sorting errors. Hope this helps. |
Thank you very much for your answer. Unfortunately, two weeks ago, I had already completed the plan you just proposed. Enter the folder path containing multiple Gaussian folders. Then, multiple ply layers are formed into one ply layer, and VAO is called for display. The rendering was successful without any issues. |
Apologies for the delay. Perfect rendering of interpenetrating .ply files without full sorting isn't possible. But if the splats aren't fully interpenetrating, but are partitioned into a grid or some other pattern. You could sort by each centroid and render in back to front order. Also, if you're willing to live with some incorrect results along the edges of two grid cells, you can just turn off the depth test, this would get rid of those "red gaps". There would likely be some flickering as the sort order changed.. but it would be "mostly" correct. Here's were you can disable the depth test.
|
Before your reply, I also tried to turn off deep testing (or glEnable (GL-DEPTH-TEST) myself;
|
Why does the super-splat project on Github add multiple Gaussian files that render exactly right. This one is based on WebGL. Is it also just rendering a VAO? |
I tried loading multiple Gaussian ploys and instantiating multiple VAOs. After loading, it was found that there were some issues with the rendering of the Gaussian sphere at the edges. Some angles are normal, while others are very poor
The text was updated successfully, but these errors were encountered: