mkkellogg / GaussianSplats3D

Three.js-based implementation of 3D Gaussian splatting
MIT License
1.09k stars 134 forks source link

Are there currently any APIs provided to obtain this signal when artifacts disappear? #255

Closed lucylucy27 closed 3 days ago

lucylucy27 commented 2 weeks ago

Hi, I'm curious, is the sortWorker.done message the latest information that the CPU or the user can capture related to rendering readiness? Is the signal of the disappearance of artifacts determined internally by the GPU rendering pipeline? If yes, are there currently any APIs provided to obtain this signal? Thanks!

mkkellogg commented 2 weeks ago

I'm not sure what you mean by "the disappearance of artifacts". When the sort worker receives the sortDone message, that means the the scene is ready for rendering from whatever position the user was at when the sort started. If you really need to execute a function when the sort completes, you can add a callback to the Viewer.runAfterNextSort array (it's not super elegant because I never meant for that t be used externally).