Forum

how to scale object in different axis?

28 January 2016 14:15 #6899
Hey!
The transform API only provide a function to scale object in all axis,if i want to just scale object in one axis,what should i do?
28 January 2016 19:07 #6912
Hi,
The transform API only provide a function to scale object in all axis,if i want to just scale object in one axis,what should i do?
Currently Blend4Web supports only uniform scale. You can probably try to achieve this using morphing or by overriding object's geometry.
Development Lead | Twitter
29 January 2016 04:26 #6919
Ответ на сообщение пользователя Yuri Kovelenov
Hi,

Currently Blend4Web supports only uniform scale. You can probably try to achieve this using morphing or by overriding object's geometry.
Thank you for your reply!
I think override object's geometry may be the solution,but i don't konw how to use the method `
override_geometry(obj, mat_name, ibo_array, positions_array, smooth_normals)
`,especially the param "ibo_array", i can't find any more document about it, hope more specific demo or comment will be provided.
29 January 2016 09:54 #6925
Also you can use an armature animation to scale object in one axis.
Blend4Web developer
29 January 2016 12:36 #6933
I think override object's geometry may be the solution,but i don't konw how to use the method `
Please take a look at this code snippet.
Development Lead | Twitter
 
Please register or log in to leave a reply.