• Advertisement

Archived

This topic is now archived and is closed to further replies.

MD3 - Storing

This topic is 5359 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all; I''m doing a app to show some md3 models, and id on''t know how should I store them to better performance. I think i cannot use display lists because i wouldnt do interpolation between the frames ,right? If i use vertex array or VBO, can i do interpolation via vertex program? Does anybody had it done? Thanx

Share this post


Link to post
Share on other sites
Advertisement
Just store them as arrays of verticies, normals, texcoords, and then an array of indicies (usually one for verticies/normals, then one for tex coords/whatever else)...

It''s not possible to do the interpolation between frames, unless your animation is defined parametrically.

-=|Mr.Oreo|=-
Code Monkey, Serpent Engine

Share this post


Link to post
Share on other sites
Thanx for the reply;
I think i can do interpolation between a frame and the next one, using a parameter t (between 0 and 1) to tell the amount to be interpolated:

dest = vert[0] + ( vert[1]-vert[0])*t;
(off course its just an example...)

But i wanna do it through Vertex Program, i think its possible...any idea?
Thanx

Share this post


Link to post
Share on other sites
Should be possible, for linearly interpolated stuff...

I don''t know much about vertex shaders though, so I can''t be of much help.

-=|Mr.Oreo|=-
Code Monkey, Serpent Engine

Share this post


Link to post
Share on other sites

  • Advertisement