The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes

Hi, I have one scene which is composed of several Sprite3D layers placed in the same coordinate.

how do I set the draw order of the Sprite3D? I want to specify which one is in front, and which one behind.

I'd like to avoid setting them on different coordinates, since they are being rotated in code to look at the camera, and I'd have to also move them in front of each other at the same time I rotate them.

Thank you

PS: this is a similar problem, but not the same. My sprites are all places exactly in the same coordinates.

in Engine by (29 points)
edited by

1 Answer

0 votes
Best answer

For future reference on anyone having a similar issue:
Click on the Sprite3D -> Flags -> Alpha Cut -> Select Opaque Pre-Pass
Move your textures slightly back and forth on Z to set the order

by (29 points)
selected by

Thank you kind Sr, that solved my problem, may god bless you with a bunch of kids.

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 Frequently asked questions and 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 [email protected] with your username.