This stuff is still hurting my head too.
this is messy, it's a mash of Fredborgs original DOT3 code, a snippet of yours Halo, and some of my own. It produces ok results, but I'm not sure when stuff is rotated.
b.t.w this is slightly different from one I posted a few weeks back, the shading wasn't correct, but it is using Halos tangent>rgb math.
The problem for rotating meshes seems to be hierarchial tranformations.
http://www.tomspeed.com/test/normal-mapping-2.zip
Tom
this is messy, it's a mash of Fredborgs original DOT3 code, a snippet of yours Halo, and some of my own. It produces ok results, but I'm not sure when stuff is rotated.
b.t.w this is slightly different from one I posted a few weeks back, the shading wasn't correct, but it is using Halos tangent>rgb math.
The problem for rotating meshes seems to be hierarchial tranformations.
http://www.tomspeed.com/test/normal-mapping-2.zip
Tom