Zeto Posted January 18, 2020 Share Posted January 18, 2020 Hi! I am currently trying out pixi-tilemap. All works well except that CompositeRectTileLayer is making everything blurry when I had set the SCALE.MODE to NEAREST (my sprites are not blurry, only the tile layer). I then foolishly tried RectTileLayer and it isn't antialiasing (great!), but I cannot get addFrame to actually insert the right texture. My first question is, what is the difference between CompositeRectTileLayer and RectTileLayer? And what about the rest of the classes like GraphicLayer? There is no documentation anywhere on the web on in the src folder. My second question is, how to disable antialiasing in CompositeRectTileLayer? (or alternatively, why RectTileLayer only accepts 1 texture) I am using the pixi.js v4 version of pixi-tilemap. I have included the way I am currently adding textures to both layer: var tiles = new PIXI.tilemap.CompositeRectTileLayer(0, [texture1, texture2], true); this.tiles.addFrame(0, x1, y1); this.tiles.addFrame(1, x2, y2); //this works for CompositeRectTileLayer, but doesn't work for RectTileLayer... //RectTileLayer displays texture1 on both x1,y1 x2,y2 I have attached the CompositeRectTileLayer vs RectTileLayer effect. ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
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.