aframe-gaussian-splatting
aframe-gaussian-splatting copied to clipboard
depthWrite as part of schema
When working on https://github.com/quadjr/aframe-gaussian-splatting/issues/20, I noticed that switching depthWrite from false to true would improve drastically Occlusion issues at the cost of some transparency spillage. So it could be interesting to have it as an option when those spills are acceptable.
Example with depthWrite: false
Example with depthWrite: true
Please understand that it is not a proper #20 fix, just a workaround while a proper implementation is in progress
I extended the initial commit with a new one that fix the limitations encountered in self occlusion.
previously :
now :
With this fix, and some proper scene management and splatting cleaning (removing ghost blobs), you can get an almost perfect occlusion !
to be pushed as part of #20
Thanks @arthurmougin for your work on this! @quadjr I can confirm this works as expected and we have done our best to ensure that the default settings are not affected, so that a user has to explicitly choose to enable these sorting options.
@quadjr have you had a chance to review here? Excited to work with this. Thanks!