Uma,
I've spent this afternoon chasing the problem with Appearances that I
described earlier and trying to come up with a test case for you. I started
with trying to modify the demo AppearanceTest example, and I couldn't
reproduce the bug... but I could still reproduce the problem in my code.
So I factored out most of my code and came up with a shortish example
(attached). In my code I create a Box primitive, and then replace the
coordinates/colors/texture coordinates and normals of the left face. This
seems to be causing the problem under 1.2B1 (worked fine in 1.1.x).
If you comment out the code to modify the left face then the
ColoringAttributes are used for all the faces of the Box. However, if you
modify the left face, the non-modified faces of the Box are black and the
ColoringAttributes is ignored. I imagine this is also the cause of the
problem with Transparency that I described (though I have not verified
this).
Very strange. Please keep me posted.
Sincerely,
Daniel
[EMAIL PROTECTED]
http://www.tornadolabs.com
> -----Original Message-----
> From: Uma Sabada [mailto:[EMAIL PROTECTED]]
> Sent: 21 January 2000 18:25
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [JAVA3D] Java 3D API Version 1.2 Beta1: Maintenance Releas
>
>
>
> Daniel:
>
> >Other initial (very brief) impressions are:
> >ColoringAttributes no longer work (?)
> >Material colors seem very dark compared to 1.1x (?)
> >Transparency no longer works (?)
> >Textures seem *very* slow (MIPMAP example)
>
>
>
> Could you please send me a test case for this case? The example
> programs(For e.g.: examples/Appearance/AppearanceTest)
> distributed with Java3D beta works.
>
>
>
> Thanks
> Uma
> Java3D Team
>
>
>
> ----- Begin Included Message -----
>
> >From [EMAIL PROTECTED] Thu Jan 20 20:50:44 2000
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> X-Priority: 3 (Normal)
> X-MSMail-Priority: Normal
> Importance: Normal
> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
> Date: Thu, 20 Jan 2000 13:31:31 -0000
> From: Daniel Selman <[EMAIL PROTECTED]>
> Subject: [JAVA3D] 1.2B1 Texture woes etc
> To: [EMAIL PROTECTED]
>
> All,
>
> Well, I'm sorry to post the first issues for 1.2B1 but I'm afraid
> deadlines
> are pressing and it can't be helped. I have to get the 35 examples for my
> book running on 1.2B1.
>
> Several problems so far, and I have only tried to run the first 3
> examples.
>
> Installing
> ===========
> The first time I installed B1 the JAR files were somehow corrupted
> Nothing would compile - it could not find the javax.media classes
> I ran jar on j3dcore.jar and only 70 Kb of the 3 MB+ files extracted
> When I uninstalled my previous Java 3D and reinstalled everything
> was fine.
> So *unistall* previous versions first to be on the safe side.
>
> Textures
> ========
> More important, I can't get texture mapping to work.
> The JDK TextureTest demo isn't texture mapped and my examples don't work
> either. I am running on a Windows 95B machine, JDK 1.2 with
> software OpenGL.
>
> If I modify:
> quadArray.setTextureCoordinates( 0, texArray, 0, coordArray.length/3 );
>
> to use the new (non-deprecated) version:
> quadArray.setTextureCoordinates( 0, 0, texArray );
>
> It makes no difference.
>
> It seems like somehow the "old" Texture inside the Appearance is not being
> used. From my reading of the docs it seemed like the TextureUnits should
> only be used if applied. Is that not the case? What other
> modifications are
> necessary to get 1.1x texture mapping working with 1.2B1?
>
> The only examples I have that use Textures and work use a GeometryInfo
> object and the Triangulator or use MIPMAPS.
>
> Other initial (very brief) impressions are:
> ColoringAttributes no longer work (?)
> Material colors seem very dark compared to 1.1x (?)
> Transparency no longer works (?)
> Textures seem *very* slow (MIPMAP example)
>
> If anyone can *please* tell me that I've screwed up I'd be very
> grateful. I
> sincerely hope Textures are not broken in what is, after all, a Beta
> release.
>
> Sincerely,
>
> Daniel Selman
>
> [EMAIL PROTECTED]
> http://www.tornadolabs.com
>
> > -----Original Message-----
> > From: Discussion list for Java 3D API
> > [mailto:[EMAIL PROTECTED]]On Behalf Of John A. Tenney
> > Sent: 20 January 2000 06:16
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JAVA3D] Java 3D API Version 1.2 Beta1: Maintenance Release
> > Implementation Now Available
> >
> >
> > And it is a great improvement! Much better performance and much
> > lower memory
> > leakage, as measured in my application.
> >
> > -----Original Message-----
> > From: Discussion list for Java 3D API
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Rob Posadas
> > Sent: Wednesday, January 19, 2000 9:27 AM
> > To: [EMAIL PROTECTED]
> > Subject: [JAVA3D] Java 3D API Version 1.2 Beta1: Maintenance Release
> > Implementation Now Available
> >
> >
> > Java 3D API Version 1.2 Beta1: Maintenance Release Implementation Now
> > Available
> >
> > You can access it from:
> > http://java.sun.com/products/java-media/3D/index.html
> >
> >
> > Rob Posadas
> >
> > Manager, 3d Graphics Software
> > Sun Microsystems
> > [EMAIL PROTECTED]
> > (650) 786-7873
> >
> > ==================================================================
> > =========
> > 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".
>
>
> ----- End Included Message -----
>
>
AppearanceTest.java