The OpenGL problem is duplicate of bug
4829458 - Some Texture stage fail to disable in accelerated mode for multiTexture apps
which is filed on behalf of Justin's demo earlier this month. This is not a switch problem.
For DirectX version, bug
4838311 - D3D: TextureAttributes in texture stage need to reset for multitexture
is filed for this. Here is the evaulation of this bug :
When using multitexture in DirectX version of Java3D, it is expect that the texture stage set in stage 1 can be disable by setting null texture
device->SetTexture(1, NULL);
so next time texture attributes in stage 1 will not affect stage 0.
However, it turns out that this is not the case. In this example, 2 Spheres are drawn, the first one (bump) use texture stage 0 and 1. The second one (color) use texture stage 0 only. When rendering the second sphere Java3D set texture in stage 1 to null. But without reset texture attributes in stage 1 back to default value the image is shown as white.
It can be reproduce using DX reference device. I'm not sure if this is DirectX bug or not but we'll workaround this.
Both bugs are fixed in the upcoming v1.3.1 release.
Thanks.
- Kelvin -------------- Java 3D Team Sun Microsystems Inc.
Alessandro Borges wrote:
*Hi,*
* *Short description of the problem:*
*Switch doesnot work with transparent Shape3D in OpenGL version. Once visible, doesnot set invible anymore. Same code works fine with DirectX version.* *The same shape with setTransparencyMode(TransparencyAttributes.NONE) works fine on both OpenGL & D3D.* **
* *Configuration information:*
*Amd Duron 1.1GHz, 384Ram* *Win98SE, * *JDK 1.4.1_01,* *Java3D 1.3.1beta1 OpenGL,* *video card GForce2 MX400- 64MB @[EMAIL PROTECTED] - 75Hz; * *video driver NVidia Detonator 30.28;* *Vsync on;* ** *A small example program that demonstrates the problem: * ** *a running applet plus source code here :* http://www.cpm2002.hpg.ig.com.br/alessandro/bump/bump2.html
* *Text of any error message(s) that appeared* *:*
*no message errors.* ** *Thank you,* *Alessandro Borges* ** ** **
=========================================================================== 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".