ok, i give up . i've even seen this problem in tutorials , but it can't be
right.
what i am trying to do is position an image , 'decal' like on the surface
of a sphere,
*not* covering it tip to tail . so i thought, clamp & scale .
what happens thought, is that each edge pixel of the image stretches to
fill the sphere
up to the poles and around to greenwich .
it must be something simple, i've chased all through the archives and can't
a solution . any ideas ?
texture.setBoundaryModeS(Texture.CLAMP);
texture.setBoundaryModeT(Texture.CLAMP);
TextureAttributes textAttr = new TextureAttributes();
textAttr.setTextureMode(TextureAttributes.DECAL);
double tx = 4.0d;
double ty = 3.0d;
double tz = 4.0d;
float x = -1.5f;
float y = -1.0f;
float z = 0.0f;
Transform3D textTrans = new Transform3D();
textTrans.setScale(new Vector3d(4f,3f,4f));
textTrans.setTranslation(new Vector3f(x,y,z));
textAttr.setTextureTransform(textTrans);
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".