Is there a method to scale obj by just one dimension?

Started by kiffa, November 06, 2013, 06:34:35 AM

Previous topic - Next topic

kiffa

I found there is only a Object3D.scale(); Are there some methods like scaleX()\scaleY()\scaleZ()... etc?

EgonOlsen

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.

raft

what about scaling the object with an IVertexController? will it also suffer from ligting artifacts? unless of course normals are re-calculated.

EgonOlsen

Quote from: 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.
That should work more or less, because the normals don't scale in that case.