Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenGL Multisampling Lines

Is there a way to just use multisampling on just lines drawn with OpenGL and not with the entire program? Thanks in advance!

like image 443
Matt Avatar asked Aug 02 '26 04:08

Matt


2 Answers

Try to enable anti-aliased lines with glEnable(GL_LINE_SMOOTH), plus you can also add a glHint(GL_LINE_SMOOTH_HINT, GL_NICEST). These might get you what you want even it's not true multisampled drawing.

like image 114
epatel Avatar answered Aug 03 '26 22:08

epatel


No, unless you can draw all lines into another buffer and then combine this buffer with your main drawing.

like image 42
Dr. Snoopy Avatar answered Aug 03 '26 22:08

Dr. Snoopy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!