>Date: Sat, 16 Mar 2002 16:21:44 +0100
>From: Jacob Marner <[EMAIL PROTECTED]>
>Subject: Re: [JAVA3D] Problems with blurry texture maps
>To: [EMAIL PROTECTED]
>MIME-version: 1.0
>X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
>Content-transfer-encoding: 7bit
>X-Priority: 3
>X-MSMail-priority: Normal
>Delivered-to: [EMAIL PROTECTED]
>
>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.
>
v1.3 beta1 of Java3D OpenGL version support this
(No support in DirectX version) if it detects that
OpenGL v1.2 is used and extension support.
See doc in Texture

    public void setMinimumLOD(float minimumLod)
    public void setMaximumLOD(float maximumLod)
    public void setMaximumLevel(int maximumLevel)
    public void setBaseLevel(int baseLevel)
    public void setLodOffset(float s, float t, float r)

Thanks.

- Kelvin
----------------
Java 3D Team
Sun Microsystems Inc.

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