Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

In my Draw method, I am doing the following:

thisMesh.CopyAbsoluteBoneTransformsTo(transforms);

Is this a good idea? Or should I do this once at the constructor level?

share|improve this question
    
Is the transform for animating the bone or is it a static pose? –  Byte56 Feb 1 '13 at 21:06
    
@Byte56: Static. –  Neil Knight Feb 1 '13 at 22:10
add comment

1 Answer 1

up vote 0 down vote accepted

If the bones are static and so are the transforms, you only need to apply the transforms once. You can do that in the constructor.

However, if you're using the bones to position the model or animate the model, you'll need to update them more often. How often depends on how you're using them. For example, you may be reusing the same model and bones to draw multiple instances of a single model. In this case you'd have to update the transforms every frame. If you're just animating one model, you only need to update the transforms on a pose change. That could be at the same speed as your frame rate or it could be slower, it depends on your animation speed and run speed.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.