Commit graph

354 commits

Author SHA1 Message Date
Richard Davey
df3b7d5f79 JSDoc fixes 2020-11-20 15:47:35 +00:00
Richard Davey
17e7f2d75b Moved Model class 2020-11-20 15:31:34 +00:00
Richard Davey
774b6987c4 Added Face.alpha getter and setter 2020-10-21 10:14:56 +01:00
Richard Davey
653c2ee600 Parallel and divide by zero fix 2020-10-15 18:08:35 +01:00
Richard Davey
37c9b0884d Updated Polygon points type. Fix #5357 2020-10-15 12:01:13 +01:00
Richard Davey
c03b5af079 Use mesh size 2020-10-15 10:09:02 +01:00
Richard Davey
020cfab2d6 Fixed issue with no mesh specified and texture getting 2020-10-15 09:58:54 +01:00
Richard Davey
e79ec0c96c Generate Grid can now calculate w/h based on ortho texture 2020-10-14 16:32:06 +01:00
Richard Davey
5639862010 Update GenerateGridVerts.js 2020-10-09 17:20:40 +01:00
Richard Davey
2801d3d804 Added setUVs method 2020-10-09 16:22:27 +01:00
Richard Davey
acfb6c469f Much more powerful grid generation now 2020-10-09 16:22:19 +01:00
Richard Davey
50a0f0705f Face is now responsible for determining if it can be rendered, or not. Split the update and load process into two. 2020-10-09 11:55:00 +01:00
Richard Davey
f77a5de32c Geom.Mesh.RotateFace is a new function that will rotate a Face by a given amount, based on an optional center of rotation. 2020-10-09 11:53:57 +01:00
Richard Davey
bf8cd60aab Added ability to rotate data on import 2020-10-08 15:53:13 +01:00
Richard Davey
c05cec3ba0 Added JSDocs 2020-10-08 14:40:32 +01:00
Richard Davey
79a1264f8b Fixed property name 2020-10-08 14:40:25 +01:00
Richard Davey
e46ba609a8 Expose new functions 2020-10-08 13:24:09 +01:00
Richard Davey
2f85c8a8ba Added normals parameters 2020-10-08 13:24:01 +01:00
Richard Davey
8838781aa1 Create GenerateGridVerts.js 2020-10-08 13:23:24 +01:00
Richard Davey
d2ea1c45c3 Create GenerateObjVerts.js 2020-10-08 13:23:20 +01:00
Richard Davey
8a73523d6c Create GenerateVerts.js 2020-10-08 13:23:17 +01:00
Richard Davey
b3f1a7986e Create GenerateGridConfig.js 2020-10-08 13:23:13 +01:00
Richard Davey
d09764518d Create GenerateGridVertsResult.js 2020-10-08 13:23:09 +01:00
Richard Davey
20f4e8a66b Create GenerateVertsResult.js 2020-10-08 13:23:05 +01:00
Richard Davey
82c87ee814 Create materials container 2020-10-08 10:44:32 +01:00
Richard Davey
f191283928 Moved ParseObjMaterial to Geom namespace 2020-10-08 10:44:23 +01:00
Richard Davey
dda4431366 Merged the Layer3D Game Object and pipeline back in for now 2020-10-07 17:44:36 +01:00
Richard Davey
2137e3413d Added cameraZ parameter 2020-10-07 13:15:53 +01:00
Richard Davey
c6d25c9559 Added z parameter 2020-10-07 13:15:44 +01:00
Richard Davey
e331638b05 Updated to use transformed values 2020-10-07 12:04:58 +01:00
Richard Davey
a367799da1 Update Vertex.js 2020-10-07 12:04:16 +01:00
Richard Davey
7a0b056fef Trying out MeshCamera 2020-10-06 18:05:14 +01:00
Richard Davey
7287a760ae Added ParseOBJ type defs 2020-10-06 10:38:21 +01:00
Richard Davey
eb6d342607 Merged the Mesh Geometry functions back in and completed the JSDocs 2020-10-05 16:52:44 +01:00
Richard Davey
3baecb19d4 Moved old mesh pipeline and code into own folder 2020-10-01 17:56:49 +01:00
Richard Davey
6ab0803469 Fixed path 2020-09-30 15:11:42 +01:00
Richard Davey
95b9ba55de Added setPosition and setScale 2020-09-22 15:25:09 +01:00
Richard Davey
fe17dfc022 Updated docs 2020-09-22 12:48:23 +01:00
Richard Davey
183e68580f Fixed dirty flag reset 2020-09-22 11:45:49 +01:00
Richard Davey
bd25dbc355 Added per-model cull mode 2020-09-22 11:39:26 +01:00
Richard Davey
3950191468 Lots of docs and tidying up 2020-09-21 18:24:47 +01:00
Richard Davey
6abeb84ff6 Remove Face and Vertex classes 2020-09-21 18:24:03 +01:00
Richard Davey
24f7c2e3df Updated to use RGB objects, finished missing methods 2020-09-21 15:57:57 +01:00
Richard Davey
7a8932a3a4 Remove log 2020-09-21 14:04:52 +01:00
Richard Davey
7f7d7a1b2e Can now rotate the model 2020-09-21 10:13:58 +01:00
Richard Davey
0ad265da2e Removed faces and verts arrays as moved to a single ArrayBuffer instance 2020-09-21 00:17:38 +01:00
Richard Davey
8366d90f96 Added material and other new methods 2020-09-18 17:52:53 +01:00
Richard Davey
371fb5e68a Added normals, removed Vec3 2020-09-18 17:50:47 +01:00
Richard Davey
87ed734475 Easier iteration 2020-09-17 10:08:07 +01:00
Richard Davey
f853a2be70 Use the projected coordinates 2020-09-17 10:07:56 +01:00