-
- Downloads
Update VTK to always use a framebuffer for rendering
Modify VTK so that the render process always uses a framebuffer. The basic approach is that render() calls - Start (pushes the current bindings + binds fb) - DoStereoRender - StereoUpdate() - StereoMidpoint() (blits for crystal eyes) - StereoComplete() - End (pops the bindings) - CopyResultingFrame - stereo pixel processing - Frame() (blits the resulting frame) The depth buffer will be 32 bit fixed unless a stencil buffer is requested. Then it will be 24 depth + 8 stencil. If multisamples is requested VTK will try to create a framebuffer with multisamples. Only one color buffer is created. For stereo rendering the StereoMidpoint must be used to read or blit the left eye prior to starting rendering of the right eye. If you want color or depth values from an external codebase to be used in the rendering process you must write them into the framebuffer prior to calling Render() in VTK. See vtkExternalOpenGLRenderWindow for an example of this. Probably still some optimization that will happen in a further topic once this settles as there are some old methods that no longer really are needed.
parent
77896059
No related branches found
No related tags found
Showing
- Filters/Points/Testing/Data/Baseline/TestVoxelGridFilter.png.sha512 1 addition, 1 deletion...ints/Testing/Data/Baseline/TestVoxelGridFilter.png.sha512
- IO/LAS/Testing/Data/Baseline/TestLASReader_test_2.png.sha512 1 addition, 1 deletionIO/LAS/Testing/Data/Baseline/TestLASReader_test_2.png.sha512
- Rendering/Core/Testing/Cxx/TestEdgeFlags.cxx 0 additions, 1 deletionRendering/Core/Testing/Cxx/TestEdgeFlags.cxx
- Rendering/Core/vtkRenderWindow.cxx 20 additions, 2 deletionsRendering/Core/vtkRenderWindow.cxx
- Rendering/Core/vtkRenderWindow.h 7 additions, 1 deletionRendering/Core/vtkRenderWindow.h
- Rendering/External/vtkExternalOpenGLCamera.cxx 0 additions, 99 deletionsRendering/External/vtkExternalOpenGLCamera.cxx
- Rendering/External/vtkExternalOpenGLCamera.h 0 additions, 5 deletionsRendering/External/vtkExternalOpenGLCamera.h
- Rendering/External/vtkExternalOpenGLRenderWindow.cxx 27 additions, 2 deletionsRendering/External/vtkExternalOpenGLRenderWindow.cxx
- Rendering/External/vtkExternalOpenGLRenderWindow.h 12 additions, 0 deletionsRendering/External/vtkExternalOpenGLRenderWindow.h
- Rendering/OpenGL2/vtkCocoaRenderWindow.mm 1 addition, 21 deletionsRendering/OpenGL2/vtkCocoaRenderWindow.mm
- Rendering/OpenGL2/vtkIOSRenderWindow.mm 0 additions, 1 deletionRendering/OpenGL2/vtkIOSRenderWindow.mm
- Rendering/OpenGL2/vtkOpenGLFramebufferObject.cxx 21 additions, 1 deletionRendering/OpenGL2/vtkOpenGLFramebufferObject.cxx
- Rendering/OpenGL2/vtkOpenGLFramebufferObject.h 2 additions, 0 deletionsRendering/OpenGL2/vtkOpenGLFramebufferObject.h
- Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx 100 additions, 287 deletionsRendering/OpenGL2/vtkOpenGLRenderWindow.cxx
- Rendering/OpenGL2/vtkOpenGLRenderWindow.h 12 additions, 19 deletionsRendering/OpenGL2/vtkOpenGLRenderWindow.h
- Rendering/OpenGL2/vtkOpenGLState.cxx 9 additions, 3 deletionsRendering/OpenGL2/vtkOpenGLState.cxx
- Rendering/OpenGL2/vtkOrderIndependentTranslucentPass.cxx 1 addition, 1 deletionRendering/OpenGL2/vtkOrderIndependentTranslucentPass.cxx
- Rendering/OpenGL2/vtkTextureObject.cxx 51 additions, 4 deletionsRendering/OpenGL2/vtkTextureObject.cxx
- Rendering/OpenGL2/vtkWin32OpenGLRenderWindow.cxx 3 additions, 40 deletionsRendering/OpenGL2/vtkWin32OpenGLRenderWindow.cxx
- Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx 21 additions, 43 deletionsRendering/OpenGL2/vtkXOpenGLRenderWindow.cxx
Loading
-
mentioned in commit 91595233
-
mentioned in issue #17832 (closed)
-
mentioned in commit 7789697d
-
mentioned in issue #17943
Please register or sign in to comment