Jump to content
  • Advertisement
Sign in to follow this  
FlyingSolo

Render to a texture without using a FBO ?

This topic is 1948 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi Folks,

              My ogl is a bit rusty and none of the books I've got seem to cover this topic. What I'd like to do is render to a texture which I can later render to screen in the normal way - but without using FBO's.  This is a 2D (Ortho) app where speed isn't a major concern.

 

Is this even feasible?  If so, how !?

 

Many thanks :)

 

Share this post


Link to post
Share on other sites
Advertisement

Ah, thanks for that - and indeed that will work, but I deliberately want (and need) to render to a texture.

 

Back story:-   I've already got all the textures I need for this project (there's a LOT of them) but they're geared up for a full-screen program. What I want to do is draw to a full-sized (hidden) texture, and then copy that texture to the screen - reducing its size as I do so.

 

I hope that makes sense... it's 01:30 here and I'm past tired!!

 

Thanks :)

Share this post


Link to post
Share on other sites

As another alternative you could look at the old pbuffer extensions - but beware; they have a reputation for being horrible to use and the dubious notoriety for putting John Carmack the closest he's ever been to switching to D3D.

 

Is there any specific reason why glCopyTex(Sub)Image won't do what you need?  From the way you describe your requirement, it looks like a good fit:

  • Draw your main scene.
  • Make a glCopyTex(Sub)Image call.
  • Draw the copied scene as a scaled-down fullscreen quad.

Share this post


Link to post
Share on other sites

There more I think about it, the more this does look like a glCopyTexImage job.  Problem with being rusty is that the most obvious solutions don't leap to mind !

 

I've heard enough horror stories about pbuffers that I deliberately avoided them - and hence my post here!

 

Thanks for listening guys, I'll go have a play  :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!