I agree that the non-uniform scaling probably has a lot to do with it, because I noticed that the effect got worse the more I scaled the geometry. For instance, the cylinders that still looked like cylinders had no problem, but those that were scaled down into disks a few pixels thick had serious problems. Unfortunately, I have to scale everything to the proper size in the application I'm writing. At least setting the specular color to black and the shininess to 1 removes the specular color artifact for now.
Florin, did you scale your shapes up or down? That is, did you make them appear bigger or smaller than the original geometry size? In this application the shapes are always being scaled down. The original cylinder shape is much larger and longer in proportion than any of the cylinders in this application. I wonder whether scaling a shape down makes the specular color much brighter while scaling a shape up makes the colors much darker...
Anyways, maybe I'll have fewer problems if I start with a VRML shape file that is closer to the eventual size of the shape that will be displayed, so that the scaling is less extreme. I'll try that next.
Monica
In case you're using J3D v1.3 release, there is a bug 4722648 - Non-uniform scale causes lighting errors
which is fixed in J3D v1.3.1 beta1.
- 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".
