ResolutionNode seems wrong, here is my suggestion

0 views
Skip to first unread message

philip

unread,
Jul 2, 2010, 10:01:48 AM7/2/10
to sgine-dev

Hi,

This is my resolution node.

trait ResolutionNode2 extends WorldMatrixNode {
def setResolution(width: Double, height: Double) = {
worldMatrix().identity()
worldMatrix().translate(z = -101.0)
worldMatrix().scaleAll(2.0701 / height)
// WHEN the image height is a ODD number then insert this line:
worldMatrix().translate(y = 0.5)
}
}

This seems to be pixel perfect, maybe there is some error but I cannot
see it. Apart from the ODD/EVEN image height.

My screen size is 1920 by 1080 (large monitor).

Thanks, Philip

Hicks, Matt

unread,
Jul 2, 2010, 10:15:28 AM7/2/10
to sgin...@googlegroups.com
Once the new math library is finished we'll probably re-analyze this trait.
Reply all
Reply to author
Forward
0 new messages