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.

godotengine.org | Twitter

0 votes

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
enter image description here

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

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

Godot version 3.4
in Engine by (16 points)

try: Change Camera/near

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?

1 Answer

0 votes

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?

by (29,360 points)
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.