Forum

Non-uniform scaling

01 October 2015 19:51
kit
Is there a way to scale along an axis with the API? TSR and set_scale() only allow for a single number, but if I wanted to stretch an object along the Z-axis, how would I do that?

Thanks
01 October 2015 20:49
Hi,
Is there a way to scale along an axis with the API? TSR and set_scale() only allow for a single number, but if I wanted to stretch an object along the Z-axis, how would I do that?
Although Blend4Web does not support non-uniform scaling, you can easily achieve the stretching effect by using shape keys. Please see this code snippet for an example of how to use them.
The Founder | Twitter | Facebook | Linkedin
01 October 2015 22:31
kit
Thanks. I was hoping for a way to do it procedurally with the new bone API, but I guess that can't really be done
05 October 2015 10:32

Please see this code snippet for an example of how to use them

And also take a look at the example from this thread, please.
 
Please register or log in to leave a reply.