VTK (Visualization Toolkit)
The Visualization Toolkit (VTK) is open source software for manipulating and displaying scientific data. It comes with state-of-the-art tools for 3D rendering, a suite of widgets for 3D interaction, and extensive 2D plotting capability. VTK is used by academicians for teaching and research; by government research institutions such as Los Alamos National Lab in the US or CINECA in Italy; and by many commercial firms who use VTK to build or extend products.
This integration requires the following:
To use VTK with the Looking Glass, you have to enable the
VTK_MODULE_ENABLE_VTK_RenderingLookingGlassflag in CMake when building.
HoloPlayCore_INCLUDE_DIRto point to header files directory
HoloPlayCore_LIBRARYto point to the dylib file of your corresponding platform library
- 4.(Optional) If you would like to run the examples provided, turn on
There are two different approaches to rendering in the Looking Glass. You can create an OS-specific Looking Glass render window and use it as you would a regular
Testing/Cxx/TestDragon.cxx). Alternatively, you can use the vtkLookingGlassPass as you would normally use a render pass in a renderer (see
If you have enabled
BUILD_TESTINGthen you can run the following:
~/vtk-build $ cd bin
~/vtk-build/bin $ ./vtkLookingGlassCxxTests "TestDragon" -D ../ExternalData/Testing -I
This should create a window inside the Looking Glass display with graphics that produce a holographic image. (Note: you may need to drag terminal window inside Looking Glass before running the command)