Jump to content

Sprite edges getting cropped


aWeirdo
 Share

Recommended Posts

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

 

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...