Click button to generate pictures

Click button to generate pictures,onLuncherRunning

Hi @xiaoyao,

How are you going to generate pictures? Load them from a server?

Or are you talking about getting a screengrab from your game? If it’s this you want, then check this example project:

https://developer.playcanvas.com/en/tutorials/capturing-a-screenshot/

Thank you. What I want is similar to a material resource management library. When the game is running, I can click a picture in the material management library, generate the picture, and then place the picture anywhere in the scene

So, if I understand correctly, let’s say you have a regular HTML image element and you want to render it on a 3D surface.

That’s doable, here is a similar example with video elements rendered on a surface:

https://developer.playcanvas.com/en/tutorials/video-textures/

1 Like

https://playcanvas.com/editor/scene/1470115
Sir this my Test Something went wrong

Can you show me?, Click generate and drag to move