a.d.m

I'm sure the answer is right in front of my face, but I just can't seem to figure it out. I scoured all the various RenderStates in the GraphicsDevice and just can't figure it out. Can anyone let me know how I turn on antialiasing in my XNA app


Re: XNA Framework How do I turn on antialiasing?

Kris Nye

This should be enabled by default, but here is how to explicitly set full screen anti-aliasing on:

GraphicsDevice.RenderState.MultiSampleAntiAlias = true;





Re: XNA Framework How do I turn on antialiasing?

a.d.m

hmm... I guess the problem is with my video card. In the control panel, antialiasing is set to Application-controlled. When I force 2x or 4x or 8x antialiasing from the control panel, my XNA app antialiases just fine. When I leave it on Application-controlled, its jaggy-city.

EDIT: my video card in question is an Nvidia GeForce Go 6200, stuck with driver version 70.87 until hell freezes over and Sony decides to update the driver




Re: XNA Framework How do I turn on antialiasing?

EricGu

I see this same behavior. Setting to 2x with a custom profile gives me what I want, but application controlled leads to no anti-aliasing.

I have a Radeon x600 series card.





Re: XNA Framework How do I turn on antialiasing?

Kris Selden

You need to also set the MultiSampleType:

GraphicsDevice.PresentationParameters.MultiSampleType = MultiSampleType.FourSamples;

GraphicsDevice.RenderState.MultiSampleAntiAlias = true;