+1 vote

Is there a way to manage what gets on top when rendering when on the same z-axis

I am currently making a 2.5D game using Sprite 3D and what gets rendered on top is very inconsistent that when I pan around, different sprite gets rendered on top

any tip on mitigating clipping on sprite 3D is really really appreciated, thankkss in advanceee

in Engine by (394 points)

1 Answer

0 votes
Best answer

It depend if you're using billboards or not.
Generally speaking, in 3D the sorting is made by the depth position difference from the camera.

Assuming you're not using billboard, you just have to change by a very small number the Z position of the child sprite which should appear on top. If you want the same sprite in both direction, you will need to handle it with "Cull Mode" (Geometry->Material Override->Parameters) it make the sprite vissible or not depending the facing (from the camera).

by (58 points)
selected by

Thank you so much
Solved it by using your advice to Change the z-axis a little bit and combining it with setting alpha cut to Discard

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.