[DiscordArchive] as I remember Inico made a tuto about texture animation, but not texture animation + rotation, maybe
[DiscordArchive] as I remember Inico made a tuto about texture animation, but not texture animation + rotation, maybe
Archived author: Robinson Leo • Posted: 2022-05-08T17:47:20.791000+00:00
Original source
as I remember Inico made a tuto about texture animation, but not texture animation + rotation, maybe the latest template of Alastor could help?
Archived author: A2 • Posted: 2022-05-08T17:48:38.683000+00:00
Original source
im just now working on update for that part
Archived author: A2 • Posted: 2022-05-08T17:48:42.862000+00:00
Original source
![[Image: unknown.png?ex=690c36ba&is=690ae53a&hm=1...3d7a24e10&]](https://cdn.discordapp.com/attachments/415944535718494208/972917981027893248/unknown.png?ex=690c36ba&is=690ae53a&hm=14e88461ed90b93d07bcbf4e8b7478d91e4ae506b015153f7e3d0763d7a24e10&)
Archived author: A2 • Posted: 2022-05-08T17:49:07.896000+00:00
Original source
inline read/write function that will decompress the short to float and vice versa in m2 template
Archived author: <o> • Posted: 2022-05-08T17:49:35.609000+00:00
Original source
that's very nice
Archived author: A2 • Posted: 2022-05-08T17:49:49.363000+00:00
Original source
```C
// Conversion between comp ushort and float quaternion used by bone rotations
local float f_MAX_SHORT = 32767;
local float f_One = 1.0;
float stf(unsigned short Short) {
return (Short / f_MAX_SHORT ) - f_One;
};
unsigned short fts(float Float) {
return (Float + f_One) * f_MAX_SHORT;
};```