Skip to content

A graphics engine built from scratch in Java. Supports 3-dimensional lighting and animation. Custom Motion Description Language (MDL) provided by Mike Zamansky.

Notifications You must be signed in to change notification settings

kyeah/3D-Engine

Repository files navigation

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

About

A graphics engine built from scratch in Java. Supports 3-dimensional lighting and animation. Custom Motion Description Language (MDL) provided by Mike Zamansky.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages