Jump to content

splitting a video into separate textures


bzor
 Share

Recommended Posts

hi! I was wondering if anyone had any advice here.. I have a large master video that contains a grid of smaller videos. I need to split this up into pieces and move them around individually.

My thought was to set up an off screen canvas element for each sub-video, then each frame drawImage the pixels into each canvas element. Then set up textures that read from the canvas elements, and add those to sprites.

I'm wondering if this is a bad idea, as I need to push the updated nPot canvas/textures to the GPU every frame.. Any other ideas for how to set this up?

 

thanks!

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