kayvon Posted May 29, 2014 Share Posted May 29, 2014 Hi all, I'm getting started with pixi.js, and while going through the examples I noticed that ex. 11: http://www.goodboydigital.com/pixijs/examples/11/ doesn't work with newer versions of pixi.js. The version in that example is from June. Checking through the github history and trying out different versions, I've found that it still works, though a bit differently, in builds of pixi up to 2013/09, but not since. With the latest versions I just see spinning sprites. There's no significant update to the documentation that I can see. Any ideas on resources for learning how to do that general sort of effect with more recent versions? Thanks for any info / tips Quote Link to comment Share on other sites More sharing options...
Mauricio Posted June 5, 2014 Share Posted June 5, 2014 Hi Kay, I had the same problem. try to pass the a PIXI.Point on the second parameter. for example: var myTexture = new PIXI.RenderTexture(100, 100);var sprite = new PIXI.Sprite(myTexture);var pt = new PIXI.Point(0, 0); .... myTexture.render(stage, pt, true); By the way you cant find the RenderTexture when you get to the Documentation Pagehttp://www.goodboydigital.com/pixijs/docs/ but you can find it here http://www.goodboydigital.com/pixijs/docs/classes/RenderTexture.html Cheers Quote Link to comment Share on other sites More sharing options...
kayvon Posted June 8, 2014 Author Share Posted June 8, 2014 Awesome, thanks for the tip. I couldn't figure out what was different. Quote Link to comment Share on other sites More sharing options...
Mauricio Posted June 10, 2014 Share Posted June 10, 2014 No worries =) Quote Link to comment Share on other sites More sharing options...
hubert Posted August 16, 2014 Share Posted August 16, 2014 any of you guys could help me with set frame on the renderTexture? I have upgraded from 1.5.0 to 1.6.0 and i have an huge issue with render texture and set frame method? Please check this thread here: http://www.html5gamedevs.com/topic/8613-upgrading-to-pixi-160/ http://www.sevenative.com Quote Link to comment Share on other sites More sharing options...
hubert Posted August 16, 2014 Share Posted August 16, 2014 forget it!!! you can crop the rendered texture var finalEntityTexture0 = new PIXI.RenderTexture(dim * 30, dim * 30);finalEntityTexture0.crop = new PIXI.Rectangle(0, 0, dim * 10, dim * 10);finalEntityTexture0.render(entityContainer);finalEntityTexture0.setFrame({x: 0, y: 0, width: dim * 10, height: dim * 10}); http://www.sevenative.com 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.