Skip to content

JohnsProject/JGameEngine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JGameEngine

is a lightweight 3D game engine written in Java.

TODO

  • No dependencies
  • Java 1.5+ compatibility
  • Fixed point math only
  • Multithreading
  • Graphics engine
  • Physics engine
  • Audio engine
  • Networking engine
  • Input engine

Graphics engine

  • Scanline triangle rasterization (linear interpolation, no perspective needed as big triangles are culled)
  • Shaders (flat, gouraud and phong shaders)
  • Multithreaded shaders
  • Point, directional and spot lights
  • Directional and spot light shadow mapping
  • Skeletal animation (experimental)
  • Skybox
  • Custom Wavefront OBJ .obj importer
  • Animation importer

Input engine

  • Keyboard
  • Mouse
  • Gamepad
  • Touch

Tests

There are some built in tests for the game engine that can be found in the Tests folder. To run the test just double click the .jar file.

Or open a terminal and type java -jar TestFile.jar

The window size can be configured using the window640x480 argument.

The render resolution can be set as a percentage of the window size using the render75 argument.

Videos

Spaceship game

Spaceship game

Model viewer

Model viewer

Screenshots

Single threaded basic shader (without lights)

Screenshot

Multithreaded basic shader (without lights)

Screenshot

Multithreaded flat shading (directional, spot and point lights and directional and spot light shadows)

Screenshot

Multithreaded gouraud shading (directional, spot and point lights and directional and spot light shadows)

Screenshot

Multithreaded phong shading (directional, spot and point lights and directional and spot light shadows)

Screenshot