Forum

modifier curve & constraint follow path

05 January 2017 11:57
hello i am new here
i want to move a cylinder along a bezier curve ( using constraint follow path) and in the same time my cylinder take the shape of the curve ( using modifier curve)
it works in blender but not in b4w

can i do it with javascript? is there an api for modifier curve?
thanks for you reply
05 January 2017 23:26
Hi, and welcome to the forum!

Currently, Blend4Web doesn't support procedural animation with curves, but there is an easy workaround. You can bake the animation using a native Blender animation baker. Hit spacebar and type "Bake Action".
06 January 2017 17:25
hello
thanks you for you reply
i have discovered baking
but the problem remains
anyway thanks a lot
06 January 2017 23:35
hello
thanks you for you reply
i have discovered baking
but the problem remains
anyway thanks a lot
It can't be solved using only Blender Baker tool because there's also a mesh modification during moving through a spline. You also need to bake vertex animation, but it's better to recreate this using armature system with simple armature animation.
Here's your file with baked animation:
testmodifiercurve.blend
fara.html
Blend4web and that kind of thing.
08 January 2017 16:50
well i have progress with baking but still have problem
i can ' t loop exactly ( in blender it loops but not in webgl)
and after a while my cylinder goes outside the plan in webgl
09 January 2017 10:39
i can ' t loop exactly ( in blender it loops but not in webgl)
But I can see that in Blender it's doesn't loop too.
Blend4web and that kind of thing.
 
Please register or log in to leave a reply.