Login  Register

Mapping a texture

Posted by AlexRNL on Apr 12, 2011; 4:15pm
URL: https://forum.jogamp.org/Mapping-a-texture-tp2812032.html

Hi guys!

I have a problem with OpenGL (& JOGL) and I was hoping you could help me :)

So the idea is that I build an image with coordinates which I receive in the polar system. To avoid computation (this image receives a LOT of data) I'm storing them directly into a BufferedImage (r -> x & θ -> y). Basically, I end up with an distorted image.

Then I transform this image into an OpenGL texture and I was wondering if it was possible that OpenGL mapped that texture into polar coordinates system. Or maybe to map it onto a gluDisk quadric (so it has the right shape).

In case that is not possible, I was thinking of drawing a circle with many triangles (so it would look like an almost perfect circle) and apply the texture on each vertices of those triangles.

With this post I am joining a image which expose more clearly (i hope so...) my problem.
my problem
Please do not hesitate to ask for more details if it is explained badly (English is not my primary language ^^).

Thanks,
Alex.