Jump to content
  • Advertisement
Sign in to follow this  
fimdan

OpenGL Pixel Operations - Image processing

This topic is 4941 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

Hello, I was thinking about efficient ways of doing image processing in opengl. I am trying to apply a transform to an image that would remap all pixels in a specific way. In order to do that I need access to individual pixels. My idea was to load the original image to the framebuffer and then use glCopyPixels to copy the needed pixels to accumulation buffer. The final image would be coppied from Accum Buffer back to host memory. Do you think this is a good way to go? Do you know better ways of handling per-pixel operations like the one discribed above. Also, I am rather restricted from using extentions or shaders (unless they are widely supported). FimDan

Share this post


Link to post
Share on other sites
Advertisement
Hey

Small correction. I just did some reading and it appears that my idea with Accum Buffer would not work because this buffer can not be used like the color buffer. I guess I could use glCopyPixels with the back buffer or another section of the front buffer. That would involve multiple call to glRaterPos (to set the new pixel position) and glCopyPixels (to read the pixel).
I don't know how efficient these operations are comparing to similar operations executed in host's memory?

Thanks

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!