On Mon, 2004-02-23 at 18:37, bob wrote:
> Hi,
>
> I am fairly new at j3d myself, but I think normal are defined per vertex and you 
> defined them per side of the cube. Also if you use the same normal for a vertex 
> shared by several polygons, you get the smooth gouraud shading effect (gouraud is on 
> by default), while when you use different normal for the same vertex for each 
> polygon you get a hard edges. I don't know how to enter the normals, for the time 
> being I use a function (in class GeometryInfo, if memory serves) that generates 
> normals automatically. You can give a maximal angle (between normals of polynoms) 
> for which shared normals will be generated. I think it takes the average of the 
> normals of each of the polygons that share the vertex. Normals and the function are 
> explained in one of the standard guides on sun.com (7 chapters, pretty clear)

I think I have the normals defined correctly...I based how I added them
on the Box primitive (although they do some geometry caching that's
different).  Normals are discussed in chapter 6 of the Sun tutorial...if
you saw my last mail, I think I have actually defined them correctly
(because Box behaves the same way), but my lights or appearance isn't
correct.

thanks for the clarification,

kddubb

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