I have encountered EXACTLY the same problem. Firstly, I actually just set the color components of the material. Then I tried using multiple materials like you are doing. It would very much appear to be a bug, since in my application, you can make the color change 'flicker' on and off by rotating the view.
If I am highlighting only one shape at a time, the problem doesn't seem to manifest. If I highlight many shapes at once, however, some of them sometimes don't get updated in the view. I can (I think) get rid of the problem by putting in a time delay between the calls to change the material colors of each shape - It would seem that having too many calls to setMaterial in a row with no pause between them is the problem. This rather points at thread issues in the Java3D code. I'm hoping someone else can point at us and say we're being very silly, and tell us how do do it.. Lewis. -----Original Message----- From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED] On Behalf Of Alex Bowden Sent: 10 July 2003 18:38 To: [EMAIL PROTECTED] Subject: [JAVA3D] Changes of material not being displayed at java1.3 In my application I have various Shape3D for which I need 2 separate levels of highlight. I implemented this at Java3D 1.1 / 1.2 by setting up multiple materials to indicate the level of highlight And simply swapped the materials. thing.getAppearance().setMaterial(thing.HIGHLIGHT_MATERIAL) which worked fine at 1.1 / 1.2 at Java3D 1.3 this works MOST of the time but not reliably (i.e. sometimes the material does not change in the 3D view) Swapping the appearance instead seems to help (but has significant disadvantages in my application). Is there some notification that is required to indicate that the material has changed? Or is this a Bug. Thanks in anticipation Alex ======================================================================== === 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".