Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > OpenGL 3D API > Re: How can I g...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 5 Topic 4880 of 5017
Post > Topic >>

Re: How can I get a zoomed image from frame buffer?

by "jbwest" <jbwest@[EMAIL PROTECTED] > Aug 22, 2008 at 07:10 AM

"Murphy" <zishchen@[EMAIL PROTECTED]
> wrote in message 
news:4ebd0fa6-92a2-4f81-a108-7af56b21b373@[EMAIL PROTECTED]
 Aug 22, 12:33 pm, fungus <openglMYSO...@[EMAIL PROTECTED]
> wrote:
> On Aug 22, 5:07 am, Murphy <zishc...@[EMAIL PROTECTED]
> wrote:
>
> > Hi, all
> > I meet a problem. I am now using opengl to display a 3d model. For
> > certain reason I have to save the pixels of every frame into memory.
> > However the cost of glReadPixels is huge. So I want to downsample the
> > image and then output it from the buffer. I tried to use glPixelZoom
> > and glCopyPixels to zoom and copy the whole screen but it didn't work
> > because I don't know where to copy the pixel.
> > Anyway, does anyone know a method to output the screen pixels faster
> > or have a idea to zoom in the image in frame buffer.
>
> a) glReadPixels() from a window only works if the window is on top
> of all others. If any part of the window is obscured you'll get
> garbage.
> Best to render into a pbuffer.
>
> b) A pbuffer can be any size - no need to downsample.
>
> --
> <\___/>
> / O O \
> \_____/ FTB.
>
> http://www.topaz3d.com/
- Coder-friendly 3D editor

>Thank you for your reply. I am a new guy of opengl, so I didn't know
>pbuffer before. I will check it out. However, something I missed to
>say is that beside the image pixels I also want to get the depth
>image, so can you tell me if the pbuffer can get the depth image?

>thanks again.

Please define "huge". You should be able to read at at least 30 frames per

second. If not, Google opengl pixel readback and look for setting correct 
format & etc.

jbw
 




 5 Posts in Topic:
How can I get a zoomed image from frame buffer?
Murphy <zishchen@[EMAI  2008-08-21 20:07:34 
Re: How can I get a zoomed image from frame buffer?
fungus <openglMYSOCKS@  2008-08-21 21:33:10 
Re: How can I get a zoomed image from frame buffer?
Murphy <zishchen@[EMAI  2008-08-21 21:49:08 
Re: How can I get a zoomed image from frame buffer?
Wolfgang Draxinger <wd  2008-08-22 13:34:53 
Re: How can I get a zoomed image from frame buffer?
"jbwest" <jb  2008-08-22 07:10:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 6:54:10 CST 2008.