Forum

how to scale object in different axis?

28 January 2016 14:15
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
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.
The Founder | Twitter | Facebook | Linkedin
29 January 2016 04:26
Ответ на сообщение пользователя 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
Also you can use an armature animation to scale object in one axis.
29 January 2016 12:36
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.
The Founder | Twitter | Facebook | Linkedin
 
Please register or log in to leave a reply.