Sprites appearing halved (SOLVED)

Hello everyone,
Thanks to the great help from Defold Community, my game has progressed far ahead.
But still there’s a problem that troubles me. When I load collections from a proxy, all the asteroids appear cutout in half.
ss below-


but this is my original go -

Why does this happen, and moreover only with asteroids?

Thanks in advance

2 Likes

Do you spawn them with rotation (around X or Y)? If they extend beyond Z -1 to 1 they will be clipped as per the default render script.

No. Their rotation are zero.

Do you scale them? I may be wrong but looking carefully at the graphics I think it seems like it is all there, but squeezed?

I don’t think so but will recheck it.

Are all of the sprites on discrete z positions for sure? What happens if the background is moved further away or disabled?

1 Like

Yes the sprites are on discrete z positions (0) and the bg at the back (-1) so changing it produces no change at all.

They are also not scaled.
BTW when I tried running the collection directly, this is what I got:

The asteroid in the fig is exactly as I expected. Why is it that then that when I open it from a proxy it gets halved?

I don’t think this is a rendering issue but some mistake in your content. It doesn’t look like the two asteroids use the same sprite image.

2 Likes

Yeah! you were right. Upon close inspection I found that the weirdness was not because of any wrong values but because random.range returned weird values ehich in turn gave weird properties to the asteroids.
Anyways, Very very thanks for your help @sicher .

3 Likes