Notes |
|
(0034368)
|
ThomasKilgus
|
2015-04-23 05:19
|
|
I also attached a screen shot to compare VTK 6.1 and VTK 6.2. |
|
|
(0034369)
|
David C. Lonie
|
2015-04-23 09:11
|
|
Just to clarify, I had not tested this on master, I just mentioned that I'd used multisampling recently in a project and it seemed to be working onscreen, though offscreen rendering with OpenGL was broken.
I did just run your test case, and I can confirm that MSAA is not working correctly onscreen anymore with the current master branch. |
|
|
(0034370)
|
Christoph Kolb
|
2015-04-23 09:50
|
|
This can also be observed in the RGrid example, assuming that the number of multisamples is 8 by default (which is not the case on mac)
Multisampling works after deleting the following two lines:
vtkOpenGL.h:22
#define GL_GLEXT_LEGACY
vtkXOpenGLRenderWindow.cxx:29
#define GLX_GLXEXT_LEGACY
I am sure that this is not a proper fix for that problem, but maybe it helps isolating it.
the second line was introduced in this commit:
http://www.vtk.org/gitweb?p=VTK.git;a=commit;h=800282f2 [^] |
|
|
(0034396)
|
Joachim Pouderoux
|
2015-05-06 11:37
(edited on: 2015-05-06 11:38) |
|
Just tested the provided example on Windows64, with VTK 6.3 (master) and the mesh is definitely anti-aliased here.
|
|
|
(0034397)
|
David C. Lonie
|
2015-05-06 14:12
|
|
Quick update:
I can confirm that the workaround fixes the multisampling, but only the GLX_GLXEXT_LEGACY in vtkXOpenGLRenderWindow.cxx needs to be removed.
This was added recently as newer OpenGL implementations provide a glxext.h header that uses the GLintptr and GLsizeiptr types, but does not define them.
I'm testing out a new workaround that replaces the
vtkXOpenGLRenderWindow.cxx:29
#define GLX_GLXEXT_LEGACY
with
#include "GL/glcorearb.h"
as that header defines these types.
This is consistent with Joachim's report on windows, as this should only affect systems using vtkXOpengLRenderWindow.
The gitlab branch for this issue is at: https://gitlab.kitware.com/vtk/vtk/merge_requests/178 [^] |
|
|
(0034398)
|
David C. Lonie
|
2015-05-06 14:40
|
|
Ok, that didn't work. glcorearb isn't available everywhere.
I'll try just adding the typedefs to our version of glext.h... |
|
|
(0034399)
|
David C. Lonie
|
2015-05-06 14:48
|
|
No go. It gets mangled into a namespace by the parsers and fails to compile with the missing typedef error. |
|
|
(0034400)
|
David C. Lonie
|
2015-05-06 15:37
|
|
Tried updating the glext.h, glxext.h, and wglext.h files that ship with VTK, but there is a mess of colliding typedefs. It looks like a preprocessing issue.
Since the parsing/mangling of these headers will be going away soon, I'll try just defining the missing typedefs as needed rather than trying to fix up the parser that's going away soon. It works fine locally, testing on buildbot farm now. |
|
|
(0034401)
|
David C. Lonie
|
2015-05-07 07:18
|
|
|
|
(0034402)
|
David C. Lonie
|
2015-05-07 15:13
|
|
|