Post-Render Image Manipulation (SDL?)

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
opticdrive
Posts: 7
Joined: Sun Jul 01, 2012 5:27 am

Post-Render Image Manipulation (SDL?)

Post by opticdrive »

Is it possible to use SDL or Allegro to preform 2D image manipulation of the 'Screen'/window? I also want to be able do image manipulation on textures too. Is this possible, and if so how?

Thanks.
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Re: Post-Render Image Manipulation (SDL?)

Post by REDDemon »

are you using irrlicht?
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Post-Render Image Manipulation (SDL?)

Post by hybrid »

You need to transfer the framebuffer/texture to the CPU, manipulate, and re-upload. So it's usually better to use a shader for post-processing. But else you can of course use any software to manipulate the screen this way.
opticdrive
Posts: 7
Joined: Sun Jul 01, 2012 5:27 am

Re: Post-Render Image Manipulation (SDL?)

Post by opticdrive »

REDDemon wrote:are you using irrlicht?
Yes
hybrid wrote:You need to transfer the framebuffer/texture to the CPU, manipulate, and re-upload. So it's usually better to use a shader for post-processing. But else you can of course use any software to manipulate the screen this way.
How would you recommend one does the framebuffer thing? I didn't see any tutorial for this. I've already read the one that explains rendering images, which is how I am guessing the manipulated image gets rendered/reuploaded. I need to be able to do pixel (2D array) type image modification every frame.


Thanks again.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Post-Render Image Manipulation (SDL?)

Post by hybrid »

In general, render target textures have the best performance for this. So have a look at example 13. Once the texture is updated, you can render it to a large quad of the desired size.
Post Reply