Get Started

  • 2022.2
  • 04/11/2022
  • Public Content

Run a Sample with Intel® OSPRay

This walkthrough demonstrates how to run an interactive sample application with Intel® OSPRay from the
Intel® oneAPI Rendering Toolkit
Render Kit
for macOS*
: Configure your system.
To run the application:
  1. Open a terminal.
  2. If you did not set up oneAPI toolkit environment permanently: Set up environment variables:
    • For root or sudo users:
      . /opt/intel/oneapi/
    • For non-root users:
      . ~/intel/oneapi/
    See Set up Environment Variables for other options.
    If you installed the Render Kit to a custom location, make sure to replace
    (for root or sudo users) or
    (for non-root users) with the custom installation path before running the command.
  3. Go to a writable directory and create a directory to store supporting files.
    For example, create the
    under the home directory
    cd ~
    mkdir rk_gsg
    cd rk_gsg
  4. Run the
    sample application:
A new GUI window will open with multiple simple scenes composed of basic geometry types, lights, and volumes. You can edit the scene by clicking the drop-down buttons.

Controls and Tips

You can control the scene view with a mouse as follows:
  • Right-click to move the camera in and out from the look-at point.
  • Left-click to rotate.
  • Use a mouse wheel to pan.
    This also reports the geometry ID for intersected geometry under the cursor in a terminal.
  • Drag and drop to move the camera.
You can also use the following keyboard controls:
  • Press
    to show/hide the user interface.
  • Press
    to quit the application.
You can also control the scene from the control pane:
  • Try different geometric and volumetric scenes. View them under different renderers.
  • Cancel frame on interaction allows for more continuous animation during navigation.
  • Enable showing depth to show relative depth at the ray intersection with the scene from each pixel location of the camera.
  • Enable showing albedo to show the albedo of the material at the ray intersection with the scene from each pixel location of the camera.
  • Enable denoiser to denoise each frame with Intel® Open Image Denoise.
    This box is available if the
    shared library is available with your distribution with Intel OSPRay.
    : The denoiser might work be better observed with some geometries than with others. For example, the
    predefined scene set shows convergence with denoise more clearly.
    is not available in your distribution, you can get it using the Superbuild as described in Next Steps.
  • Change pixel filter to review the different anti-aliasing methods available in the API.
  • Change pixel samples, which is the number of scene samples per pixel in one accumulation. Higher samples results in longer rendering times, but faster convergence per accumulation. Less samples per pixel results faster application performance.
  • Change maximum path length parameter, which is the number of path reflections or refractions per sample. A higher number is more accurate, while a lower number is faster to compute.
  • Change roulette path length, which is the threshold or reflections or refractions at which to randomly end the traversal of a ray. A higher number is more accurate, while a lower number is faster to compute.
  • Change sample contributions. Sample contribution less than the
    will not affect the scene. A lower number is more accurate, while a higher number is faster to compute.
  • Change camera motion blur to control the blur affect while moving the camera. A value of 0 turns the blur off.
  • Enable Render Sun Sky to turn on a controllable scene horizon. The scene will reflect the horizon as configured from GUI pop-up parameters.

Next Steps

Product and Performance Information


Performance varies by use, configuration and other factors. Learn more at