(0018033)
|
Tagir Bakirov
|
2009-10-08 13:18
(edited on: 2009-10-08 13:23) |
|
We are now using VTK in our own Win32-based project for the purposes of data visualization. To make it more eye-candy we tried turning on the multisampling in "vtkWin32OpenGLRenderWindow", but it didn't work due to the obvious reasons described above.
Thus I implemented a multisampling technique in a class I called "vtkWin32OpenGLRenderWindowMultisampled" by making it a direct descendant of "vtkWin32OpenGLRenderWindow" and modifying a couple of inherited methods there.
The technique itself is loosely based on a tutorial from NeHe Productions ( http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=46 [^] ) and uses some Win32-specific GDI calls and some other OpenGL-related stuff found on the Internet.
The solution in general tends to be "quick and dirty", but has been positively tested on a set of machines with different video hardware under different Windows versions (including WinXP 32-bit, WinXP 64-bit, Win7 64-bit).
I hope the code will help to implement this nice feature and make VTK better and more popular in Windows environment. Believe me, hardware-accelerated multisampling is a thing!
|
|