Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: md2 and fast normals?

Hybrid View

  1. #1
    Intern Contributor
    Join Date
    Sep 2001
    Location
    Lewisville, TX
    Posts
    97

    md2 and fast normals?

    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?

  2. #2
    Intern Contributor
    Join Date
    Mar 2004
    Posts
    62

    Re: md2 and fast normals?

    Vertex skinning is your keyword.

  3. #3
    Intern Contributor
    Join Date
    Sep 2001
    Location
    Lewisville, TX
    Posts
    97

    Re: md2 and fast normals?

    Can you explain?

  4. #4
    Guest

    Re: md2 and fast normals?

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •