Skip to content

ulricheck/ModernGL-Volume-Raycasting-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Medical Volume Raycasting Example using Python / ModernGL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages