Jacob, Thanks for your suggestions. I already have tried all combinations of min and mag filters. The second image in the web page uses the trilinear filtering you suggest.
I'm quite familiar with OpenGL so I knew that I could control it in OpenGL, but I wondered if Java3D has similar controls. It seems that the answer might be no. Thanks for the feedback. Sincerely, John Barrus -----Original Message----- From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]]On Behalf Of Jacob Marner Sent: Saturday, March 16, 2002 7:22 AM To: [EMAIL PROTECTED] Subject: Re: [JAVA3D] Problems with blurry texture maps Hi John, There is two issues here as far as I can see. First there is the problem that the edge between two mipmap levels are very visible. This can be removed by turning on trilinear filtering: // Trilinear filtering texture.setMagFilter(Texture.BASE_LEVEL_LINEAR); texture.setMinFilter(Texture.MULTI_LEVEL_LINEAR); where texture is your texture. If this alone does not help enough you have to set the distance mipmap changes. I am no Java3D expert but in OpenGL this is done by setting the values of GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD. This was introduced in OpenGL 1.2, and since Java3D only uses OpenGL 1.1 I suspect that Java3D does not support this feature. Jacob Marner ----- Original Message ----- From: "John Barrus" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, March 16, 2002 16:00 Subject: [JAVA3D] Problems with blurry texture maps > I am using Java3D to make driveway paving simulations. I take an existing > picture of a driveway, and then calculate the geometry of the driveway, lay > a texture on it and merge the driveway image with the digital photograph. > > Unfortunately, the driveway ends up looking blurry because the mipmapped > textures are swapped in too close to the virtual camera. I have an example > at http://www.johnbarrus.com/java3dblurry/ > > I'd love to adjust the distance at which the mipmaps are swapped in. Anyone > have any ideas? Is this a known bug in Java3D or perhaps am I doing > something wrong? > > Thanks for your help. > > Sincerely, > > John Barrus > > =========================================================================== > 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". =========================================================================== 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".
