Hi everyone.
I would like to do cylindrical
texture-mapping in Java3D but I have been having problems with the seam area
where the texture wraps around and meets itself. The whole texture gets repeated
a second time along a narrow triangle-strip seam (the international date-line,
using the earth.jpg texture)...
The problem is with the triangles
that straddle the date-line - if the s-components (the normalized angle around
the z-axis) of the texture coords for a given triangle are 0.98, 0.01, and 0.03
for example, then Java3D tries to fit basically the whole texture in there. What
I want is for Java3D to use some common sense, and regard the 0.98 point as
really being -0.02 (for that specific triangle). Is there a straightforward
Java3D way to do this? Or has this code already been written
somewhere?
What compounds the problem is that
I'm using an IndexedTriangleStripArray for the geometry, so manually going
through and just "cloning" out the points that are at fault (adding or
subtracting 1.0 to the s-component as needed) is a tricky problem...
Help!
--
Sam Hasinoff
