gregjohnson / pvOSPRay

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pvOSPRay

About

pvOSPRay is a ParaView plugin which creates a custom view using vtkOSPRay for rendering. Currently tested using ParaView 4.1.0 on linux using ICC. The code for ParaView, the plugin, and the base VTK code are all contained in the base of the vtkOSRPay repository.

Using Existing modules on Stampede and Maverick

modules are provided for running on TACC's Stampede and Maverick clusters. A system wide release is planned, but for now module files must of custom loaded with the below instructions

Stampede

  • module use /work/01336/carson/opt/modulefiles
  • module load paraview
  • module load pvospray
  • vglrun paraview
  • the plugin should automatically be loaded. Click the "x" on the top right of the window to close the rendering, and select "OSPRay" to create a pvOSPRay rendering view.

Maverick

  • module use /work/01336/carson/opt/maverick/modulefiles
  • module load pvospray (note that this will load qt and paraview/4.1.0
  • vglrun paraview
  • the plugin should automatically be loaded. Click the "x" on the top right of the window to close the rendering, and select "OSPRay" to create a pvOSPRay rendering view.

Building

Prerequisites

OSPRay requires the same tools as building ParaView, such as CMake. Additionally, the plugin with require ISPC and OSPRay which are documented below. It is recommended to use a recent version of the Intel C++ compiler.

Building OSPRay

  • complete directions for building ospray can be found at: http://ospray.github.io
  • git clone https://github.com/ospray/ospray.git path_to_ospray_dir
  • cd path_to_ospray_dir
  • git checkout 1c917bbf87374cbcb907470a82e99abf25b7ebd2
  • download binaries of ispc 1.8.0 from here
  • CXX="icpc" CC="icc" ccmake .
  • click c for configure, set the ISPC_DIR to the directory with the ispc binary. click g to generate.
  • make -j4

Building ParaView

  • download ParaView 4.1.0 source from the website, or click here
  • to paraview_source_dir. We recommend putting paraview_source_dir in the same directory as the OSPRay source dir.
  • cd /Plugins
  • git clone https://github.com/TACC/pvOSPRay.git pvOSPRay
  • cd paraview_build_dir
  • CXX="icpc" CC="icc" ccmake paraview_source_dir . configure. enable PARAVIEW_BUILD_PLUGIN_OSPRayView. you will need to set the relevant OSPRAY_DIR and OSPRAY_BUILD_DIR to path_to_ospray_dir. generate
  • make -j4

Troubleshooting

Note that some older version of ICC may run into issues, there is currently a known issue building the plugin with icc 14.0.1 which is being fixed. If you run into this error in constants.h, remove the instantiation of "True" and "False", and instead change any calls in other files to "TrueTy()" or "FalseTy".

Running

Under Tools->"Manage Plugins" select "Load New..." and navigate to the libOSPRayView.so library. Select OSPRayView and click load selected. Close the plugins window. Click the "x" on the top right of the window to close the rendering, and select "OSPRay" to create a pvOSPRay rendering view.

vtkOSPRay

About

The base VTK code without ParaView is contained in the VTK directory and makes up vtkOSPRay. vtkOSPRay is a VTK module which utilizes Intel's OSPRay ray tracing framework (http://ospray.github.io) for rendering. This is currently bundled with pvOSPRay.

Building

VTK support is built with CMake and tested with the VTK release in ParaView 4.1.0.

About

License:Other


Languages

Language:C++ 95.9%Language:CMake 3.4%Language:C 0.4%Language:Python 0.2%