简体   繁体   English

如何为Xbox(使用XNA)安装480p(宽屏)?

[英]How to fit 480p(widescreen) for Xbox (using XNA)?

I read about the Xbox 360 Programming Considerations on MSDN and it shows that both 480p(widescreen) and 480p(normal) uses 640x480. 我在MSDN上了解了Xbox 360编程注意事项,它显示480p(宽屏)和480p(常规)都使用640x480。 My game works fine on all 16:9 resolutions and it also works on other resolutions, but the game looks very different (because it's in 2D). 我的游戏可以在所有16:9分辨率下正常工作,也可以在其他分辨率下工作,但是游戏看起来却大不相同(因为它是2D分辨率)。 I tested it on 720p and 1080p and I found that if I set the resolution to 1080p it still works on 720p TVs, and everything looks exactly the same as 1080p (I think Xbox automatically resize the entire game to fit 720p). 我在720p和1080p上进行了测试,发现如果将分辨率设置为1080p,它仍然可以在720p电视上使用,并且所有内容看起来都与1080p完全相同(我认为Xbox会自动调整整个游戏的大小以适合720p)。

But I want to know what other aspect ratios that Xbox supports. 但是我想知道Xbox支持哪些其他纵横比。 Also I'm wondering how to fix the resolution to make it fit on 480p(widescreen) 我也想知道如何固定分辨率以使其适合480p(宽屏)

EDIT: I'm currently using the code below (since my game is designed for 1080p) 编辑:我目前正在使用下面的代码(因为我的游戏是为1080p设计的)

    float ratio = graphics.GraphicsDevice.DisplayMode.AspectRatio;
    if (ratio == (float)16 / (float)9)
    {
        graphics.PreferredBackBufferWidth = 1920;
        graphics.PreferredBackBufferHeight = 1080;
    }
    else if (ratio == (float)4 / (float)3)
    {
        graphics.PreferredBackBufferHeight = 1080;
        graphics.PreferredBackBufferWidth = 1440;
    }
    else
    {
        graphics.PreferredBackBufferHeight = 1080;
        graphics.PreferredBackBufferWidth = (int)(1080 * ratio);
    }

"The Xbox 360 system supports both HDTV and normal television sets, at multiple resolutions (480p, 720p, 1080i, and 1080p), and multiple aspect ratios (4:3, 16:9, and 16:10). The console automatically scales the output of a game to the resolution of the owner's display, and if the game is using a widescreen aspect ratio, the console automatically adds "black bars" (letterboxing) if the owner's display is not widescreen." “ Xbox 360系统同时支持HDTV和普通电视机,具有多种分辨率(480p,720p,1080i和1080p)和多种纵横比(4:3、16:9和16:10)。控制台会自动缩放游戏的输出与所有者的显示器的分辨率有关,如果游戏使用的是宽屏宽高比,则如果所有者的显示器不是宽屏,则控制台会自动添加“黑条”(letterboxing)。

Source: http://msdn.microsoft.com/en-us/library/bb203938.aspx 资料来源: http : //msdn.microsoft.com/en-us/library/bb203938.aspx

If the game resolution is down from the XBox360, go to the settings on the Xbox,and find the screen size and fit it to your TV. 如果游戏分辨率低于XBox360,请转到Xbox上的设置,然后找到屏幕尺寸并将其安装到电视上。 If this doesn't work and you don't see a better improvement try adjusting your TV to better perform by using contrast/brightness/sharpness/colors. 如果这不起作用,并且您看不到更好的改善,请尝试使用对比度/亮度/清晰度/颜色来调整电视以使其表现更好。 If this still doesn't improve the way the game looks then its probably the games mapping. 如果仍然不能改善游戏外观,则可能是游戏映射。 If the maps were set higher, it would look better, but would slow down the rendering from the system degrading its integrity over time, until you experience a critical shut-down or the "ring-of-death". 如果将地图设置得更高,它将看起来更好,但是会随着时间的推移降低系统的渲染速度,从而降低其完整性,直到您遇到严重的关闭或“死机”。 So sometimes the textures will look imperfect, or the bump maps will look bad, it's because the console can only handle so many variables and renderings at a time. 因此有时纹理看起来不完美,或者凹凸贴图看起来很糟糕,这是因为控制台一次只能处理这么多的变量和渲染。 Refer to Fallout3, look at the textures, from a distance it will look nice, but up close you will find it difficult to read posters, products, nuka-cola's, bottle caps, etc. I have found a huge list of things I believe could be better, but I am more satisfied when the game just works rather than super-perfections. 参考Fallout3,从远处看纹理,它看起来会很好,但是近距离阅读时,您会发现很难阅读海报,产品,nuka-cola,瓶盖等。我发现了很多东西,我相信可能会更好,但是当游戏可以运行而不是超级完美时,我会感到更加满意。

This might be off the topic a-bit, but I thought I should get involved in something today. 这可能有点话题,但是我认为我今天应该参与其中。

Sincerely: Joel DV c2002-2013 真诚的:Joel DV c2002-2013

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM