Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.33 KB

File metadata and controls

42 lines (27 loc) · 1.33 KB

Demo for Volume Raycasting using ModernGL

A simple Volume Raycasting demo using PyQT5 and ModernGL. The demo requires OpenGL >=4.1 and has been tested on OSX (planned Linux/Win)

Author: Ulrich Eck https://github.com/ulricheck

Code for OpenGL Camera Control copied from: https://github.com/pyqtgraph/pyqtgraph/blob/develop/pyqtgraph/opengl/GLViewWidget.py

Code and example data for Volume Raycasting copied from: https://github.com/toolchainX/Volume_Rendering_Using_GLSL

Dependencies

  • Python >=3.5
  • PyQt5 (>=5.6)
  • PyOpenGL
  • numpy
  • ModernGL wrapper docs
  • Pyrr Math library docs

Installation

git clone https://github.com/ulricheck/ModernGL-Volume-Raycasting-Example.git
cd ModernGL-Volume-Raycasting-Example
pip3 install -r requirements.txt

Running the demo

python3 volume_raycasting_example.py

This will open an opengl window

Further Reading