Render to texture
by Daniel Buckmaster · in Torque Game Engine · 10/09/2010 (3:40 am) · 2 replies
This is a pretty general question - does render-to-texture require the use of shaders? I've never been very clear on this :P. If not, I assume it can theoretically be done in TGE, hopefully without changing the system requirements. Similarly for effects like rendering GUIs on objects.
About the author
Studying mechatronic engineering and computer science at the University of Sydney. Game development is probably my most time-consuming hobby!
#2
10/09/2010 (7:04 am)
Thanks! I had hoped that was the case, just needed to confirm it with someone who knew. And thanks for the tip! I probably won't get around to doing this any time soon, but I plan on making some sort of generic render-camera-view-to-shape object that you can attach to other objects.
Associate Chris Haigler
Jester Dance
For some more reading you can search for glCopyTexSubImage2D(), WGL_ARB_pbuffer, EXT_framebuffer_object and GL_ARB_framebuffer_object.
Specifically for TGE, Duncan Grey added supported for EXT_framebuffer_object and PBuffers for his SceneObject Shadow resource. That resource is outdated/unsupported now but checking it out may give you a good idea on how to implement render-to-texture support.