How to imitate the RT camera and RTtexure with LUA?
5 replies, posted
Hi,
I've noticed the wiki got emptied and the older wiki didn't contain a clear example.
Can anyone show a simple example on how to draw a view from a "camera" onto a texture?
I've never done anything like this before, and I can only find examples on how to draw 3d text onto something.
Thanks.
[URL="http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexedb0.html"]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexedb0.html[/URL]
This should point you in the right direction.
@brandonj4
That only explains how to render text, but I have no idea how to "capture" a view as a camera would.
[editline]12th July 2012[/editline]
Already found render.RenderView could be useful
[QUOTE=_axe_;36736587]@brandonj4
That only explains how to render text, but I have no idea how to "capture" a view as a camera would.
[editline]12th July 2012[/editline]
Already found render.RenderView could be useful[/QUOTE]
Sorry read the question wrong thought you asked for both but:
[URL="http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index2b71.html"]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index2b71.html[/URL]
if you don't already have it.
[QUOTE=_axe_;36736232]Hi,
I've noticed the wiki got emptied and the older wiki didn't contain a clear example.
Can anyone show a simple example on how to draw a view from a "camera" onto a texture?
I've never done anything like this before, and I can only find examples on how to draw 3d text onto something.
Thanks.[/QUOTE]
Add me on steam, I did that before.
[QUOTE=Wizard of Ass;36736917]Add me on steam, I did that before.[/QUOTE]
Added ya
Sorry, you need to Log In to post a reply to this thread.