philip
unread,Jul 2, 2010, 10:01:48 AM7/2/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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