Giter Site home page Giter Site logo

nilspettersson / lwjgl_3d_framework Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 111.93 MB

3D game framework built on top of Lwjgl and makes it easy to create games and raymarching

License: MIT License

GLSL 0.74% Java 99.23% HTML 0.02%
3d lwjgl 3d-library opengl opengl-library opengl3 opengl-renderer game-library raymarching

lwjgl_3d_framework's Introduction

lwjgl_3D_framework

Current version: 2.3.0

Screenshots

Ray marching Rasterization and ray marching

Core functionality

Game loop handling

  • The Game class should be inherited, this will controll the flow of the application for you. The Game class contains all functionality for this library.

Scenes

  • You can create many scenes and switch between them. Every scene has its own entites, ligths and camera.

Camera

  • There is a Camera that can be moved and rotated using functions in Game class.

keybord Input

  • Input from keybord is Possible using the Input class.

Mouse Input

  • There is a Mouse class with static functions for changing Mouse location and visibility. It also contains x and y values that can be used to rotate camera.

Renderer

  • This libray contains a renderer that can render entites. The renderer will automatically bind shader and entities but not geometry read more in Geometry section.

Entities

  • Entites is a class that contain a transform, geometry, textures and material. Entites can be rendered using the renderer.

Geometry

  • The Geometry class contains vertices and methods to add vertices. Geometry can be added by specifying the amount of vertices or by loading an obj file. You need to bind the geometry every time it is updated including on creation.

point Lights

  • Lights will be passed on to the gpu once every frame. Lights are used by the shaders to create lighting. The Game class contains all lights and functionality to add, remove and edit them.

Material

  • A material has properties that will be sent to the shader as uniforms. The uniforms will be sent once per Entity so materials should not have properties related to the world.

Shader

  • When creating glsl code you can use pre made functions that can create different lighting efects. Glsl version 330 is used. The Shader has include system so glsl libraries can be included.

Post Processing

  • You can create a post processing shader that add effects to the image.

Ray marcher

  • You can add distance functions to an sdf function and then use ray marcher to find closest objects. It can calculate diffuse, shadows and ambient occlusion.

Setup for eclipse

  • Download or clone lwjgl_3D_library.
  • Create a new java project. in Eclipse
  • Right click in Project Explorer Then click import.
  • Go to general then choose File System and click next.
  • select the lwjgl_3D_library directory and then click select all.
  • Click finish and select Yes To All.

lwjgl_3d_framework's People

Contributors

nilspettersson avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.