Quantcast
Channel: Bugs Latest Topics
Viewing all articles
Browse latest Browse all 760

Sprite edges getting cropped

$
0
0

Hi,

I notised pixels at the edges of my sprites are getting cropped,

adding a 5 px margin around the textured areas have fixed it,

but it still seems odd so i wanted to report it incase there's a bug somewhere.

 

var grass_SPM = new BABYLON.SpriteManager("grass", "./grass.png", 2500, 400, scene);

 

zoomed screenshot, original is 400*400 (transparent area above the texture)

grass_sprite.png.832eb9b502925f05c37afe18983f3230.png

 

as can be seen on the following screenshot, the top is fine, but both left, right and bottom are being chopped. (the visible seams are just a missing adjustment from changing sprite size)

chopped_sprite.thumb.png.8dd5fe34d4d67e447e44cd3d39461dbb.png

 

 


Viewing all articles
Browse latest Browse all 760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>