   how to render to texture?
  hi guys, i wonder how to render the current scene on a texture with opengl?thank you   
  search for fbo. (framebuffer object).   ;  Hi, I'm interested in the same thing, but I wasn't able to find a tutorial about fbo: it seems that all the tutorials still use render to texture extension...   ;  When looking for a sample, always start with the people who know best ;)nVidia SDK samples page, scroll down to a sample aptly titled "Simple Framebuffer Object".   ;  There are three basic methods- Use FBO extension - the best way if supported- Use WGL_pbuffer extension - apparently works, but complicated to set up, Windows-only, and has some performance problems- Render to somewhere else, then use glCopyTexImage2D - the most widely supported, but can be slow for larger textures because of the extra copying involved.I'd say it depends how often you do it. If performance is not critical, or it's a small texture or something you're only doing occasionally, use glCopyTexImage2D - it really is MUCH easier (Hint: You can render to the back buffer, copy the texture, then clear the back buffer again and do more rendering before you call swapbuffers)Mark   