PostProcess

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
Post Reply
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

PostProcess

Post by sudi »

I wanted to announce my postprocess lib.
Well its not a lib yet but it allows u without to much coding effort to use postprocessing.

An example:
You made a postprocess effect lets call it RadialBlur.effect

now u want to load that effect:

Code: Select all

 
AppFrame::graphic::IPostProcess* radialblur = new AppFrame::graphic::CPostProcess("RadialBlur.effect", irrlichtdevice);
 
now u loaded the effect. to use it u simply call

Code: Select all

 
radialblur->Render();
 
instead of SceneManager->drawAll();
Of course sometimes u want several effects chained after each other. lets say black_white is a pointer to a loaded effect file.

Code: Select all

 
black_white->Render(radialblur->getRenderTarget(), true);
radialblur->Render(0, false);
 
simple isn't it????
Well if u are done with everything simply call

Code: Select all

 
black_white->drop();
radialblur->drop();
 
and you are done.

have fun!!!
Download
Last edited by sudi on Wed Aug 28, 2013 8:37 pm, edited 1 time in total.
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
Halan
Posts: 447
Joined: Tue Oct 04, 2005 8:17 pm
Location: Germany, Freak City
Contact:

Post by Halan »

wow that is cool as your stuff always is sudi

i have 2 questions though.
What are the namespaces supposed to be? AppFrame?
And I think you once wrote in the XEffect forum that you tried to make the shadow mapping stuff as post process effect. Did you manage to do that?
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post by sudi »

well u can see i added depthpass rendering to my postprocess class. but i kinda didn't make it. i even added camera parameters for each pipeline so it can be done but i didn't manage it....

Well all the stuff i have been posting lately is from my gameengine. and the main namespace of my engine is AppFrame

so yeah thats why.
nice that it works :D
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
Katsankat
Posts: 178
Joined: Sun Mar 12, 2006 4:15 am
Contact:

Post by Katsankat »

Thank you Sudi, it works great.
Post Reply