Search code examples
iosopengl-espixel

OpenGL pixel manipulation for graphic


I want to simulate stroking a carpet, so you would have a graphic of a fury carpet and with your finger you can move around and stroke it. I need to shift pixels and create some fake distortion around where I am touching.

Anyone have any tips ?

Firstly I guess do I have enough to work with assuming I have 1 jpeg of the material. Not any skeleton or 3d file, just a flat image


Solution

  • this can be also improved with 'fur rendering' I've some examples:

    or new demo from NVidia:

    http://www.youtube.com/watch?v=2Fp5N-pOxKA - around 35sec