bitknight Posted February 6, 2014 Share Posted February 6, 2014 Hi, I've been testing out some tiled map loading and rendering. I add all the sprites across my map layers to a DisplayObjectContainer and it seems to display correctly. The issue I have is if I set the scale of x, y on the container to 2 I begin to get some artifacts. I can scale the renderer.view manually through styles to twice the size and that seems to work just fine (as expected), but I was curious if anyone else encountered this with a DisplayObjectContainer. Using pixi.js - v1.4.3 Quote Link to comment Share on other sites More sharing options...
xerver Posted February 6, 2014 Share Posted February 6, 2014 If you are using linear scaling (the default) you will get artifacts like this in webgl because everything is a float and there will be rounding errors. The issue goes away if you use nearest scaling. Quote Link to comment Share on other sites More sharing options...
bitknight Posted February 6, 2014 Author Share Posted February 6, 2014 Thanks xerver, looking good now 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.