Questions tagged [multisampling]

148 questions
28
votes
3 answers

How to use Multisampling with OpenGL FBOs

I'm trying to enable mutlisampling and alpha-to-coverage for an FBO. Using the default framebuffer, all I have to do is call glEnable(GL_MULTISAMPLE) and glEnable(GL_SAMPLE_ALPHA_TO_COVERAGE). However, I am unable to achieve the same effect using my…
GraphicsMuncher
  • 4,583
  • 4
  • 35
  • 50
13
votes
1 answer

What does my choice of GLFW_SAMPLES actually do?

What does setting this variable do? For instance, if I set it to 4, what does that mean? I read a description on glfw.org (see here: GLFW Window Guide) under the "Framebuffer related hints" section. The manual says "GLFW_SAMPLES specifies the…
Mike Bell
  • 255
  • 1
  • 3
  • 7
12
votes
1 answer

How does multisample really work?

I am very interested in understanding how multisampling works. I have found a large literature on how to enable or use it, but very little information concerning what it really does in order to achieve an antialiased rendering. What I have found, in…
user815129
  • 2,236
  • 2
  • 20
  • 40
10
votes
1 answer

How to use multisampling with an MTKView?

I'm trying to get multisampling working with MTKView. I have an MTKView with a delegate. I set the view's sampleCount property to 4. I create a pipeline state descriptor with the rasterSampleCount set to 4, and use that to make a render pipeline…
user1118321
  • 25,567
  • 4
  • 55
  • 86
9
votes
2 answers

glReadPixels from FBO fails with multisampling

I have an FBO object with a color and depth attachment which I render to and then read from using glReadPixels() and I'm trying to add to it multisampling support. Instead of glRenderbufferStorage() I'm calling glRenderbufferStorageMultisampleEXT()…
shoosh
  • 76,898
  • 55
  • 205
  • 325
9
votes
2 answers

WebGL Framebuffer Multisampling

I know webgl can antialias or multisample stuff you render to the screen to avoid hard edges, but when I used a framebuffer it didnt do it anymore and there were a bunch of jagged edges on the screen. How can I make the framebuffer use…
notrota
  • 1,048
  • 10
  • 21
8
votes
1 answer

OpenGL - How to draw to a multisample framebuffer and then use the result as a normal texture?

I'm developing a little gamedev library. One of the elements of this library is a Canvas (offscreen drawing area), which is implemented through an OpenGL framebuffer. So far, everything's been good, I generate a texture, attach it to a framebuffer,…
faiface
  • 457
  • 1
  • 5
  • 8
8
votes
1 answer

How do I enable multisampling (antialiasing) in OpenGL with Qt5?

How do I enable multisampling when I create the window? How should I initialize OpenGL to match?
Cameron
  • 96,106
  • 25
  • 196
  • 225
7
votes
1 answer

FBO Blitting is not working

I'm trying to render a multisampled scene to texture, here is the code I'm using. I'm getting a black screen. I check the fbo completeness at the end of init, and they report that both fbo's are complete. void init_rendered_FBO() { …
Steven Lu
  • 41,389
  • 58
  • 210
  • 364
7
votes
4 answers

where is GL_MULTISAMPLE defined?

Although I have been discouraged from reading the OpenGL redbook, I am still doing it, because it is the only book designed for beginners, and tutorials and/or documentation don't quite substitute for a book although very important. So much for…
Armen Tsirunyan
  • 130,161
  • 59
  • 324
  • 434
6
votes
1 answer

SDL Multisampling

I've been trying to get SDL FSAA with multisampling working, but it doesn't want to. I started with something simple: SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1); SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 2); But I do the associated gets…
Chad Mourning
  • 608
  • 2
  • 12
  • 25
6
votes
3 answers

How do you use CheckMultisampleQualityLevels and enable multisampling

I'm learning directx 11 and trying to set up multisampling. For some reason every tutorial on the internet disables multisampling and never goes over how to enable it. First: I've searched around and can't find any examples of how to use…
Telanor
  • 4,419
  • 6
  • 29
  • 36
5
votes
1 answer

How to render Framebuffer Objects on multi-sampled textures?

I currently have a rendering engine using multiple passes in which various parts of the image are rendered on textures, and then combined using shaders. It works, and now I would like to activate multi-sampling. I read here (…
PierreBdR
  • 42,120
  • 10
  • 46
  • 62
5
votes
1 answer

Resolution of multi-sampled frame-buffer with multiple color attachments

Trying to implement Anti-aliasing on top of deferred shading, I'm attempting to use multi-sampled render buffers and then resolve the samples with a buffer-blit pass. As is traditional in deferred shading, I am rendering the scene with a dedicated…
5
votes
2 answers

How do you activate multisampling in OpenGL ES on the iPhone?

I'm experimenting w/ improving the "resolution" of an OpenGL ES based app. Apple mentions here (developer.apple.com) that OpenGL ES in iOS 4 supports multisampling... and this can improve the graphics somewhat. How do you enable multisampling?
MrDatabase
  • 43,245
  • 41
  • 111
  • 153
1
2 3
9 10