Author Topic: Is there a method to scale obj by just one dimension?  (Read 959 times)

Offline kiffa

  • long
  • ***
  • Posts: 199
    • View Profile
Is there a method to scale obj by just one dimension?
« 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?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11746
    • View Profile
    • http://www.jpct.net
Re: Is there a method to scale obj by just one dimension?
« Reply #1 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.

Offline raft

  • quad
  • ******
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
Re: Is there a method to scale obj by just one dimension?
« Reply #2 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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11746
    • View Profile
    • http://www.jpct.net
Re: Is there a method to scale obj by just one dimension?
« Reply #3 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.