Shawn Hargreaves Blog
Windows Phone includes a hardware image scaler. This allows XNA games to choose what backbuffer resolution they want to draw to, regardless of the physical screen size. You draw at whatever size you like, then the scaler adjusts the resulting image to fit the screen. This is similar to how the video output works on Xbox 360.
Note: scaling was not implemented in the CTP release of the Windows Phone Emulator, but is fully supported in our recent beta version.
Thanks Sean, is this XNA only or does it work for Silverlight too?
Oops meant Shawn of course sorry :(
This is an XNA Framework feature. I don't believe it is supported in Silverlight, but I'm by no means an expert on Silverlight so I could be wrong!
Playing with PreferredBackBufferWidth and Height, I'm not getting my game stretched on the emulator (though I can see the black bars if I change the aspect ratio).
I hope it's just a limitation of the emulator, or should I compute sprite positions and dimensions based on the PreferredBackBufferWidth and Height ?
Are the DX9 features usuable at all or we have to go down to DX8 level of visual effects to get games working at acceptable frame rates ?
Thanks
"Scaling uses a high quality filter (better looking than GPU bilinear filtering)"
What if we intentionally want bad (Photoshop calls it "nearest-neighbor") filtering? Is there an easy way to accomplish this?
> What if we intentionally want bad (Photoshop calls it "nearest-neighbor") filtering?
The hardware scaler is not configurable, so if you want more control over the filter type, you'll have to implement scaling some other way rather than using this feature.
Thanks Shawn, I was just looking for a way to simulate retro-style graphics, which I think would amount to changing the display mode. Of course, I don't think that's possible. :)