Rendering to a texture?
by Brett Fattori · in Torque Game Engine · 04/17/2003 (4:51 pm) · 3 replies
Here's one for all the tech savvy out there... I am trying to put together a texture on-the-fly that can be applied to an object. This so I can put a "live" cockpit inside my choppers. This has GOT to be possible, as I've done something like this (render to offscreen buffer and flip).
I'd like to be able to point some GUI controls at a texture buffer and have them render there instead of the main screen. Anyone have any ideas or directions to point me in?
Thanks!!
- Brett
I'd like to be able to point some GUI controls at a texture buffer and have them render there instead of the main screen. Anyone have any ideas or directions to point me in?
Thanks!!
- Brett
#2
04/17/2003 (7:28 pm)
Wasn't there a resource that showed you how to add 3d models to a Gui? Try searching for it, or try looking at the Realm Wars code. They definitely render models in the Gui. This might show you how to do what you need.
#3
More research is needed, but thanks so far!
- Brett
04/18/2003 (10:13 am)
I saw the WGL_ARB_pbuffer code in many places. It seems like the way to go, however, if it is only in newer versions of OpenGL, it might be unusable. I was also thinking that maybe it would be possible to make changes to the GUI objects, directly, to have their bitmap that they create be applicable to a poly rather than the frame buffer.More research is needed, but thanks so far!
- Brett
Torque Owner Badguy
which is prolly in the new gl.
research that sucker there is lotsa support.