SpiderPig Posted June 1 Share Posted June 1 I think I need to know the current frame of an animated model in order to get root motion working for animated objects. Is this something that can be added easily enough? Quote Link to comment Share on other sites More sharing options...
SpiderPig Posted June 1 Author Share Posted June 1 @Josh I'm going through the headers and shaders - is the frame and sequence being incremented on the CPU or in the shaders? Quote Link to comment Share on other sites More sharing options...
SpiderPig Posted June 1 Author Share Posted June 1 Added to this here : Quote Link to comment Share on other sites More sharing options...
Josh Posted June 8 Share Posted June 8 A skeleton stores a stack of animations; there is no single current frame. Do you think animation hooks might be better for events? Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
SpiderPig Posted June 8 Author Share Posted June 8 Actually yes that would be much better. Probably a start and end animation hook. 1 Quote Link to comment Share on other sites More sharing options...
Josh Posted June 17 Share Posted June 17 @SpiderPig @Andy90 This is what I am planning on. Does this fit your purposes?: void Skeleton::AddHook(const int frame, void Hook(shared_ptr<Skeleton> skeleton, const int frame, shared_ptr<Object> extra), shared_ptr<Object> extra = nullptr) Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
SpiderPig Posted June 17 Author Share Posted June 17 I think so. So this hook would be called per frame? Quote Link to comment Share on other sites More sharing options...
SpiderPig Posted June 17 Author Share Posted June 17 Should there be a animation index there too? Or can that be retrieved from the skeleton? If we blend animations... does each bone have a different frame index? 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.