bjorn
0dfa95626e
Model:resetBlendShapes;
...
Resets blend shapes to default values, like :resetNodeTransforms.
2023-10-18 15:51:52 -07:00
bjorn
4892d228b3
WIP;
2023-07-24 15:34:44 -07:00
bjorn
be795c0ebd
Change vec3 back to 3 floats; Clean up maf/vectors;
...
The "vec3 is 4 floats" thing was consistently confusing to people. It's
reverted everywhere except for Curve.
maf now has full sets of methods for vec2/vec3/vec4, for consistency.
Vector bindings now use luax_readvec* helper functions for the
number/vector variants, and use maf for most functionality, which cleans
things up a lot.
2023-07-10 17:51:24 -07:00
bjorn
4028b233a1
Model:clone;
...
Creates a lightweight copy of a Model, for situations where a single
model needs to be rendered with multiple poses in a single frame, which
is currently not possible.
2023-05-10 18:14:09 +01:00
bjorn
764a88d70b
Model(Data):getBlendShapeCount/Name;
2023-03-31 18:44:31 -07:00
bjorn
3b1414deac
Ok redesign blend shapes but they're good now;
2023-03-31 18:44:29 -07:00
bjorn
b118ac1938
Terrible blend shape Lua API;
2023-03-31 18:43:16 -07:00
bjorn
f32800c044
Clean up Model lookeruppers; Model:getMaterial takes string;
2023-03-21 21:30:11 -07:00
bjorn
e9776f98c6
Fix compatibility with Lua 5.2, 5.3, 5.4;
...
Part of this involved putting the Lua header back in api.h, since we
need to know the Lua version to define some macros properly.
2022-11-24 14:33:55 -08:00
s-ol
c3494d3d30
Fix Model:getNodeScale()
2022-11-14 08:02:13 -08:00
s-ol
773d22f40d
Check bounds in luax_checkanimation / luax_checknodeindex
2022-11-14 08:02:13 -08:00
bjorn
ce9662fa7e
Make Model draw start vertex 1-indexed;
...
That way it matches Pass:mesh.
2022-09-01 21:54:34 -07:00
bjorn
ebf049e9d1
Model:resetNodeTransforms;
2022-08-22 20:44:01 -07:00
bjorn
f515346e20
Rename CoordinateSpace;
...
It's now OriginType, and global -> root and local -> parent.
2022-08-17 22:33:43 -07:00
bjorn
f570ee980c
Add Model:getMaterialName;
2022-08-17 22:05:05 -07:00
bjorn
eac3299bd0
ModelData:getMetadata;
2022-08-04 00:27:20 -07:00
bjorn
1c571001e7
Finish Model API;
2022-07-12 19:35:23 -07:00
bjorn
159352770f
Model:getTriangles;
...
Doesn't 100% work, Buffers are kind of a mess, ugh.
2022-07-09 18:30:36 -07:00
bjorn
5f19c2e1be
Model:getBoundingBox; Model:getBoundingSphere;
2022-07-06 19:22:02 -07:00
bjorn
d088c5471d
Model;
...
Does not include some of the fancier accessors yet.
2022-07-03 17:26:31 -07:00
bjorn
37221afbc6
rm graphics module;
2022-04-21 17:39:58 -07:00
bjorn
6413a6eda2
Fix Model:getTriangles; Add Lua API;
2021-03-25 12:29:11 -06:00
bjorn
e63099ba6a
Flatten api.h;
2021-03-15 18:54:27 -06:00
bjorn
51f470cf85
Easier enums;
2020-09-27 17:13:00 -07:00
bjorn
ec257b179f
Support Lua 5.2, 5.3, 5.4;
2020-08-19 13:12:57 -06:00
bjorn
4848d9a43a
Model:hasJoints;
2020-08-16 00:49:16 -06:00
bjorn
18dcb07b98
Convert stuff over to use new enum system;
2020-02-16 18:31:02 -08:00
bjorn
8c429e89ac
Fix -Wshadow;
2020-01-23 11:18:04 -08:00
bjorn
c9b1f257bf
api: try new file naming convention; Tupfile: cleanup;
...
I assume full responsibility for any catastrophes this causes.
2019-12-31 19:31:44 -08:00