Render to texture example?
by Sultan Ansari · in Torque Game Engine Advanced · 10/26/2006 (6:46 am) · 6 replies
Anyone know of a render to texture example in TSE?
About the author
#2
10/26/2006 (7:26 am)
Yeah I looked at that. Its for TGE from 3 years ago and it says its extremely expensive performance wise. TSE is supposed to have built in support for render to texture now right? Was hoping theres an example out there somewhere with the TSE render to texture functionality.
#3
10/26/2006 (11:59 am)
There are a few places in the source code where you can learn about RTT. The waterblock reflection update code is a good example. There you can see how to setup the render target and draw the scene from a different view into it. Check WaterBlock::updateReflection() in waterBlock.cpp.
#4
10/26/2006 (12:49 pm)
Also check out gfx/glowBuffer.*
#5
10/29/2006 (11:51 am)
Yeah, glowbuffer is definitely the place to look...
#6
Uh. I said they ported it, read my post again. The port uses RTT in TSE, but so does cube maps and planar reflection. There are plenty of examples.
10/30/2006 (3:39 am)
Quote:
Yeah I looked at that. Its for TGE from 3 years ago and it says its extremely expensive performance wise. TSE is supposed to have built in support for render to texture now right? Was hoping theres an example out there somewhere with the TSE render to texture functionality.
Uh. I said they ported it, read my post again. The port uses RTT in TSE, but so does cube maps and planar reflection. There are plenty of examples.
Torque Owner Stefan Lundmark