Jump to content

Rendering using transform offset


colourclash
 Share

Recommended Posts

Hi,
I'm having difficulty rendering a copy of a container into renderTexture when the container has some transformation.
I'm aware of the transform parameter on the renderer.render method, but don't really understand how it's properly used - any enlightenment would be appreciated!
Here's a fiddle which hopefully illustrates my problem http://jsfiddle.net/5mydwyxd/12/
Cheers!

Link to comment
Share on other sites

Still having trouble applying this to my project, it seems nested containers don't play nice :(
http://jsfiddle.net/5mydwyxd/26/

I'm looking for a reliable 'render to texture' in PIXI and not having much joy.

To be specific, I have a nested container with some bitmap text in it. I'd like to render this container to a texture and use that as a sprite mask.
It was working in an older version of PIXI using generateTexture method, but I'd like to use the latest PIXI version.

Any ideas are most appreciated :)

Link to comment
Share on other sites

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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