PDA

View Full Version : md2 and fast normals?



Lurking
01-04-2004, 05:11 PM
I have been using loops apon loops to get per-vertex lighting to work right. Now that i have it running on my md2 the only problem is that when i start wanting to animate it slows down really bad when having to recalculate the normals per frame. What is the fastest way to calc the per-vertex normals?

Honk
01-04-2004, 06:17 PM
Vertex skinning is your keyword.

Lurking
01-04-2004, 06:24 PM
Can you explain?

01-04-2004, 10:30 PM
To have fast normal calculation from an animated md2, I would precalculate the normals for each pose, store them, and then interpolate each normal between 2 poses (lerp). It is not matematically correct, but should do the work if the poses are not too different.