GameKit Resolution Issue
by John Bura · in Torque X 2D · 06/15/2010 (11:22 am) · 2 replies
Im loving the Gamekit for XNA.
However, for some reason when I put it in the pro version the resolution is squished horizontally. I have looked for a way to fix this but Im stumped.
Any help is appreciated :)
However, for some reason when I put it in the pro version the resolution is squished horizontally. I have looked for a way to fix this but Im stumped.
Any help is appreciated :)
Torque 3D Owner Henry Shilling
Smokin Skull
If you are building for 1280x720 (xbox HD) then in the builder you need to set your camera to some ratio equal to that, I use 128x72 go figure. I also basically do everything in 1280x720, under Edit select preferences. Set the Design Resolution to 1290, 720.
In your project in C# look at the file torqueSettings.xml. You need to set the resolution in there like so:
<WindowsGraphicsManagerSettings> <PreferMultiSampling>false</PreferMultiSampling> <PreferredBackBufferHeight>720</PreferredBackBufferHeight> <PreferredBackBufferWidth>1280</PreferredBackBufferWidth> </WindowsGraphicsManagerSettings>OK if you want antialiasing on set PreferMultiSampling to true.
Now if you do this you do not need to worry about the xbox resolution it will always be 720p and show in a box on non hd tvs.
<XboxGraphicsManagerSettings> <PreferMultiSampling>false</PreferMultiSampling> <PreferredBackBufferWidth>1280</PreferredBackBufferWidth> <PreferredBackBufferHeight>720</PreferredBackBufferHeight> <UseDisplaySizeForBackbuffer>false</UseDisplaySizeForBackbuffer> </XboxGraphicsManagerSettings>if you do not do this on the xbox either you will always be in 800x600 or worse, it will use the backbuffer and if the useer has their xbox set to 1080 then stuff gets real. There are some issues with the xbox in 1080 and I just prefer to not deal with it.