Sprite3D cutting off ontop of each other

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

I am working on a 2.5d project where I am using Sprite3D but for some reason when viewing a sprite that is in front of another the sprite gets cut off, for example the left most white border square show up properly but the ones on the right that have sprites3d behind and some how the sprites3d infront get clipped off on the bottom, see picture. in this picture, the camera is looking down at a -80 degree angle

if I load the same project but with the camera looking down at a -90 degree angle the problem resolves itself, see picture

why is this happening, I need the camera to be at an angle. the background gray color sprites are at a hight of 0 and the white border squares are at a height of 0.1

try: Change Camera/near

ramazan | 2022-02-25 08:11

Does making a more drastic change to the delta between the mentioned heights (0 and 0.1) make any difference? Also, are you sure all floor tiles are really at the same height? Could some of them be (unintentionally) different?

jgodfrey | 2022-02-25 21:09

:bust_in_silhouette: Reply From: Zylann

I suspect this is happening because the two elements have the same height, so they are not properly Z-sorted when rendering. Some floor tiles get drawn after the sprite so they cover it.

I would suggest you slightly increase the height of your cursor sprites so they will be above the floor and it won’t clip with them?