This is a port of Matthijs Hollemans' code from Swift 3 to Java developed while following
the respective tutorial. The source code in Swift can also be found in this repo. They both
contain lots of explainations and details.
This is a simple animation demo which shows how to draw a 3D cube without using shaders.
It illustrates what happens on the GPU when we use OpenGL or Metal to draw 3D objects.
The animation is achieved without using any 3D APIs. The only rendering primitive used is a
setPixel()
method which paints individual pixels based on given coordinates and RGBA color
values.
The demo isn't particularly fast or pretty, however, it demonstrates many of the concepts
involved in 3D rendering. Additionally, a slider at the top allows for left and right camera
movement.
Java 14.0.2