Author Topic: scaling one axis  (Read 1086 times)

Offline haijin

  • byte
  • *
  • Posts: 37
    • View Profile
scaling one axis
« on: June 07, 2011, 12:00:43 am »
I have this polygon that I want to shrink/expand on one axis. It is meant to represent a sea wake. I am currently just translating it (see current version of Run!) but I think it would be a nicer effect with scaling.
As far as I can tell, the scaling method applies to all coordinates... and the only alternative I can find is using a vertex controller but I'd rather avoid doing this kind of modifications constantly during runtime (added cost of mesh modification plus I guess there are SimpleVectors created that would then increase gc time)... is there any other option to scale one axis?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: scaling one axis
« Reply #1 on: June 07, 2011, 01:05:34 pm »
You can also tweak the rotation matrix by yourself to do non-uniform scaling. This might cause Stränge lighting and doesn't works too well when combined with the uniform scaling, but it should work. You should be able to find some posts about it in support section of desktop jPCT.
« Last Edit: September 12, 2011, 09:00:00 pm by EgonOlsen »