salangasarlanga Posted May 21, 2011 Share Posted May 21, 2011 Hi everyone, I saw the video in the page that explain how to import from 3d Max to leadwerks animations, but in the video don´t show the animation on the "editor", it is shows only in the "modelviewer". When i put the animation in the editor nothing ocurrs. I think that ther is some scrip missing to do that the animation works on the editor. Thanks for reading, and sorry for my bad english im form spain. Bye. Quote Link to comment Share on other sites More sharing options...
Josh Posted May 21, 2011 Share Posted May 21, 2011 This will do it: require("scripts/class") local class=CreateClass(...) function class:CreateObject(model) local object=self.super:CreateObject(model) function object:Update() self.model:Animate(AppTime()*0.05,1,0,1) end end Not that you also need the animation shader applied in the material. See this lesson: http://www.leadwerks.com/werkspace/page/Documentation/LE2/tutorials/_/programming/cpp/introduction-to-animation-r11 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...
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.