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

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top