www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: kiffa on November 06, 2013, 06:34:35 am

Title: Is there a method to scale obj by just one dimension?
Post by: kiffa on November 06, 2013, 06:34:35 am
I found there is only a Object3D.scale(); Are there some methods like scaleX()\scaleY()\scaleZ()... etc?
Title: Re: Is there a method to scale obj by just one dimension?
Post by: EgonOlsen on November 06, 2013, 06:45:51 am
No. You can do it by tweaking the rotation matrix directly, but that will also have an influence on an objects normals whichight lead to strange lighting.
Title: Re: Is there a method to scale obj by just one dimension?
Post by: raft on February 17, 2014, 10:13:32 am
what about scaling the object with an IVertexController? will it also suffer from ligting artifacts? unless of course normals are re-calculated.
Title: Re: Is there a method to scale obj by just one dimension?
Post by: EgonOlsen on February 17, 2014, 12:19:02 pm
what about scaling the object with an IVertexController? will it also suffer from ligting artifacts? unless of course normals are re-calculated.
That should work more or less, because the normals don't scale in that case.