Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Enhancement: Multi-sampling #7

Closed
neurolabusc opened this issue Dec 13, 2019 · 1 comment
Closed

Enhancement: Multi-sampling #7

neurolabusc opened this issue Dec 13, 2019 · 1 comment

Comments

@neurolabusc
Copy link

This tutorial was really helpful in helping me port GTK2 OpenGL applications to GTK3. However, the resulting projects do not look as nice, as it is unclear how to enable multisampling with GTK3. This is best seen in high contrast edges, such as white on black. Below on the left is your GTK3 project with the background set to black and the top vertex set to white. Note the jagged appearance of the right triangle. The left is what is generated with GTK2 using x4 multisampling: the aliasing of the edges is much nicer, with partial volume represented by gray. Is there any way to enable multisampling with GTK3 OpenGL?

gtk3_vs_gtk2

@ebassi
Copy link
Owner

ebassi commented Jul 9, 2024

You should ask questions about GTK on the GTK support forum.

Multisampling needs to be enabled when setting up the GL context, and then enabled when rendering on the FBO; you may need an intermediate FBO for that, since GTK3 does not expose API for it.

@ebassi ebassi closed this as completed Jul 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants