Jump to content
  • Advertisement
Cyndanera

DX11 3D Model Coding Question - DX11

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

in directx I need to know how would I play the animation in directx rendering frames for each part of the model moving parts - like the bones, how would would that work?

I'm new to writing a animation player, for a model parser.

I'm asking so I understand how to do this, I'm new to loading a model and playing\moving the bones to effect the mesh.

Edited by Cyndanera
Improved and fixing my post

Share this post


Link to post
Share on other sites
Advertisement

I'm not sure about DX but I think it's pretty much the same as in OpenGL. You upload the bone weights and IDs per vertex. Then upload the matrices of each bone in a uniform buffer (constant buffer in DX). These matrices can be given by interpolating between the matrices in the animation keyframes, based on the time. There are plenty of tutorials online if you need in depth info.

Share this post


Link to post
Share on other sites

The Autodesk FBX SDK is a widely used toolkit for loading models and playback of animations. The SDK is generic and can be tied to whatever 3D API you want to use (OpenGL, DirectX etc) in the sence that it loads and animates the mesh and when it is finished you have to transfer the computed mesh vertices to your favorite 3D API.

The SDK contains examples on how to use the SDK but if I recall it only contains the glue towards OpenGL. That can be translated over to DirectX quite easily though since you are just dealing with simple vertices and material properties.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!