Generating texture on runtime with Screen elements?

I want to render a 2D texture and export it as an image (base64). Is there any built in to do this from existing UI elements (texts, images, etc.) or do I have to render these myself on an offscreen canvas element using standard HTML5 functions?

Hi @mariogarranz,

No there isn’t any built-in method to do that. @Sachet has done something similar, to render a texture from UI Elements and render it on to of a model.

Take a look at this post:

1 Like

Thanks a lot.

This project I did a while back may help where I take screenshots that could be downloaded from several camera angles: https://playcanvas.com/editor/scene/719944

2 Likes

That will also help with encoding the texture. Thanks @yaustar!