PDA

View Full Version : Render to texture



incognito
03-21-2002, 11:43 PM
How is done ? What are the steps ?
The Red Book is very short in this subject.
Can you point me to some detailed docs about this subject. Some clear and short code would be nice http://www.opengl.org/discussion_boards/ubb/wink.gif

Gavin
03-22-2002, 02:10 AM
1. Go to opengl.org
2. Scroll down.
3. The answer will appear before your eyes.

incognito
03-22-2002, 02:54 AM
I have already visited that link but I don't feel really confortable with Delphi.

rIO
03-22-2002, 04:17 AM
It is a quite simple task, http://www.spinningkids.org/rio , there is a link to a NeHe lesson showing fake radial blur and render to texture....

Just render to the back buffer, then use glCopyTex to read back the buffer to a texture...

rIO.sK

chxfryer
03-22-2002, 11:19 AM
on http://www.gametutorials.com there is a tutorial on the subject you need. Very helpfull.

DanO
03-22-2002, 11:50 AM
Rendering you texture image to the back buffer and then calling glCopyTexSubImage2D to copy the image to the texture is a pretty standard way of doing this using core OpenGL.

Later on, if you're comfortable with WGL and OpenGL extensions, you can look at the render_texture extension. There's a little paper about this on the ATI website here: http://www.ati.com/developer/ATIpbuffer.pdf