aWeirdo Posted June 16, 2017 Share Posted June 16, 2017 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) 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) Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 16, 2017 Share Posted June 16, 2017 Woot this is weird..Can you repro in the PG? Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted June 16, 2017 Author Share Posted June 16, 2017 @Deltakosh http://playground.babylonjs.com/#FY35AY sorry for the red paint didn't have any ready-to-use non-licensed textures. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 19, 2017 Share Posted June 19, 2017 Ok this is because by default there is a tiny epsilon to help with bad textures Here is your fix: http://playground.babylonjs.com/#FY35AY#1 (See line #15) aWeirdo 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.