chib Posted January 16, 2014 Share Posted January 16, 2014 First of all, hey guys! I've been floating about the forum for a while now, and look forward to posting a lot more in the near future. I've been having quite a bit of fun playing around with Pixi these last few months, I'm in the midst of developing a game powered by it. Anyway, I've hit a problem that I thought somebody may be able to help out with;I was creating mountains by using a TilingSprite masked by a Graphics object, this was working beautifully up until I tried to use another mask somewhere else. The problem was that the two completely unrelated masks were interfering with one another. After doing a little research I found that this was a known bug with the WebGL renderer and was fixed in the latest release, however, after downloading and testing the latest release it appears that TilingSprites can no longer be masked?I have set up a simple test to illustrate the problem: http://danielboa.com/maskTest/ Open up the developer console and you will see the error "Uncaught TypeError: Cannot read property 'primitiveShader' of undefined". I tried the same thing but with the Canvas renderer and no error is displayed, but the mask also doesn't seem to have any effect. Hopefully someone more clued up on the WebGL renderer can shed some light on this problem.Many thanks,Daniel. Quote Link to comment Share on other sites More sharing options...
Mat Groves Posted January 16, 2014 Share Posted January 16, 2014 Thanks for the heads up Daniel! Will definitely look into that one for you and keep ya posted. Quote Link to comment Share on other sites More sharing options...
Mat Groves Posted January 16, 2014 Share Posted January 16, 2014 Yoo! Just uploaded a fix for this masking issue - The example should work like a boss if you use the latest dev branch (https://github.com/GoodBoyDigital/pixi.js/tree/dev)Let me know how it goes for you and thanks again for sharing the problem! Cheers! chib 1 Quote Link to comment Share on other sites More sharing options...
chib Posted January 17, 2014 Author Share Posted January 17, 2014 Spot on! That's it working now. Thanks for the lightning fast reply! Quote Link to comment Share on other sites More sharing options...
Mat Groves Posted January 17, 2014 Share Posted January 17, 2014 No worries! Happy to help 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.