Sign in to follow this  

Instancing and animations (DX9)

This topic is 3862 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

At the moment, Ive got a flock simulation displayings over 500 sharks using instancing (http://www.youtube.com/watch?v=GnUXoy5gpe8 for an early-version video). The models of the sharks themselves are static (ie: not keyframe-animated nor skeleton-animated). Ive got access to a decent MD2 shark model that has animation keyframes, and I would like to animate the shark models using simple vertex-tweening technique. This is very simple to do when you draw your objects one by one: simply setup two geometry streams with frame N, and frame N+1 and then interpolate vertex position in the vertex shader. However, now that I'm using instancing to render my sharks in a single draw call, I don't know how to add support for animations yet. Any suggestions on this?

Share this post


Link to post
Share on other sites

This topic is 3862 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this