How to make objects visible in a keyframe animation and export that animation.

08 February 2018 16:17
I've never been working with blender or blend4web, so that could be a really easy question. I just want to make a keyframe animation with three objects. Each of them should become visible at a certain frame. In the editor it works fine. I just changed the "eyeball" and "camera" icons on and off at the keyframes, pressed play and it played the result I wanted to achieve. But when I export it as html those changes on the "eyeball" and "camera" icons have no effect ( other changes, for example changing the location values are working and are producing an animation in the exported html). All the objects are visible in the html already at startup.
How can I achieve a working animation in the html with objects that are invisible at start and become visible at a certain frame? (The "Apply Default Animation" is already on)
10 February 2018 08:53
I don't think B4W supports visibility keyframes to my knowledge, but another way to do this is with logic nodes. To have your object invisible initially, select "Hidden" under rendering properties. In the logic editor add a delay node for however long you want it invisible (it's in seconds so you gotta figure that out). Then connect that to a "Show Object" node. Before you export make sure the logic editor is activated.
Hope this helps!
10 February 2018 15:46
That works fine! Thank you ToothpasteBruva!
Please register or log in to leave a reply.