Giter VIP home page Giter VIP logo

page's Introduction

pAGE

paetramon's Autogeneous Game Engine

Current Progress

Can add a 2D triangle and 3D cube to the scene, move the camera, and adjust the objects transforms. Gif of cube and triangle creation, adjusting the size of the cube, and moving the camera around the scene

Can use the mouse to select objects in the scene, and hold the right mouse button while hovering over the scene to move the camera. Gif of selecting objects in the scene using the mouse, then holding the right mouse button to allow camera movement within the scene ^ This gif was created when I was using the Moller-Trumbore algorithm for ray/triangle intersection. This method worked well when I was just drawing cubes with 12 triangles, or triangles with well, 1 triangle. However, performance became an issue when I started importing more complex models. The Moller-Trumbore algorithm code is still in there, but now I handle selection by using an extra color attachment on the OpenGL framebuffer, where each object is drawn with a color based on the object ID. Then a simple pixel color check handles determining which object to select. Gif showing alternating color attachments of the OpenGL framebuffer, as the user clicks between different objects. The first color attachment shows the models normally, then the second color attachment shows the models as very slightly different shades of black. The colors of the second attachment are based on the object ID to help determining selection.

Supports rudimentary lighting with a single directional light source. Point and Spotlight sources will be added, as well as being able to support multiple lights at once. Gif of a light source being modified to show the light moving along the surface of 5 objects (a cube, sphere, cone, cylinder, and backpack model). The light source is further modified to change the color and strength of the ambient and diffuse properties

page's People

Contributors

jacobspeicher avatar

Stargazers

William Burton 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.