Path: chuka.playstation.co.uk!news From: Kev Newsgroups: scee.yaroze.programming.3d_graphics Subject: Re: Calculating Normals Date: Thu, 29 May 1997 15:05:37 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 29 Message-ID: <338D8D31.7021@geocities.com> References: <338D6EC6.7EC3@geocities.com> <338D8643.30D2@interactive.sony.com> NNTP-Posting-Host: mango.ferndown.ate.slb.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01Gold (X11; I; SunOS 5.3 sun4m) Developer Support wrote: > Kev wrote: > > The normal produced by this routine is quite different from that the > > correct normal. Am I using the right method??? I'm sure the > > ScaleVectorToUnit function and GetSizeOfVector functions are OK as > > they are from Sony code anyway. > > > > Can anyone help? > We're not suppose to be here to help with coding, only technical > problems. Um, that's why I wrote "anyone" ie. anybody with access to this newsgroup and could help - I didn't specifically ask Sony!!! Thanks anyway! :) > What your doing is normalising the polygon vectors before > calculating the cross product. This messes up everything, I think what > you were trying to do is normalise the direction vectors that make up a > side. Plus your calculating the clockwise vectors not the anticlockwise > ones. > > Your code should look like this: Ah I see, cheers! Kev. "One Happy Yaroze Owner" -- P.S. There's a new tune up on my site for those into MODs... http://www.geocities.com/SiliconValley/Pines/7428