x


Animation.Sample not updating animation transforms?

I'm trying to cache out the frames of a model's animation to a sprite atlas. This is being done in a disabled/offscreen camera. I can set the time once and it will immediately update (regardless of whether I call Animation.Sample() or not). If I do it a second time during the same frame, it will fail to update the position. Once again, calling Animation.Sample does absolutely nothing.

Am I missing something here? It seems like Animation.Sample is what I need, but it doesn't seem to affect anything. Also, why is it updating the animation the first time I set AnimationState.time (without calling Sample)? All of this happens before the animation update stage...

more ▼

asked Mar 18 '11 at 08:55 PM

amgsoak gravatar image

amgsoak
1 1 1 1

(comments are locked)
10|3000 characters needed characters left

1 answer: sort oldest

Hm...sounds weird. I can't remember seeing any problems like this with Animation.Sample. Can you post your mini-project somewhere?

more ▼

answered Mar 21 '11 at 08:54 AM

Paulius Liekis gravatar image

Paulius Liekis
7.3k 16 24 47

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3932
x15

asked: Mar 18 '11 at 08:55 PM

Seen: 1086 times

Last Updated: Mar 18 '11 at 08:55 PM