Jump to content
  • Advertisement
Sign in to follow this  

Instancing and animations (DX9)

This topic is 4050 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 (
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
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!