Rick, Thanks for the help, but I think I've sussed it already. If you declare the QuadArray with QuadArray.NORMALS in the vertex format it works. I guess that makes sense as if you don't specify normals, how can it calculate the lighting effects for the surface of the shape? Well thanks again anyway.
David -----Original Message----- From: Discussion list for Java 3D API [mailto:[EMAIL PROTECTED]]On Behalf Of Rick Cotton Sent: 09 April 2002 04:26 To: [EMAIL PROTECTED] Subject: Re: [JAVA3D] Setting Material for a GeometryArray Hi David, I am certainly a novice at J3D but had a similar problem. Some things try: reversing the order of the points being loaded. make sure you are loading TextureCoordinates. I also found differences in rending depending on whether I was using DirectX or openGL Hope this was some help, Rick ----- Original Message ----- From: "David Rush" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 08, 2002 3:13 PM Subject: [JAVA3D] Setting Material for a GeometryArray > Hi there, > > Can somebody explain why the QuadArray in the attached class always looks > white when I add it to a scene, despite giving it a different appearance > with a red material? > > How can I change the material for the object? > > Cheers, > David Rush > > =========================================================================== > 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". =========================================================================== 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".