Seems like it might do what we're after, but saving to .html did not seem to have the morphing functionality. (please see attached screenshot)
Can anyone share with me how to get the morphing to work on the screen?
Hi, CSCB! Those sliders in blend-file are just drivers for an artist. They are not supported in B4W, but you don't need them to create a scene with morphing. You should create a set of shape keys on a mesh like it was done in that blend-file and then enable the "Export Shape Keys" option on the "Object->Export Settings" panel.
After that to be able to control the morphing you should create the controls for it. Here we have 2 options: do it via API and coding (like in the morphing demo
) or use the Logic Nodes.
If you are not familiar with the Logic Nodes this page will be helpful: logic_editor
. Also, there are many examples how to use this functionality in the SDK, just take a look at the files in the ./blender/interactivity/ and ./blender/dev_interactivity/ folders, especially, at the "./blender/dev_interactivity/set_shape_key.blend" file.
There is a special node Apply Shape Key
, which can be used in combination with other nodes to create an advanced logic, for example: you click a "button" object and then your main model is changed via shape keys.
I also want to add that the Logic Nodes cannot do all the stuff that's available through the coding, so a big project like the aforementioned shoe customizer may require some code writing.