I have determined that turning bilinear filtering off helps, but does not
seem to solve the problem.  So setting the min and mag filter to
BASE_LEVEL_POINT does make it better.  CLAMP_TO_EDGE also does not solve the
problem.  Surely someone has successfully clamped direct x textures?

Dave Yazel

----- Original Message -----
From: David Yazel <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 09, 2002 11:02 PM
Subject: [JAVA3D] Edge clamping in direct-x


I seem to be having a difference between edge clamping on direct-x and
opengl.   If I have a 64x64 texture with an image of a box on it, and I use
texture coordinates [0,1] in opengl with mode CLAMP it works perfectly,
but in directx it loses the last pixel.  I seem to dimly remember this issue
way back in my mind.  Seemed to me the solution was to add throwaway pixel
border around the texture and use texture coordinates (1/width) ..
(width-1)/width instead of [0,1].

Is this right?  Is there any way around?

Dave Yazel

===========================================================================
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".

===========================================================================
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".

Reply via email to