Commit Graph

55 Commits

Author SHA1 Message Date
f7936b38bc Ripped IMICFPS::Wavefront::Model to IMICFPS::Model, more refactoring needed. 2019-09-26 14:29:42 -05:00
da9b0212c2 Disable MESA opengl/glsl override enviroment vars for now, disable vbo/vao for now 2019-08-13 10:26:37 -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
d07130b03b 'fixed' glGetAttribLocation crashes (shader compiler likes to agressively optimize) 2019-08-11 21:46:18 -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
ce7d132864 Fixed some warnings, moved Subcommand into its own file, added support for subcommand and subcommand options autocomplete in Console, added texture ids to Model vertex buffer object 2019-08-11 09:34:25 -05:00
185d760a83 Model is now able to push data into VBO 2019-08-10 13:36:37 -05:00
3eb34d023e Debug commands now affect game 2019-08-07 17:58:30 -05:00
2e69647ae3 Various tweaks 2019-02-26 18:43:42 -06:00
8ccd1506f3 Refactored Model to make faces first class objects for use in AABBTree, renamed BoundingBox.intersect to intersect? 2019-02-25 17:59:09 -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
5a97d292c0 remove glu from gemfile, added InputMapper, using InputMapper for Camera and Player. 2019-02-17 14:14:39 -06:00
9f6f330202 Restructured 'objects' folder into a meaningful 'assets' folder, added 'war_factory' model, refactored GameObject#bind_model and ModelLoader to understand the restructuring. 2019-02-17 10:50:08 -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
a7755dfbdf Removed WaveFont Model Object's knowledge of parenthood. 2018-12-10 10:00:04 -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
35b5ee948a Moved OpenGL renderering code into its own class for future optimizations 2018-09-20 09:07:39 -05:00
66e7800cad Added main menu, added loading screen, hacked and chiseled things until I could load models without attaching to a gameobject. 2018-09-09 15:01:53 -05:00
a84b9d95b4 Added a proper terrain mesh, implemented basic (and glitchy) terrain collision detection. 2018-07-01 16:06:22 -05:00
6a14c5e9be Eat memory, load faster. edited comments in parser. 2018-06-30 21:55:51 -05:00
aff4c8b545 Replaced usage of Time.now 2018-04-23 22:33:17 -05:00
fb1f4370eb Added fps target, added comma 2018-04-23 21:51:10 -05:00
16e2352322 Got wireframe mostly working 2018-04-23 21:28:06 -05:00
473a597b66 Bunch of stuff 2018-04-23 21:13:16 -05:00
021805cd96 Wireframes! Player now has a name tag. 2018-03-23 13:51:55 -05:00
dacf05475f Cleanup 2018-03-22 21:12:21 -05:00
bdbb5f2e94 Major refactor 2018-03-22 19:26:02 -05:00
632830503b Everything is broken and stuff. 2018-03-22 15:15:20 -05:00
e7aa32b62d Fixed missing spaces, added terrain object, various tweaks trying to get collision detection working correctly; Still isn't... 2018-03-21 12:09:28 -05:00
2de1c0ffdf Camera can bind to model 2018-03-20 22:48:01 -05:00
fd4530911e Cleaning up Wavefront::Model and centralizing into Model, mouse_look now adapts to FOV better, bounding_boxes are correctly placed (not just moved from center) 2018-03-20 17:19:34 -05:00
46f533f83e Did some reorganizing 2018-03-20 15:11:00 -05:00
e26796f42c Textures work! that 3 was only getting 2... Added --native to lunch game at native resolution and fullscreen. Added basic plane. 2018-03-20 11:18:16 -05:00
89c84dbe39 Broken mouse input, texture mapping issue persists. 2018-03-19 22:08:20 -05:00
a46f3deff9 Moved OBJ parser out of Model, added axis-aligned bounding boxes, added --debug, bounding boxes can be rendered. 2018-03-19 14:35:13 -05:00
30567a9e94 Rendering texture 2018-03-19 09:44:40 -05:00
b489c48200 Pack everything as f*? It renders! 2018-03-19 09:40:06 -05:00
4818d5a67e Objectified lights, cleanup and messification. 2018-03-19 08:44:07 -05:00
62364b2145 Broken support for textures, trying to switch to opengl-bindings gem 2018-03-18 22:38:16 -05:00
c2aebbf0e8 Added basic skydome, now using glDrawArrays :D 2018-03-18 20:31:20 -05:00
47a27c15d3 Disabled glut, got scaling working as desired. 2018-03-18 15:36:36 -05:00
4d09dde058 Fixed scaling lighting weirdness 2018-03-18 11:53:41 -05:00
b35edcc7aa Added tree and biped (humanoid), can now pass x,y,z coordinance to Model 2018-03-16 23:06:09 -05:00
4f4fb7b7ca Updates 2018-03-06 15:59:14 -06:00