Commit Graph

48 Commits

Author SHA1 Message Date
bc695df4a1 Refactored ModelCache into a module, misc. fixes due to change. 2020-05-07 21:45:18 -05:00
8d956131d1 Made 'use_shaders' debug option work 2020-05-06 21:32:55 -05:00
c53d42166b Use glLineWidth for wireframe rendering, use LoadingState for MapEditor 2020-05-03 09:49:57 -05:00
bb8e210362 Added canvas_size_changed 'event' to Renderer and OpenGLRenderer 2020-03-25 13:27:00 -05:00
15e5d0a5e1 Framebuffer rendering on quad is now working! 😂 2020-03-25 13:06:40 -05:00
87ae77a9cb Updates 2020-03-25 10:11:56 -05:00
d293772690 Initial work on using framebuffer from GBuffer 2020-03-25 09:18:06 -05:00
d839811cfd Fixed reloading shader which failed to compile at start up but succeeded at runtime caused crash due to Model expecting access to attribute location of shader inputs 2020-03-24 10:32:32 -05:00
578c00673d Added command to reload shaders at runtime, added support for shared scripts to Manifest, lights are now loadable from MapParser, misc changes. 2020-03-24 09:51:20 -05:00
2ad1385fb4 Fixed NVIDIA renderering errors, use 'flat in/out int integerValue' instead of 'in/out float integerValue' 2020-03-23 18:45:25 -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
f32dbfabeb Set shader lights once per frame instead of per entity 2020-03-22 17:46:50 -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
35d6061198 Setup GBuffer for future deferred rendering 2020-03-22 14:56:22 -05:00
d6802c8756 Enabled wireframes for shader renderer 2020-01-30 22:54:59 -06:00
4f1b490600 Use persistent hash for config 2020-01-29 18:18:46 -06:00
e7b84bd123 Removed redundant glError? from Map class and renamed CommonMethods#glError? to #gl_error?, added debug settings for disabling shaders and whether to exit on opengl error 2020-01-27 22:19:07 -06:00
e4333a82b8 Fixed immediate mode lighting, improved-ish modern gl lighting 2019-12-09 11:48:54 -06:00
ff1d34deec Initital shader lighting support 2019-12-08 20:05:48 -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
e076ce8612 Stubbed out VBOs for model 2019-12-05 20:43:54 -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
19f5a0cd9c Added Alternate Tank, go back to using glScalef for scaling models until shader based rendering is implemented, improved Map handling of scaling. 2019-09-25 20:59:19 -05:00
ee844f256f Renamed objects/ to game_objects/ removed redundant entities, added Map loader and test map, made LoadingState use Map for entity asset loading. 2019-09-25 10:09:05 -05:00
771b6a4247 Switched back to old model renderer while fixing vbo based renderer, set stats text shadow color to black, fixed tab completion showing empty list of available options when tab completion triggered 2019-08-12 21:27:04 -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
185d760a83 Model is now able to push data into VBO 2019-08-10 13:36:37 -05:00
80a6389af4 Fix rendering error 2019-08-10 10:15:22 -05:00
a22a3f3f3c Moved constants into their own file, LoadingState now loads shaders and now shows 'Loading [model|shader] name...', tweaked player running speed, Player model is no longer rendered when in first person view, removed redundant ShaderManager 2019-08-10 09:40:31 -05:00
3eb34d023e Debug commands now affect game 2019-08-07 17:58:30 -05:00
12a588304b Added dependance on cyberarm_engine, removed duplicate code which is in cyberarm_engine 2019-08-07 12:00:39 -05:00
2e69647ae3 Various tweaks 2019-02-26 18:43:42 -06:00
eeb7a335c1 Fixed bounding box renderer not showing mesh objects bounding boxes. 2019-02-24 15:11:51 -06:00
965b8d0c80 Refactored bounding box to use 2 vectors, stubbed PhysicsManager. 2019-02-24 15:05:54 -06: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
a6e175d9e0 Replaced Vertex struct with Vector class 2019-02-20 11:00:54 -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
c142bd2392 Sync 2018-12-12 09:02:33 -06:00
5843a9b0ae Count number of vertices instead of faces, added formatted_number to CommonMethods 2018-12-11 12:27:23 -06:00
82265394eb Improved shader error formatting, hide puts statements that are only useful in debug mode. 2018-12-11 11:56:53 -06:00
4d8638d81c Added shader support, removed unused debugging puts statements and fixed Gosu Font.draw deprecation warning. 2018-12-10 18:50:25 -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
6a5d45ba14 Fixed faces counting bug when removing bb 2018-12-09 21:20:53 -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