khotan Posted April 7, 2021 Share Posted April 7, 2021 Hi, How to switch animation from TPS Character for walking, crouching, running, etc.. in C++ ? Quote Link to comment Share on other sites More sharing options...
Josh Posted April 7, 2021 Share Posted April 7, 2021 We need more info on what you are trying to do? 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...
khotan Posted April 7, 2021 Author Share Posted April 7, 2021 Well, I need to all control my character for several animations as walking, running, jumping, climbing etc... . How to control and to rotate this characer at 90° to left or right? How to make a transition between walking to running and then back to walking by changing in C++ with interpolation if possible? What about the control for vertices from mesh and to make a expression on face of character ? I mean it all are all control behavior from character and making coding and controlled by C++ ? This link is what I am looking for as inspiration : Can you help me with example or make a pseudo-code to try and to understand it ? Thanks. Quote Link to comment Share on other sites More sharing options...
Josh Posted April 7, 2021 Share Posted April 7, 2021 The Entity::PlayAnimation() method will take care of most of that. It automatically handles transitions between animations: https://leadwerks.com/learn You can still rotate the whole entity while it is animating, the the animations will be played relative to the top-level entity in the model. Vertex morphing animations are not supported, mostly because nobody has separate models for facial expressions. But you can manually move the vertices around if you do have that ready to use. 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...
khotan Posted April 7, 2021 Author Share Posted April 7, 2021 Thank you Josh ! Any support with Vertex morphing for later ? Quote Link to comment Share on other sites More sharing options...
Josh Posted April 7, 2021 Share Posted April 7, 2021 The glTF format does support vertex morphing animation, so I do plan to implement it using that. 1 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...
khotan Posted April 10, 2021 Author Share Posted April 10, 2021 Great thank you Josh ! 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.