PDA

View Full Version : OpenGL for non realistic photo rendering



spolp
04-01-2010, 03:35 PM
I am a Newbie to OpenGL. I was wondering if OpenGL can be used to do non realistic photo rendering for 2D images, like oil-painting effect, crayon effects, cartoon effect on images.

Any pointers are much appreciated.

mouser58907
04-01-2010, 04:16 PM
OpenGL can be used to display an image, but doing the actual filtering will have to be done with regular code. Here is a tutorial on that code in c#.
http://www.codeproject.com/KB/GDI-plus/csharpgraphicfilters11.aspx

If you scroll to the bottom there is a link to a 'for dummies' version that explains it pretty well.

ZbuffeR
04-01-2010, 04:31 PM
http://www.labri.fr/publications/is/2006/QTGGM06/
http://www.bonzaisoftware.com/npr.html

Also check out this, pretty cool :
http://www.pouet.net/prod.php?which=7140

An oldish bunch of links around NPR :
http://www.red3d.com/cwr/npr/

EDIT : wait, I though you meant 2D NPR of a 3D scene, but apparently it is 2D NPR of 2D image ?

spolp
04-01-2010, 08:20 PM
@ZbuffeR : Its for 2D NPR of 2D Images.

ZbuffeR
04-02-2010, 12:34 AM
Using GLSL fragment shaders to sample from paper textures and the original 2D image, some thresholding etc, it should be possible to do quite neat things with OpenGL.

But if you don't need performance, realtime feedback, or animation, OpenGL will not provide you better stuff than simply doing your own sauce on the CPU.