Thank you all!

Here is what I learned about ColoringAtributes. It is used when there is no light and no vertex color.
I found error in my normal generation.


Thanks!
Lan
At 05:27 PM 9/16/2003 +0200, you wrote:
You have to make sure that
1. the light has an InfluencingBound, which includes your Shape3D object
2. the light comes from the correct direction (an object lighted from behind
appears black)
3. I am not sure, but maybe you have to specify the ColoringAttributes as
well, because there the shade model for the object is specified

Harald

> -----Ursprüngliche Nachricht-----
> Von: Lan Wu-Cavener [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 16. September 2003 17:10
> An: [EMAIL PROTECTED]
> Betreff: [JAVA3D] help on appearance
>
>
> Hi, every one:
>
> I have this problem that I can not figure out now. I have
> geometry set with
> normals, but no vertex colors. I used a new Appearance() to
> build Shape3D.
> The objects look gray which is correct default color. But if I use
>
>                  Material ma = new Material();
>                  ma.setDiffuseColor(green);      // green is
> Color3f object
>                  ma.setLightingEnable(true);
>                  Appearance app = new Appearance();
>                  app.setMaterial(ma);
>
> The objects are total black. What was wrong here? Also when
> use the default
> appearance, I don't see any reflection from light, although I
> did set up
> directional light for the whole scene. Any guess is appreciated!
>
> Lan
>
>
>
> Lan Wu-Cavener
> Dept. of Landscape Architecture
>
> ==============================================================
> =============
> 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".

Lan Wu-Cavener Dept. of Landscape Architecture

===========================================================================
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".

Reply via email to