Jump to content

Texture From scaled Video blank


Recommended Posts

I have a playground to reproduce:

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.


Edited by brianzinn
Link to comment
Share on other sites

  • 2 weeks 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...