jPCT-AE - a 3d engine for Android => Support => Topic started by: haijin on June 07, 2011, 12:00:43 am

Title: scaling one axis
Post by: haijin 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?
Title: Re: scaling one axis
Post by: EgonOlsen 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.