Hi there! I'm trying to implement bloom effect w/o shaders and proceed to use allegro+ogl to archive this. As i read in someplaces i need to render my scene to a texture and apply some blur and stuff. The problem is that when i copy the backbuffer to another BITMAP it's taking a LOT of time. Is anything very wrong in my code or my computer is very bad on this?
Yes, i use the ex_gldepth as my base code
Thanks all!
Did you know if you call
al_set_target_bitmap() before ogl calls the opengl commands will get drawn on the target bitmap... ?
ie - you don't have to render to the backbuffer.
Hi there! I'm trying to implement bloom effect w/o shaders
Then it's going to be slow, no matter what you do.
Why are you even attempting it? This is a problem that GPUs are built to solve.
The problem is that when i copy the backbuffer to another BITMAP it's taking a LOT of time.
And reading back data from video memory is also slow.
Ugh. I hate bloom. People use it like McDonald's uses salt.
It's right up there next to the programmer's idea of a color palette.