[SOLVED] Capturing whatever camera is rendering to a texture

Is there anything call rendertexture (like in unity3d)?
i.e whatever the camera is rendering to be stored into a texture which can be used to apply any surface and show on it.

If I understand you correctly, you want to render to texture and apply that texture somewhere. If so, here’s an example of exactly this: https://playcanvas.com/project/335444/overview/rendertotexture

Haha, I made that project a long, long time ago! Be careful, @BSGirish8 - the scripts are in the old format. Essentially, the project needs to be updated to the latest version of the Editor (although it does still work through backwards compatibility).

This project is running fine is desktop but in mobile browsers the rendered texture is not running. What is the optimization needed?

Really? Works fine on my iPhone 6:

What device/browser/OS version are you using?

Its Letv 1s. Chrome latest browser. Also I tried in Firefox browser. It did not show the rendered texture on the model.

Please try these links:

https://playcanv.as/b/n597MG2v/

and…

https://playcanv.as/b/oBOsHF1W/

Do either work on your Letv 1s?

1 Like

Thanks Will. They are running now.

1 Like

OK great. All I did was republish the app against the latest build of the engine. Presumably, because it is such an old project, the previous published build was using a version of the engine that was buggy in some way.

1 Like