Did you generate Normal vectors for your Triangle array? It sounds like you are not
getting lighting for surfaces...?
You can use the NormalGenerator utility to automatically generate Normal vectors for
you TriangleArray.
Sincerely,
Daniel Selman
[EMAIL PROTECTED]
http://www.tornadolabs.com
> -----Original Message-----
> From: Discussion list for Java 3D API
> [mailto:[EMAIL PROTECTED]]On Behalf Of Rajeev Kulkarni
> Sent: 27 August 1999 16:41
> To: [EMAIL PROTECTED]
> Subject: Appearance of a Triangle Array
>
>
> I used the ObjLoad program as a template and added my own
> TraingleArray to a
> Shape3D.
>
> I then added the Shape3D to the scene graph.
>
> When I run the program, I see the .obj file nicely shaded in grey but,
> my TriangleArray is flat and shading seems very dull.
>
> I am not passing "null" for the Appearance in the Shape3D
> constructor but my
> own Appearance object.
>
> Why is the appearance of my TriangleArray dull and flat?
> Does the Object class (for .obj files) have its own appearance object that
> it uses by default? If so, what are the default values for that?
>
> Thanks in advance.
>
> Raj
>
>
> _______________________________________________________________
> Get Free Email and Do More On The Web. Visit http://www.msn.com
>
> ==================================================================
> =========
> 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".