[Bf-funboard] Re: making inputs of some nodes resolution independent
Kai Kostack
kaikostack at gmx.net
Thu Nov 16 03:21:16 CET 2006
> You are leaving AspY and AspX out of the maths, and they matter if you
> are getting serious at resolution independance.
you're right! so we have to include the pixel aspect ratio in our calculation. it could look like that:
if (SizeX >= SizeY) baseCoordinate = SizeX; else baseCoordinate = SizeY;
xInPixel = baseCoordinate *(xInPercent /100) *(100 /AspX);
yInPixel = baseCoordinate *(yInPercent /100) *(100 /AspY);
anything else i forgot?
More information about the Bf-funboard
mailing list