Giter VIP home page Giter VIP logo

3dgameengine's Introduction

3DGameEngine

3DGameEngine is a Java based engine for 3D games.

Rendering

Everything is done with multi-pass rendering.

The engine currently has support for,

  • Meshes
    • Vertex + Index based mesh creation
    • Mesh loading from an OBJ file
  • Materials
    • Multiple textures
    • Uniform floats
  • Lighting
    • GLSL shaders
    • Phong or Blinn-Phong lighting model
    • Generic lights
      • Ambient lights
      • Directional lights
      • Point lights
      • Spot lights

Game Support

All rendering is done using a scene graph. The scene graph contains game objects. Each game object can have children game objects. Each game object can also have game components. An example scene graph is shown below:

  • Scene Graph
    • Game Object
      • Game Object
      • Game Component
    • Game Object
      • Game Component
      • Game Component

A game object will inherit its parent's translation, rotation, and scale. It will not inherit its parent's material.

Full JavaDocs can be found in the folder named "docs".

Creating the scene graph should be done as follows:

  • Initialize components
  • Load meshes
  • Load and initialize materials
  • Initialize objects
  • Add children and components
  • Transform objects and components
  • Add objects

Methods should be overridden to provide functionality other than the default. Overridden methods must call super, with the appropriate parameter, on their first line.

An example of this can be found in the file "com.base.game.TestGame"

Libraries Used

  • LWJGL - OpenGL bind for Java

3dgameengine's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.