Z-index sorting of sprites

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By vteven

Hello,
just making my way through skeletal rigging from this tutorial. Seems to be working okay but having some trouble with the ordering of sprites in the view. enter image description here

Based on that image I was hoping that the l_shoulder would appear behind the torso due to it being higher in the view, however that doesn’t seem to be the case. Even changing the L_Shoulder to appear below torso does nothing, am I missing something obvious or is there something else I need to do to make it sort the objects correctly?

Cheers,
Steven

Godot has 2D viewport also.
And your project looks like 2D.
is there any reason to make 2d in 3d viewport?

volzhs | 2018-04-29 12:56

Yea I was hoping to do a 2.5 style game, 3d terrain and 2d objects with bill boarding. Similar to Don’t starve which was why I was testing one of their sprites. Is that the reason its not sorting correctly? If so then how would get it to sort correctly in 3d, as Godot seems to have support for Sprite3d, AnimatedSprite3d etc etc. Cheers

vteven | 2018-04-30 09:08

Same here, I was working on a 2.5d project and for some reason the bottom part of my square selector sprite are being cut off. the left most square image is how they should look but for some reason the bottom part is being cut off. see image below.

37712 | 2022-02-25 03:34

:bust_in_silhouette: Reply From: eddiejoe

I’m also making a game using sprites on a 3D world. Have you found any solution or workaround??

:bust_in_silhouette: Reply From: 37712

This other guy solved it here
https://forum.godotengine.org/44973/how-to-stack-3d-sprite-so-it-respects-the-order?show=44973

go pay your respects