Make texture from a cam

Hello world,

I don’t know if I can make a texture from a cam to apply it on my sent :stuck_out_tongue:

Can you help me ? Is it possible ? If not, do you have an other idea ?

Thanks for answer !

If you’re talking about an ingame camera, just use a render target camera with the proper texture

[editline]6th November 2010[/editline]

Unless of course there’s a better way to do this

**[Render.SetRenderTarget

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Render.SetRenderTarget)**

This function ?

[editline]6th November 2010[/editline]

Please help me :frowning:

I search how get the “cam texture” but I don’t find it.

Can you help me ? please

Try this one: http://wiki.garrysmod.com/?title=G.GetRenderTarget

Use the example if you can and adapt it to your needs.

What is the function for set the texture of an entity, please ?

[editline]7th November 2010[/editline]

How can I save my texture for use it ? Becaus I try to put it on my props with **[Entity.SetMaterial

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Entity.SetMaterial)** but it does’nt work :frowning: