SharpDX - TriangleList renders antialiased but LineList renders with jagged edges

Started by
5 comments, last by gomidas 6 years, 7 months ago

I'm initializing the swap chain with SampleDescription(4, 0) and the output is showing triangle primitives rendered with 4x antialiasing as expected, but the line list is being rendered with no antialiasing at all. What could cause this? See below:

2014-02-23_0058.png

Advertisement

DirextX antialliasing is acceptble only for triangles no lines and points

I see... do you have a source I could refer to for further information?

Directx 11 Rasterization state: http://msdn.microsoft.com/en-us/library/windows/desktop/ff476198(v=vs.85).aspx

In the state there's a specific option named: AntialiasedLineEnable

I'm not sure about the name in SharpDx though unsure.png

Hope this helps.

-MIGI0027

FastCall22: "I want to make the distinction that my laptop is a whore-box that connects to different network"

Blog about... stuff (GDNet, WordPress): www.gamedev.net/blog/1882-the-cuboid-zone/, cuboidzone.wordpress.com/

Directx 11 Rasterization state: http://msdn.microsoft.com/en-us/library/windows/desktop/ff476198(v=vs.85).aspx

In the state there's a specific option named: AntialiasedLineEnable

I'm not sure about the name in SharpDx though unsure.png

Hope this helps.

-MIGI0027

Right you are, sir. In SharpDX it appears to be a property of the RasterizerStateDescription, which is used to initialize a new RasterizerState object, which is then assigned to the ImmediateContext object, which is a property of the DeviceContext.


                var rasterizerStateDescription1 = new RasterizerStateDescription {
                    CullMode =CullMode.Front,
                    FillMode = FillMode.Solid,
                    IsFrontCounterClockwise =true,IsAntialiasedLineEnabled=true, IsMultisampleEnabled=true
                };

 

Multisampling must be enabled too.

This topic is closed to new replies.

Advertisement