Virtual tour and high-quality visualization with ParaView 5.6 + OSPRay


There are two common techniques in computer graphics to render surface geometries: Rasterization and Raytracing. By default, ParaView uses the Rasterization technique with OpenGL to display surfaces in real time but Raytracing is far better at rendering high-quality images.

ParaView 5.6.0 was recently released and includes a lot of improvements regarding OSPRay integration (see full release note here). OSPRay is an open-source raytracing renderer developed by Intel and highly optimized for CPUs. Two engines are available: sciviz and raytracer.

This blog post highlights the one specialized for realistic surface rendering – the raytracer engine – used to generate the following video. It shows a virtual visit of a power plant and shows that we can mix high-quality rendering and scientific visualization:

High-quality virtual tour of a power plant room with ParaView 5.6 and OSPRay. Data are (c) EDF.

According to an engineer of EDF: “A way to make accessible simulation results to non-expert audience is to render generated datasets into their real environment. In this context, OSPRay high-quality rendering is part of valuable tools for EDF to strengthen the comprehension of complex phenomena computed by simulation codes.”

OSPRay renderer allow mixing realistic rendering with scientific visualization.

The making of

OSPRay engine supports a lot of materials going from Metal to Glass in order to efficiently render all the materials you can find in the real world.


Examples of materials supported by OSPRay.

In ParaView, materials have to be defined with a JSON file and loaded in ParaView through the “File / Load OSPRay Materials…” menu.

Each material has different specific parameters, documented in the OSPRay documentation. It is important to have in mind that material properties can be uniform on the whole surface or declared through an external image acting as a texture. In the last case, the surface must have texture coordinates (and ParaView has several filters to compute such coordinates if needed). For example, the granular effect of the surrounding surface is created using a normal texture, transforming surface normal direction depending on texture coordinates:

Normal texture used to create a granular effect.

In our video, we used four different types of materials, depicted in this image:

Annotation of the four different materials.

As an example, here is the JSON file used to setup those materials:

The video contains 600 high definition images (1920×1080 pixels), with a high density of rays (300 samples per pixel) in order to completely eliminate the noise. This represents roughly 600 millions primary rays for each image!

For information, the video took approximately 35 hours to be generated with ParaView 5.6.0 on a distant headless Google Cloud compute node with 72 vCPU without GPU (OSMesa enabled).



This work was supported by EDF (Electricité de France)


Video and developments were done by Kitware SAS, France


3 Responses to Virtual tour and high-quality visualization with ParaView 5.6 + OSPRay

  1. Cory Quammen says:

    Fantastic video and images! Excellent combination of scientific visualization and photorealistic rendering.

  2. Kurt Sansom says:

    really nice video! I can see from the video that areas of high curvature the mesh edges are visible, how would you smooth those out?

    • Michael Migliore says:

      Cells on the surface (triangles) are disjoints on purpose. In order to to smooth the surface, they have to be stitched (using the filter Clean) and you have to compute normals (using the filter Generate Surface Normals)

Questions or comments are always welcome!