Oops. We forgot to include the following in the release notes for
1.1.2 release.
We discovered a bug in texture mapping whereby the wrong default value
was being used for texture mode if no texture attributes object was
being used. If a textured object was rendered with a null texture
attributes object in the appearance, then MODULATE was being used
rather than REPLACE, which is the specified default value. If a
TextureAttributes object was created using the default no-argument
constructor, then the correct default of REPLACE was used. We fixed
this bug in 1.1.2 and fixed all of our test programs that were relying
on the bug to explicitly create a texture attributes object and set the
texture mode to MODULATE. For example, the following code was added to
the TextureImage.java class in demo/java3d/TextureTest:
Texture tex = new TextureLoader(args[0], this).getTexture();
app.setTexture(tex);
>>> TextureAttributes texAttr = new TextureAttributes();
>>> texAttr.setTextureMode(TextureAttributes.MODULATE);
>>> app.setTextureAttributes(texAttr);
We apologize for any inconvenience that this has caused, and especially
for not including this in the release notes.
--
Kevin Rushforth
Java 3D Team
Sun Microsystems
[EMAIL PROTECTED]
>Date: Tue, 08 Jun 1999 08:49:31 -0500
>From: Frederic Gillet <[EMAIL PROTECTED]>
>CC: Java Interest <[EMAIL PROTECTED]>
>Subject: [java3d] Problem with lighting and textures in Java3D 1.1.2
>
>Hi there !
>I've just installed the new Java3D 1.1.2 on:
> 1) A Gateway NT(pack 4) + TNT card (STB Velocity 4400)
> 2) ANT SGI 320 worstation (Cobalt graphic chipset)
>
>In both cases, Im experiencing the same new problem:
>Whenever I have a textured object (with a default Material set to enable
>lighting), lighting doesnt work anymore (it was working in Java3D 1.1.1, i.e.
>texture and lighting)... !!! : (
>Is anyone else noticing the same behavior ?
>Anywork around ??
>
>Thanks a lot
>
>Frederic Gillet
>Xbind, Inc.
>
>=====================================================================
>To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
>Java 3D Home Page: http://java.sun.com/products/java-media/3D/
>
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/