Sign in to follow this  
brianzinn

Texture From scaled Video blank

Recommended Posts

I have a playground to reproduce:
https://www.pixiplayground.com/#/edit/c0vYlkl14DEuLv1969cOm
 

What I want to do is take a photo by generating a texture from a sprite, but with these lines not commented out (it works without those lines, but not like a "mirror"):

// uncomment these on line 74 and it works
videoSprite.anchor.x = 1;
videoSprite.scale.x = -1

I just get a blank screen texture.  I have tried to revert scale/anchor before calling `app.renderer.generateTexture(videoSprite)` without success (maybe I can manually trigger a frame render?).

If you are trying out the playground it will ask for video permissions - the video is just put into a texture and nothing further.

Thanks.

Edited by brianzinn

Share this post


Link to post
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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.