Skip to content
/ pbnj Public

C++ wrapper library around OSPRay to simplify scientific volume rendering

Notifications You must be signed in to change notification settings

seelabutk/pbnj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PBNJ - Peanut Butter N Jelly

C++ wrapper library on top of OSPRay to simplify scientific volume rendering

Provides the following:

  • Data/volume abstraction object
    • we're focusing on volume rendering
    • have one point of contact for data, a Volume object
    • Volume objects hold:
      • DataFile - underlying representation of the loaded data, metadata, statistics, etc. Can read binary and NetCDF files
      • TransferFunction - container for color and opacity maps, attenuation
  • Camera abstraction
    • easier movement of camera
    • direct placement of camera with one function, setPosition()
  • Renderer abstraction
    • can directly create images (PPM or PNG)
    • can save to given buffer
    • can rendering volumes or isosurfaces
  • JSON-based config file
    • communicate with web applications, e.g. Enchiladas/Tapestry

Each PBNJ object (apart from the Renderer at the moment) is designed to be initialized once and reused. This is the base for Enchiladas, as a Volume, Camera, and Renderer can be initialized once. Then a stream of images can be sent to a client.

PBNJ forms the rendering core for the Tapestry project.

The example application simpleVolumeRender demonstrates using PBNJ with a JSON config file.

Documentation is provided and can be built to HTML using Sphinx

About

C++ wrapper library around OSPRay to simplify scientific volume rendering

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages