Exporting Max Cloth animation data and applying in game by vertex shader?

I have a set of characters that needs cloth animation to look _great_, and not just nice. The best plan so far is to use the Max Cloth modifier, and export the vertex animation data and apply it in my game-engine somehow (DX-based Truevision3D). I've heard that directx format (.x files) don't support vertex animation, otherwise I guess I could bake the vertex animation into the .x file.

The only alternative plan I've come up with, is to export the vertex data, and update the model vertices using a vertex shader. Is this a good idea, or is there a better solution?

I have tried to find information about how to update vertex buffers to "insert" new animation data for each animation frame, is the way to do it? Its hard to find shader examples where people use external data like this to update the vertices....

Thanks for your input !

[946 byte] By [PaulBerge] at [2007-12-24]