[Algorithms] Re: Some questions about N-Patches...
Brought to you by:
vexxed72
From: Peter W. <pet...@ho...> - 2000-08-07 01:48:32
|
This is just a correction for my last message on N-Patches. I just realised that the normal interpolation formula I gave was wrong. I used the formula NewNormal=Cos(45)*Normal0+Sin(45)*Normal1. This only works when the normals are perpendicular to each other (as in the case of my first test mesh). I'll have to look at spherical interpolation for normals more closely, I have the feeling that I can take the cross-product of the two normals, use that as the axis of rotation to rotate around. I'm sure there are simpler approximations out there as well. Linearly interpolating between the two normals, eg NewNormal=0.5*Normal0+0.5*Normal1, and then renormalising to get back to unit length sounds good too. Peter Warden ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com |