www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Irony on August 15, 2014, 01:41:58 pm

Title: Non-uniform scaling
Post by: Irony on August 15, 2014, 01:41:58 pm
It would be really convenient to have a non-uniform scale function for Object3D, something like scale(x,y,z). (I know there are ways to achieve that, but not as comfortable.)
Do you have any plans to implement that someday?
Title: Re: Non-uniform scaling
Post by: EgonOlsen on August 19, 2014, 10:47:44 am
No, that's not likely to happen. Albeit it sounds like a trivial thing, it would require a lot of internal changes and i don't think that it would be worth it. You can consider this a design flaw, but it would be really hard to fix this in the current stage.
Title: Re: Non-uniform scaling
Post by: Irony on August 19, 2014, 11:12:15 am
Ok, thanks for giving a definite answer on that one.
Title: Re: Non-uniform scaling
Post by: EgonOlsen on August 19, 2014, 01:36:24 pm
If you want to apply non-uniform scaling at setup time, you can always tweak the rotation matrix and make the rotations permanent to the mesh (rotateMesh()).
Title: Re: Non-uniform scaling
Post by: Irony on August 19, 2014, 02:51:11 pm
Thanks, I've already found a snippet somewhere on the forums and use that.