A graphics engine built from scratch in Java. Supports 3-dimensional lighting and animation. Custom Motion Description Language (MDL) provided by Mike Zamansky.
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.
animations/gouraudAnim
parseTables
parser
scripts
EdgeMatrix.java
Frame.java
Light.java
MDLReader.java
Makefile
Matrix.java
README.md
VaryNode.java
mdl.java

README.md

Java 3D Graphics Engine and Animator

A 3D graphics engine built from scratch in Java. It generates and displays spheres, boxes, and toruses with z-buffering and backface-culling. Supports translations, rotations, and scaling, with flat and gouraud shading. Able to read scripts written in Jon-Alf Dyrland-Weaver's custom motion description language (MDL) to generate animated gifs.

FEATURES

  • Scanline
  • Z-Buffering
  • Flat Shading
  • Gouraud Shading

Gouraud Animation

Usage

Compile and run a script

 make
 java mdl <mdl filename>

The animation frames will be placed into animations// from there, you can generate a gif:

 animate -delay 3 ./* (suggested delay)

Provided Scripts

  • flatAnim - Flat shading test
  • gouraudAnim - Gouraud shading test
  • gouraudtorus - Torus test
  • discoAnim - Flat shading test with random colors for each polygon
  • animtest - general test
  • hypnotic
  • test

BUGS

Gouraud: shading works for black and white, with black spot at the sphere's rear end. shading is not uniform for colored objects; transitions in layers.

KY 2012