View Full Version : Render to texture
03-21-2002, 10: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
03-22-2002, 01:10 AM
1. Go to opengl.org
2. Scroll down.
3. The answer will appear before your eyes.
03-22-2002, 01:54 AM
I have already visited that link but I don't feel really confortable with Delphi.
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...
03-22-2002, 10:19 AM
on http://www.gametutorials.com there is a tutorial on the subject you need. Very helpfull.
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
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.