Commit Graph

26 Commits

Author SHA1 Message Date
Adam
7e7fb16693 modelviewer: fix zfighting of models
This uses the stencil buffer to hold face priorities and prevents drawing fragments of a lower priority overtop those of higher on the same model
2018-08-04 16:19:25 -04:00
Adam
90c962accf modelviewer: fix some incorrect gl usage, add error logging 2018-08-04 16:16:24 -04:00
Qatell
49ace3f7c7 -Fixed objects of variable width and length from being positioned incorrectly on the map.
-Renamed LocationKey to ModelKey and added another field so that cached values are correct for objects using the same models.
-Implemented shading to the scene.
-Implement full SceneTilePaint with variable colors and textures.
-Implement textures while rendering SceneTileModel
-Enable maps to be loaded by their region id instead of just their coordinates.
-Implement full object model creation (replacement colors, replacement textures, resizing, translation)
-Added two new methods to ModelDefinition used in object model creation.
2018-07-11 16:03:51 -04:00
Adam
309665c8ff modelviewer: add basic animation support 2018-06-24 15:54:55 -04:00
Adam
aa30d2c782 modelviewer: begin work on tile shapes 2018-05-20 20:20:04 -04:00
Adam
a0033320c5 modelviewer: fix most of rotation logic
Also add alpha support
2018-04-25 21:10:09 -04:00
Adam
c4bee1127c cache: add map and location definition, convert Region loading to use it 2017-12-28 21:15:00 -05:00
Adam
61f276a799 verticies -> vertices everywhere 2017-08-12 14:02:47 -04:00
Adam
69bb4d97b2 model-viewer: render kits too 2017-05-21 13:17:25 -04:00
Adam
c24f6b5eb9 model-viewer: fix some of the orientation issues 2017-05-11 17:09:48 -04:00
Adam
cac6432a55 model viewer: fix rendering models if faceRenderTypes is null 2017-05-11 09:19:03 -04:00
Adam
3c0ed845f9 model viewer: don't render faces with type & 2 2017-03-28 18:26:45 -04:00
Adam
caf5015cdf model viewer: support textured models 2017-03-27 18:38:22 -04:00
UniquePassive
28ff8e3366 Rename ModelDefinition fields for clarity 2017-03-24 19:35:46 +01:00
Adam
da68089c18 cache: add .obj model exporter 2017-03-20 18:01:33 -04:00
Adam
8d048bd407 Some work on object rendering. Could not figure out object rotations 2017-01-22 18:48:22 -05:00
Adam
4ed2260da6 model viewer: add support for texture rendering on terrain 2017-01-15 13:06:11 -05:00
Adam
1cb1fdb156 2017, change license to BSD 2 clause as it should have been originally 2017-01-13 20:34:05 -05:00
Adam
c23da5d33a Some work on terrain rendering 2016-12-26 19:29:34 -05:00
Adam
22a6a3d402 model viewer: load normals and enable cull face 2016-12-04 18:57:12 -05:00
Adam
b8c8140311 Enable GL_DEPTH_TEST 2016-12-04 16:57:47 -05:00
Adam
5c18ad825b model viewer: allow viewing npcs with multiple models 2016-12-04 13:54:53 -05:00
Adam
3508cd4a33 modelviewer: rewrite camera handling to be more correct 2016-11-27 20:08:14 -05:00
Adam
520df7f8f4 Split up model loader from model definition 2016-09-16 23:15:09 -04:00
Adam
f044d0207f model viewer: rotate initial view, translate model instead of drawing it at an offset 2016-09-16 22:57:46 -04:00
Adam
359a85a98e Add model dumper and basic model viewer 2016-05-28 11:36:18 -04:00