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
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