Thank You John, that was a great hint. It took me all day but I figured it out. Without you and the JAVA3D mailing-list I would had not been able to figure this out. Man do I like JAVA3D! Michael Carter Purdue University Student ----- Original Message ----- From: John Wright Sent: Thursday, June 21, 2001 1:12 PM To: [EMAIL PROTECTED] Subject: Re: [JAVA3D] Do not know how to generate a normal. Michael,
Take a look at "GeometryInfo", you can use it to generate your normals automatically.
- John Wright Starfire Research ----- Original Message ----- From: Michael Carter Sent: Thursday, June 21, 2001 1:00 PM To: [EMAIL PROTECTED] Subject: Re: [JAVA3D] Do not know how to generate a normal. Hello JAVA3D world, my name is Michael I am a newbie. My first project is to port an OpenGL mechanical man to JAVA3D. I am making the torso and feet, which are octahedrons. I am using TriangleStripArray and QuadArray. My problem is generating normals for my lighting. I determine that the normals are needed for the lighting to work. How do I calculate the normals? Are there a class or method that will automatically generate the normals? Do I have to normalized the normals before they will work? How do I normalized the normals. Please help me? Thank You Michael =========================================================================== 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".
|