Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


SharpDX - TriangleList renders antialiased but LineList renders with jagged edges


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 axefrog   Members   -  Reputation: 890

Like
0Likes
Like

Posted 22 February 2014 - 07:00 PM

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


I'm blogging about my journey to learn 3D graphics and game programming: http://nathanridley.com
I'm also building my own code-first game engine using C#: https://github.com/axefrog/Grasshopper. It's open sourced under a BSD 3-clause license and includes lots of samples that demonstrate how to use the engine.

Sponsor:

#2 8up tuotlo   Members   -  Reputation: 123

Like
0Likes
Like

Posted 23 February 2014 - 02:47 AM

DirextX antialliasing is acceptble only for triangles no lines and points



#3 axefrog   Members   -  Reputation: 890

Like
0Likes
Like

Posted 23 February 2014 - 04:27 AM

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


I'm blogging about my journey to learn 3D graphics and game programming: http://nathanridley.com
I'm also building my own code-first game engine using C#: https://github.com/axefrog/Grasshopper. It's open sourced under a BSD 3-clause license and includes lots of samples that demonstrate how to use the engine.

#4 Migi0027 (肉コーダ)   Crossbones+   -  Reputation: 3326

Like
1Likes
Like

Posted 23 February 2014 - 04:46 AM

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/


#5 axefrog   Members   -  Reputation: 890

Like
0Likes
Like

Posted 23 February 2014 - 05:39 AM

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.


I'm blogging about my journey to learn 3D graphics and game programming: http://nathanridley.com
I'm also building my own code-first game engine using C#: https://github.com/axefrog/Grasshopper. It's open sourced under a BSD 3-clause license and includes lots of samples that demonstrate how to use the engine.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS