Commit Graph

20 Commits

Author SHA1 Message Date
fbdea30015 Patched bounding box renderer to work again- in immediate mode renderer, more work on lighting rework for modern renderer 2020-05-14 09:54:08 -05:00
dae950c72a Restructured deferred lighting/rendering 2020-05-12 15:19:05 -05:00
bb8e210362 Added canvas_size_changed 'event' to Renderer and OpenGLRenderer 2020-03-25 13:27:00 -05:00
d293772690 Initial work on using framebuffer from GBuffer 2020-03-25 09:18:06 -05:00
87fcc3a05c Fixed lighting artifacts caused by untransformed normals, added 'Scene' for holding objects for rendering, added turn table models to menus using a scene, misc other changes. 2020-03-23 11:48:44 -05:00
0d1d7ff6bc Fixed modern opengl renderer not renderering model textures, framebuffer can be used without crashing, model uv coordinates are now in buffer, minor rendering optimization 2020-03-22 17:22:10 -05:00
4f1b490600 Use persistent hash for config 2020-01-29 18:18:46 -06:00
af19166af2 Modern 'GL now renders properly, camera works as expected, added fallback to immediate mode if shader fails to compile. 2019-12-08 17:50:20 -06:00
6aeee41a71 Progress towards modern gl made 2019-12-05 17:23:02 -06:00
b091a489af Removed entity management from Game, refactored Map to MapLoader and added Map to manage world 2019-09-27 14:30:23 -05:00
f11b091fe0 Renamed lighting shader to default, shoehorned in glsl 3.30 support for Intel on Linux, removed duplicate handleGlError methods, added OpenGL and GLU to Object namespace, removed redundant includes for OpenGL and GLU, VBO and VAO now render (all be it incorrectly) 2019-08-11 14:53:15 -05:00
3eb34d023e Debug commands now affect game 2019-08-07 17:58:30 -05:00
6191699d8b Replaced usage of with CommonMethods.window (which uses ), refactored InputMapper to match actions to keys and visa-versa, removed categories from InputMapper, moved input mappings from Camera and Player into InputMapper (for now.) 2019-02-22 14:55:18 -06:00
7b903fbdb9 Refactored GameObject to Entity, replaced @x,@y,@z with @position, added @velocity vector to Entity, bricked Player terrain interaction while authoring Axis Aligned Bounding Box Tree for CollisionManager to handle all collision interaction. Added PhysicsManager stub. 2019-02-20 10:49:56 -06:00
f4a81f1e36 Removed global state for LightManager and ObjectManager, they're now inside GameState. Simplified terrain mesh. 2019-02-07 10:05:43 -06:00
5843a9b0ae Count number of vertices instead of faces, added formatted_number to CommonMethods 2018-12-11 12:27:23 -06:00
3ed09dd930 Bounding Box rendering for Mesh objects is now fixed: used to be the objects were all drawn on the original Mesh instead of its copies. 2018-12-10 09:53:13 -06:00
7271c0e4a1 Fixed bounding box rendering! fixed AABB collision detection (was a bit weird), misc. tweaks and fixes. 2018-12-09 21:17:12 -06:00
a5b2ab7992 Split up Renderer into OpenGL and BoundBox renderers, rotate Player nameplate 180d 2018-09-20 09:47:09 -05:00
35b5ee948a Moved OpenGL renderering code into its own class for future optimizations 2018-09-20 09:07:39 -05:00