Commit graph

61 commits

Author SHA1 Message Date
smallmodel
387ccd5cc3
Bump the minimum CMake version to 3.12 2024-11-30 00:36:33 +01:00
smallmodel
e8dfa0206b
Use a macro constant for movement/action skan blend frames 2024-10-27 21:39:16 +01:00
smallmodel
afe1ba47cf
Decrease the time tolerance between frames to make animations smoother 2024-10-27 19:37:56 +01:00
smallmodel
848cf7ac01
Fix AddPointToBounds not properly setting the max bounds 2024-10-23 20:03:07 +02:00
smallmodel
29f8ff8d71
Set the new frame radius
This fixes an issue when culling static models as it uses the radius and the radius wasn't initialized
2024-10-22 22:26:55 +02:00
smallmodel
aa2d73a1c8
Correctly copy frame bounds 2024-10-22 21:56:35 +02:00
smallmodel
f9d264058b
Use safe version of sprintf and strcpy 2024-09-20 23:08:53 +02:00
smallmodel
0597191319
Implement SkelVec3::IsUnit 2024-09-18 00:18:08 +02:00
smallmodel
a150c1b18b
Fix animation delta repeating when getting delta of the same frame
This fixes actors moving too much and strangely
2024-08-26 18:18:20 +02:00
smallmodel
1b35d3ce05
Fix angular delta being wrong
This fixes animated characters being sometimes badly positioned, like actors in the plane in t1l1
2024-07-25 21:46:33 +02:00
smallmodel
31d254cb9f
Use ceil() and set the delta appropriately if time1 is after team2 2024-07-25 21:43:19 +02:00
smallmodel
d56498e622
Adds CHANNEL_NONE case statement even if there is nothing to do 2024-07-11 22:04:03 +02:00
smallmodel
72e315bce1
Using an enum channelType_e rather than raw values for bone channel types 2024-06-13 23:04:33 +02:00
smallmodel
02ef85e390
Removed GetChannelTypeFromName(), was useless 2024-06-13 21:28:49 +02:00
smallmodel
aeba0e0f6f
Set the real limit of MAX_SKELETOR_CHANNELS 2024-06-13 21:26:59 +02:00
smallmodel
f8fa944054
Some refactoring, + implemented SetLocalFromGlobal() 2024-06-13 21:26:51 +02:00
smallmodel
1d50fa088a
Don't dealloc if there is no frame in the channel 2024-06-13 21:26:29 +02:00
smallmodel
546ded324e
Made ChannelNames() method public 2024-06-13 21:25:45 +02:00
smallmodel
dfb2cb6bbf
Fixed buffer overrun 2024-06-11 21:19:15 +02:00
smallmodel
fb15f0f2b3
Fixed a tiny mistake that prevented morphs from working correctly
Actors now have a working dynamic facial expression (moving eyes/mouth/brown...)
2024-06-11 00:12:59 +02:00
smallmodel
dd85118a9c
Don't pack channels when reading encoded frames from mohsh and above (they're already packed in the animation file) 2024-06-11 00:01:55 +02:00
smallmodel
531340627d
Call LocalChannel() instead 2024-06-10 23:53:42 +02:00
smallmodel
6b6e5291dd
Fixed EYES_up length 2024-06-10 23:40:50 +02:00
smallmodel
79b0e6998d
Fixed implementations 2024-06-10 23:40:34 +02:00
smallmodel
445814b144
Fixed skeletor_c::ChannelNames return value 2024-06-10 22:15:10 +02:00
smallmodel
c16f2029b1
Implemented skeletor_c::ChannelNames() 2024-06-10 22:06:35 +02:00
smallmodel
abefdd772c
DecodeFrameValue should only return a float value 2024-06-10 22:06:25 +02:00
smallmodel
e550d244df
Reimplemented skelChannelList_s::LocalChannel 2024-06-10 22:05:39 +02:00
smallmodel
1fd238567e
Fixed animation loading endian 2024-06-09 17:55:57 +02:00
smallmodel
091c8b4d12
Optimized channel data memory and performance (feature from moh 2.0 and above) 2024-06-05 00:40:43 +02:00
smallmodel
c4523db991
Added GetBoneChannelType 2024-06-04 23:48:29 +02:00
smallmodel
2b66672d2d
Added MAX_GLOBAL_FROM_LOCAL constant and implemented skelChannelList_s::GlobalChannel and skelChannelList_s::LocalChannel 2024-06-04 21:06:43 +02:00
smallmodel
796a3a711f
Fixed animation delta over time 2024-02-13 01:01:51 +01:00
smallmodel
41be7f44ab
Added comment 2023-11-06 20:45:57 +01:00
smallmodel
72d4bb0206
Added more checks to avoid crashes 2023-11-06 18:59:18 +01:00
smallmodel
dcbb39d640
Formatted skeletor source files 2023-11-06 17:58:58 +01:00
smallmodel
393c2a81d1
Check for indice bounds 2023-11-01 23:06:14 +01:00
smallmodel
93814bd05b
Fixed Skel_Alloc and Skel_Free macros when debugging memory 2023-08-19 02:18:11 +02:00
smallmodel
0347a5ca0b
Renamed MAX_CHANNELS to MAX_SKELETOR_CHANNELS to avoid conflict with sound channels (MAX_CHANNELS) 2023-08-16 20:51:19 +02:00
smallmodel
6feeb21e21
Fixed uninitialized angular delta variable 2023-08-13 14:19:05 +02:00
smallmodel
55b737e730
Set global channel from local to -1 2023-08-11 21:10:14 +02:00
smallmodel
059dacf2a7
Added GetAngularDeltaOverTime() to return the animation's angular delta over time 2023-08-11 21:09:47 +02:00
OM
3cc1e89b45 Tiny fixes related to bad printf formatting and sizes 2023-06-21 21:01:37 +02:00
OM
5b97245dd1 Reworked CMakeLists 2023-06-17 01:44:38 +02:00
OM
c287638f99 Reworked file inclusion (using relative path) 2023-06-17 01:24:20 +02:00
OM
0e33f8258a *TIKI_GetSkelAnimFrame2*: fixed radius/mins/maxes parameters being unused 2023-05-16 22:04:07 +02:00
L
353ed34a71 Fixed errors with Container<> 2023-04-30 00:04:23 +02:00
L
f9e7f344be Reduced compile warnings (especially on clang) 2023-02-07 20:49:31 +01:00
L
d4faf0c0e0 Fixed compilation errors on Unix 2023-02-01 00:28:40 +01:00
L
bea6f39207 optimization for GetBoneFrame: return a reference instead of a copy 2023-01-30 00:26:30 +01:00