As you’re no doubt aware combining gplats with transparent objects are not compatible with each other, either being fulling infront or fully behind.
I wondering if there is any better way to do it or could there be a possibilty of adding existing objects into the GSplatSorter so it can take their depth into account when sorting?
Not quite this. global sorting splats. But not other geometry.
Even though I’m not sure what is needed here … are you hoping to render transparent geometry in the middle of a person?
Haha yes, exactly Its always been my dream to render a sprite through the middle of Will .
In all seriousness though the use case is gsplats that represent rooms, therefore the scene is in fact inside the gsplat itself. We have a need to display a character with alpha effects from within this scene but it ends up either fully in front or beind the splat.
If there was some means of either global sorting (a unified sorting approach) or a way to include geometry in the gsplat sort that would open up some significant use cases for us.
The only option I see is to render your billboard geometry not as transparent, but with alpha testing, and depth writing. That should work ok (but won’t be transparent).
If it’s only the marker, could you make a model of that shape instead so it’s a mesh instead of a single quad? That will mean you can have it on the opaque layer
I second that. If the markers size vary based on its contents, you can also use mesh API to change its size (to keep the relative scale the same). If markers are same, just one model would be enough then.