Re: Mapping a texture
Posted by
AlexRNL on
Apr 13, 2011; 3:43pm
URL: https://forum.jogamp.org/Mapping-a-texture-tp2812032p2816633.html
Demoscene Passivist wrote
Yes, u could definetly do that with OpenGL.
I would suggest using "OpenGL Shading Language" (GLSL) for the tranformation u wanna do. OpenGL shaders really fast and could easily handle ur problem in realtime.
To get an idea of how to do the "cartesian to polar" and "polar to cartesian" transformation as fragment shader u may take a look here:
http://machinesdontcare.wordpress.com/2007/12/29/polarpixellate-glsl/
Thanks a lot, I managed to realize the operation quite easily (in comparison with what i was thinking of doing) :)
(And sorry for the image's size, I didn't realize how big it would be...)