Render external framework's canvas as texture

I’m trying to render two external canvases as live textures in BJS.

These are dynamic canvases that respond to clicks and some timed events. I can’t initialize them by passing in a canvas context object.

I’ve tried using an HtmlElementTexture, but it is always black when it gets applied.

What am I doing wrong here?

This is a playground showing a completely black rendering.

First you need to refresh the texture each time the canvas change with update and also you need to be carefull in the playground creation of pCanvas:

3 Likes

You’re awesome, sebavan! Thanks for the help!

1 Like