scaling one axis

Started by haijin, June 07, 2011, 12:00:43 AM

Previous topic - Next topic

haijin

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?

EgonOlsen

#1
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.