Hi, Haven't tried Daniel Selman's test program yet but is sounds as if your
specular light is too high and your difuse light too low. - Gary Graf
Bob Gray wrote:
> I never seem to be able to get my lighting in Java 3D just right.
>
> I have a bunch of polyhedra, all different colors. When I rotate
> them around, the polyhedra faces which are perpendicular to my viewing
> direction turns white. Too much lighting or something. Yet the over all
> appearance of the polyhedra is way too dark.
>
> I have an AmbientLight set to
>
> lightA.setColor(new Color3f(0.6f, 0.6f, 0.6f));
>
> and a directional light always in the direction of viewing.
>
> lightD1.setColor(new Color3f(0.75f, 0.75f, 0.75f));
>
> I set my appearance and material properties for the polyhedra
>
> theMaterial.setDiffuseColor(0.0f, 0.80f, 0.0f);
> theMaterial.setLightingEnable(true);
>
> I need to know how to set the material properties and the lighting
> properties to have bright, sharp, polyhedra without "white out".
>
> Is there a program that lets you try different lighting settings?
> Are there general rules of thumb for lighting? I've read the Tutorial
> several times. But I never get a good "feel" for the right parameter
> settings.
>
> And there are several other material parameters that could be set like
> setAmbientColor, setEmissiveColor, setShininess, setSpecularColor
>
> Too many to play with. Does anyone how some settings already figured
> out that I could try??
>
> There should be a program that lets you move knobs to change all these
> parameters
> so you can see the effects and to help you get the lighting you want
> quickly.
>
> Bob Gray
>
> ===========================================================================
> 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".