Immersive Visualization / IQ-Station Wiki
This site hosts information on virtual reality systems that are geared toward scientific visualization, and as such often toward VR on Linux-based systems. Thus, pages here cover various software (and sometimes hardware) technologies that enable virtual reality operation on Linux.
The original IQ-station effort was to create low-cost (for the time) VR systems making use of 3DTV displays to produce CAVE/Fishtank-style VR displays. That effort pre-dated the rise of the consumer HMD VR systems, however, the realm of midrange-cost large-fishtank systems is still important, and has transitioned from 3DTV-based systems to short-throw projectors.
ImmersiveParaView
Immersive ParaView
ParaView is a good general-purpose visualization tool built on VTK (Visualization ToolKit). Recently, virtual reality features have begun to be incorporated into the main trunk of ParaView. This page describes how to compile, configure, and run ParaView with these extensions.
How to Run Immersive ParaView
- if rendering to more than one immersive screen make sure the MPI daemon is running
% mpd &
- make sure the PARAVIEW_ROOT environment variable points to your Build directory
% export PARAVIEW_ROOT=/opt/ParaView-3.14.1/Build
- or
% setenv PARAVIEW_ROOT /opt/ParaView-3.14.1/Build
- Run the ParaView server application (perhaps in the background)
- This is where the screen configuration file is specified (see below)
- Again, the use of MPI is only needed when running more than one screen, so your choices are:
% ${PARAVIEW_ROOT}/bin/pvserver /path/iqstation.pvx &
- or
% (mpiexec -np 2 ${PARAVIEW_ROOT}/bin/pvserver /path/iqstation.pvx &)
- NOTE: you can skip this step altogether if you specify this command in the "Command" method of server Startup in the configuration of the server (done in the ParaView client). You should use complete paths for the server executable and .pvx file to be safe.
- Run the ParaView client w/ stereo and tracker options
% ${PARAVIEW_ROOT}/bin/paraview --stereo --stereo-type="Checkerboard" --server=local-pvserver
- or
% ${PARAVIEW_ROOT}/bin/paraview --stereo --stereo-type="Checkerboard" --server=local-pvserver
- Other common options for
stereo-type
:- "Anaglyphic"
- "CrystalEyes" (ie. active stereo glasses)
- Other common options for
How to Test-Run Immersive ParaView
This example shows how to run Immersive ParaView in a desktop window in order to test tracking. (This test does not require the use of MPI.)
- Set the environment variable to create windowed-output from the ParaView server
% setenv PV_ICET_WINDOW_BORDERS 1
- Run the ParaView server application
% paraview --server=local-pvserver
How To Build Immersive ParaView
- Install missing dependencies
- Commonly needed packages include:
- qt4-devel
- mpich2-devel
- NOTE: if you compile MPI yourself, you MUST compile the shared-object libraries
- ...
- Commonly needed packages include:
- Download the latest source (3.14.1 as of this writing):
- NOTE: the pre-built packages do not contain the new position-tracking plugins
- Untar/unzip the source ball
- E.g.
% tar -zxf ParaView-3.14.1.tar.gz
- E.g.
- Make a build directory:
% mkdir ParaView-3.14.1/Build
% cd ParaView-3.14.1/Build
- Use Cmake (or ccmake) to enable the immersive options:
- General options:
- set BUILD_SHARED_LIBS to ON
- set PARAVIEW_USE_MPI to ON
- set PARAVIEW_ENABLE_PYTHON to ON
- Immersive Interface options:
- set PARAVIEW_BUILD_PLUGIN_VRPlugin to ON
- set VRPN_INCLUDE_DIR appropriately (perhaps "/usr/local/include")
- set VRPN_LIBRARY appropriately (perhaps "/usr/local/lib/libvrpn.a")
- Now make the application
- hit 'c' to configure
- if you get an error message page: hit 'e' to exit that page
- NOTE: if you have QT 4.7.x installed, ParaView can be built, but you will get a warning that you are not using QT version 4.8.0 -- you can ignore this
- NOTE: you may get an error message that you now need to set values for MPI_C_INCLUDE_PATH and MPI_C_LIBRARIES -- if you set these, hit 'c' again
- hit 'g' to generate the makfiles
- run make
% make -j 8
- General options:
How to Configure Immersive ParaView
Kitware also maintains a wiki site with instructions on how to use ParaView on a VR display.
But here are some things to keep in mind:
- ParaView is "unit-less", so whatever units you choose will affect the size of how they are rendered.
- Presently: using "feet" as the units in the
.pvx
file is probably the best choice.
- Presently: using "feet" as the units in the
- ParaView is Y-UP, and Z-towards you (i.e. out of the screen)
- Things don't seem to work well if a screen is located on the Z=0 plane (and that may be true of other planes as well).
- Tracking only works on the views rendered by
pvserver
not theparaview
client application.
Issues
These may be issues related directly to the new immersive features of ParaView, or they may just be bugs that were encountered as we work through the needs of ParaView for immersive users.
- BUG: stereo appears in the main PV window, even though that is typically a mono-screen -- so question is, how to control which windows are stereo, and which are not.
- Answer: Stereo-mode for the "pvserver" windows should be specified in the ".pvx" file, not inherited from the master "paraview" client.
- BUG: When running with full-screen pvserver renderings, ParaView (or QT controlled by ParaView, or maybe down in the VTK library) disables all window movement and keyboard input for all other windows (even the non-ParaView ones)! Of course, since it disables text into ParaView itself, that makes it hard to type in parameters. This is definitely a bug! One workaround is to use Alt-Ctrl, and even though the other windows don't appear, it can cause keyboard input focus to be placed in the specified window.
- the "--server=<server name>" option takes a name as assigned in the server configurator, not an actual machine name or address
- Scroll wheel moves objects in Z (i.e it's not altering their size)
- BUG: When a server configuration is created as a "Command Line" version, but no command is give, ParaView core-dumps from an ASSERT -- rather than say: put a warning in the "Output Messages" dialog box.
- There presently is no means of doing side-by-side stereo in VTK/ParaView.
Links to Old Immersive ParaView wiki pages
As the options to CMake and the ParaView command line options are still in a state of flux while the Immersive features migrate from prototype to a more end-user version, changes to the instructions between ParaView releases can also be drastic. So if you happen to be working with an older version of ParaView, and are looking to access the immersive features, then you should try to use the instructions from the page that best matches the version used.
As an aid, here are links to previous versions of this page that were designed for older ParaView releases: