I'm attempting to convert my UI code that is successfully using TransformedTextured to code that uses PositionTextured so that my imagry changes size to fit when resolution is changed.
From my understanding I simply need to set my view and world matrices to Identity and then setup my projection matrix to fit the screen.. I've put together a little test app that does it as such.
device.Transform.World = Matrix.Identity;
device.Transform.View = Matrix.Identity;
device.Transform.Projection = Matrix.OrthoOffCenterLH(0, 640, 480, 0, 0, 1);
However I'm not getting the results I expect.
Does anyone have any ideas?
(I've attached the complete source to my test)
From my understanding I simply need to set my view and world matrices to Identity and then setup my projection matrix to fit the screen.. I've put together a little test app that does it as such.
device.Transform.World = Matrix.Identity;
device.Transform.View = Matrix.Identity;
device.Transform.Projection = Matrix.OrthoOffCenterLH(0, 640, 480, 0, 0, 1);
However I'm not getting the results I expect.
Does anyone have any ideas?
(I've attached the complete source to my test)
Attachments
Last edited: