Commit graph

52 commits

Author SHA1 Message Date
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
L
95a244fde0 Fixed compiler warnings by removing tiki.h inclusion from qcommon.h 2023-01-30 00:23:47 +01:00
L
87eca51dbb Moved skeletor_imports 2023-01-29 22:55:26 +01:00
L
8ef16a91f2 Reworked source tree so it compiles 2023-01-29 20:59:31 +01:00
Ludovic
34072edf43 Fixed CreatePosRotBoneData always creating an invalid bone type 2020-03-30 23:57:42 +02:00
Ludovic
012914c3b5 SkeletorGetAnimFrame: Fixed crash when animData is NULL 2017-10-26 03:12:50 +02:00
Ludovic
62ff9b7f4c Renamed file.c to files.cpp
Renamed huffman.c to huffman.cp
Renamed msg.c to msg.cpp
Added Pipe class
Made loaddef a local variable instead of a global variable for future potential multi-threading support
2017-10-26 02:28:06 +02:00
Ludovic
a8eb5bed24 Fixed seeking in PK3 2017-07-21 04:21:00 +02:00
Ludovic
214692a910 Implemented some reborn functions 2017-06-08 11:46:08 +02:00
Ley0k
176c433b82 included DBGHEAP in most loud code 2017-02-19 12:13:43 +01:00