kudrik Posted September 13, 2012 Share Posted September 13, 2012 Hi! Пытаюсь смешать в скиннере анимации с помощью skinner.add. Посмотрел примеры (в особенности - samples/skinner/skinner_00 + agent_walk_run_torso.script) В EvaluationKIT все работает (в сцене-редакторе примера), пытаюсь повторить в отдельном проекте - модель выворачивает (модель и анимации - те же). В чем может быть причина? Google Translator: I'm trying to mix animations with skinner.add in Skinner. Study the examples (in particular - samples/skinner/skinner_00 + agent_walk_run_torso.script) In EvaluationKIT everything works (in the scene editor example), I try again in a separate project - the model breaks down (model and animation - the same). In what could be the reason? Tnx! Link to comment
manguste Posted September 13, 2012 Share Posted September 13, 2012 Please, create a minimal test scene for reproduction, because on our side it works fine, just like in EvalKit you have. Link to comment
kudrik Posted September 13, 2012 Author Share Posted September 13, 2012 Только что повторил проблему в Evaluation Kit for Windows 2012-09-07 :wacko: по шагам: запустить Unigine Evaluation Kit\browser.bat там запустить Skinner demo в сцене skinner_00 нажать Clear чтоб очистить окно редактора в редакторе построить скрипт как на картинке в 1 посте и запустить его (я использовал анимации agent_idle и agent_run_forward_torso) меняем слайдер на 1 и все - модель сломана Google translator: I'm repeat it in Evaluation Kit for Windows 2012-09-07 now. :wacko: steps: run Unigine Evaluation Kit\browser.bat run Skinner demo in skinner_00 click to Clear button for clear editor screen build script like on picture in post 1 and Run (used agent_idle and agent_run_forward_torso anim files) change slider on 1 -> model broken Link to comment
frustum Posted September 13, 2012 Share Posted September 13, 2012 Skinner.add performs matrix multiplication. It can't be used for animation mixing directly. Please check all skinner samples from the sdk. Link to comment
kudrik Posted September 13, 2012 Author Share Posted September 13, 2012 Понятно. Я еще раз пересмотрел пример и нашел то, что я упустил ранее - блоки animation и difference визуально очень похожи. Заменил у второй анимации блок skinner.animation на skinner.difference и все сработало как нужно. Проблема решена. Спасибо. Google Translator: Clear. I double-checked and found an example of what I missed earlier - blocks skinner.animation and skinner.difference visual is very similar. Replaced in the second animation block skinner.animation by skinner.difference and everything works. Problem solved. Thx. Link to comment
werner.poetzelberger Posted April 18, 2013 Share Posted April 18, 2013 Hello. Just playing with skinner.add too. As Kudrik described, instead off .animation using .difference, is working. Seems the correct approach. skinner.difference Calculates the difference between the reference frame of the loaded animation and all other frames in this animation. It calculates the difference in bone transformations for each frame of the played animation relative, for example, the bind pose (0 frame). After that, this data is output to the buffer and can be added to another animation, for example, to combine breathing animation (calculated via difference) with other animation that contains torso movement. cheers. werner Link to comment
Recommended Posts