Skip to content

Ray tracing experimentation in python using numba-cuda JIT compilation

License

Notifications You must be signed in to change notification settings

peter-seres/python-ray-tracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ray_tracing

This repository demonstrates ray tracing implemented in python using CUDA and the JIT compiler of numba. The following scene takes less than 1 ms to render after the code is compiled (using an Nvidia Quadro P1000)

Render example

CUDA Toolkit installation

A compatible installation of the CUDA toolkit is required.

Download from: https://developer.nvidia.com/cuda-toolkit

Usage

  • main.py will produce a PNG image in the /output/ folder.
  • (...) defining a scene (at the moment can be done using the Scene class. Check out scene.py)

Feature to-do list

  • more robust way of defining materials and shader settings
  • refractions
  • scatter
  • anti aliasing
  • cuda - open gl interop real-time display
  • gui for scene management

About

Ray tracing experimentation in python using numba-cuda JIT compilation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages