Jump to content

RenderTexture api changed since first example?


Recommended Posts

Hi all,


I'm getting started with pixi.js, and while going through the examples I noticed that ex. 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

Link to comment
Share on other sites

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 Page
Link to comment
Share on other sites

  • 2 months later...

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...