soylomass Posted January 30, 2020 Share Posted January 30, 2020 I'm using Pixi 5 legacy and I notice that in Canvas mode, resolution affects texture sizes, see the examples: I'm making a "center light" using 4 square sprites and a center radial gradient sprite. I make it this way so the sizes can be dynamic. Both the green sprite and the red one have the same height. In this case I'm using a 8x8 white, tinted texture for the red sprite. If I use a base 10 (10x10, 100x100) texture, the effect almost disappears, scaling correctly: Also, if I use 1x1 texture, the sprite becomes invisible with a resolution other than 1 (at least smaller than 1). Is this normal? How can I avoid it? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted January 30, 2020 Share Posted January 30, 2020 Good catch! However, due to extreme busyness of team we would like you to make an example on codepen, jsfiddle or pixi-playground. Link to pixi-legacy: "https://pixijs.download/master/pixi-legacy.js" Also you can try check if its for 5.2.1 or 5.1 is affected too 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.