Forum

Bone animation help please

20 March 2015 20:12
LINK REMOVED is a test with a cylinder that I would expect to be animated. Please take a look and let me know where I am failing in this simple example, thanks.
20 March 2015 21:35
Hi

It's seems you're using NLA in your demo. NLA only works on the first loaded scene (you may try to change the order in which your scenes being loaded, looks like a hack, but it's not ) That's why I would not recommend to use NLA in your application, this technique is very simple and does not cover all cases you may require in the future.
20 March 2015 22:32
Okay, that works (except lighting of course), but there will be multiple objects loaded via JSON files into the scene, some static, some bone animated, what is the best way to export the bone animated models to load them in as animated JSON files if not using the NLA? Bake the animation and do not click USE NLA for world export? I would prefer to have a main scene file that static and animated JSON files get loaded into.

Another note: When switching the load sequence, the shelving in the room does not get textured, what's up with that?
20 March 2015 22:58
We have a bunch of good examples: https://www.blend4web.com/en/article/63 and https://www.blend4web.com/en/article/66. Check how the skinned animated fan is loaded into the main static scene.

Also I'd recommend to update Blend4Web to the latest version, maybe it'll fix this texture issue.
21 March 2015 00:18
I am updated at home, I am at work now so trying to sneak in some b4w, so don't have time to study and learn, was just looking for an "add this line to your code" answer. I'll study later if time permits.
21 March 2015 12:57
Ответ на сообщение пользователя trepaning
I am updated at home, I am at work now so trying to sneak in some b4w, so don't have time to study and learn, was just looking for an "add this line to your code" answer. I'll study later if time permits.
OK I see. Actually I thought updating is a pretty straightforward and fast procedure, just download and unpack SDK and that's it! About texturing issue. It's actually about lighting, because the second scene has different lamp config. Thus, the shelving is just too dark to see something on it.
21 March 2015 17:14
Like most things with B4W, updating is easy, but also changes to systems at work are monitored, so I just have to make sure the admin is good with it before it happens and we're in a major project at work, so no real time to bother anyone for permissions. There will be more free time at work to do B4W soon. At home, I tested with the updated version and all is well BUT the glow effect does not work in IE when loaded in as JSON (though I have not tested to see if Glow works in an HTML export). I will try to get multiple bone-animated JSON files loaded into a single main scene over the weekend, but am still okay with the solution being handed to me on a silver platter…! :)
21 March 2015 18:42
The silver platter was handed to me in the SDK, so thanks for that. I just had to look at the fan's .blend file and all was revealed. Works great!
21 March 2015 21:25
Here is another bone animation question for you:

As cool as I think this is, and I think it's pretty dang cool

http://www.trepaning.com/b4w/blenderDance.html 10 megs

it is not what I wanted to achieve, so any insight as to what the issue may be is appreciated.

http://www.trepaning.com/b4w/blenderDance.blend 18 megs
21 March 2015 22:27

Ответ на сообщение пользователя trepaning
Here is another bone animation question for you:

As cool as I think this is, and I think it's pretty dang cool

http://www.trepaning.com/b4w/blenderDance.html 10 megs

it is not what I wanted to achieve, so any insight as to what the issue may be is appreciated.

http://www.trepaning.com/b4w/blenderDance.blend 18 megs

Hi Brian,

We currently require both model and armature objects to have an identity transform. You need to apply location and rotation (Ctrl-A) in your case.

blenderDance(1).blend
blenderDance.html
The Founder | Twitter | Facebook | Linkedin
 
Please register or log in to leave a reply.