JAI: WarpGrid Inverse

F

Felix Engelhardt

Hi all,

I'm developing an application for automatic generation of personalized
images using JAI.

I would like to include a feature that is very much like what you call
"texture mapping" in 3D-programming:
Take a rectangular (or even better: an arbitrary quadrilateral) portion of
the source image and transform it to fill an arbitrary quadrilateral portion
of the destination image.

I have tried the WarpGrid-Operation, but it does the exact opposite of what
I want: It maps arbitrary quadrilateral portions of the source image to
axis-aligned rectangles in the destination image.

Is there any way of achieving what I want using JAI or Java2D without having
to write my own Warp-implementation? I don't necessarily have to operate on
quadrilaterals; triangles would also be ok ;-).
As the application is server-side, I'm not quite sure if I'll be able to use
Java3D or OpenGL (which seems like some huge overkill to me anyway).

Any ideas?

Best regards,

Felix
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top