Simple Java Ray Tracer
Java
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
blas
entities
gradle/wrapper
raytracer
scenes
src/main
.gitignore
.travis.yml
README.md
build.gradle the core needs slf4j, leaving gui to provide logging impl Jun 12, 2018
gradlew
gradlew.bat
settings.gradle
test-render.png

README.md

Simple Java Ray Tracer

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 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.