A
Andrew Neiderer
I have done little Java Advanced Image (JAI) processing; mostly I work in
Java3D and Java. But I do have access to JAI libraries for image processing.
I have a 368 x 198 texture that I need to place on some Java3D terrain.
Both the geometry and appearance nodes for a Shape3D have been implemented.
But I believe the texture needs to have dimensions in powers of 2, e.g.
512 x 256. So I need to crop/scale the 368 x 198 JPEG before placing
on the geometry.
Can someone point me (URL) or provide JAI code to an example.
I did a google search but could not find an example. Or if I should ask
at a Sun website, please advise on which one.
Thank you.
- Andrew M. Neiderer
US Army Research Lab
Java3D and Java. But I do have access to JAI libraries for image processing.
I have a 368 x 198 texture that I need to place on some Java3D terrain.
Both the geometry and appearance nodes for a Shape3D have been implemented.
But I believe the texture needs to have dimensions in powers of 2, e.g.
512 x 256. So I need to crop/scale the 368 x 198 JPEG before placing
on the geometry.
Can someone point me (URL) or provide JAI code to an example.
I did a google search but could not find an example. Or if I should ask
at a Sun website, please advise on which one.
Thank you.
- Andrew M. Neiderer
US Army Research Lab