Problem with sprites and useLogarithmicDepth

Hello everyone,

I am working on a small application to display satellites and I would like to add some sprites to improve the representation without making the program too much complex.

The problem is that these sprites are hidden by objects with materials with the useLogarithmicDepth option activated, even when the sprites are in front of those objects.

In the image I give as an example, the sprite is in the same position as the small yellow sphere, and is partially hidden when placed in front of the Earth’s sphere, whose material has the useLogarithmicDepth option activated.

I’ve tried using zIndex to force the sprite to be rendered in the foreground, but that doesn’t work either.

I would appreciate any help you can give me to resolve this problem.

Will you try to create a small repro of this issue in the Playground and share a link?

@sebavan, @Evgeni_Popov, anything come to mind?

Hi ryantrem, thanks for replay,

Try this:

Uncoment line number 25 and run again.

It’s an ugly example, but it’s all i can do from the phone.

This PR will add suport for logarithmic depth to sprites:


Wow!, you are awesome, thank you very much!

Feel free to mark it as resolved whenever you want.