Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Simple Java Ray Tracer

Java CI Build Status

This repository was initialised with some Java code I came across back in 2012. It was a blog post by Barak Cohen titled 'Ray Tracing: A Simple Java, Open Source Implementation'. It was posted back in 2008 and provided an attached Eclipse project written by Barak Cohen and Gur Dotan.

The project has been updated to use Gradle and is now separated into sub-modules. This should make it easier to make sense of, as each module has a specific purpose.

The original authors chose to use SWT (The Standard Widget Toolkit) for the gui so I have added the 64-bit swt libs for Windows, Mac and Linux (GTK). The Gradle build will use the appropriate jar when compiling; however this makes the application platform specific.

Some work has been done toward creating a replacement UI using JavaFX.

To build and run the project you'll need Java 11 or newer. Simply run the Gradle wrapper in the projects root directory:

./gradlew run

alt text

On Mac will need -XstartOnFirstThread when running the SWT based UI.


Simple Java Ray Tracer




No releases published


You can’t perform that action at this time.