mirror of
https://github.com/open-goal/jak-project
synced 2026-05-28 08:25:56 -04:00
e6260e48ab
Adds support for exporting animations for foreground models. It's not perfect and doesn't handle the Jak 2/3 animations very well in some cases (scale can often get messed up, especially for the LZO compressed ones, I have no idea what is going on with the data in those art groups sometimes, so that'll have to be revisited later...), but it does a decent job on Jak 1. Additionally, the `build-actor` tool has also been changed to support setting the `master-art-group-name` and `master-art-group-index` fields to allow for custom art groups to link their animations to a different master art group, which lets you add custom animations to vanilla art groups.
13 lines
492 B
C++
13 lines
492 B
C++
#pragma once
|
|
#include "common/custom_data/Tfrag3Data.h"
|
|
|
|
#include "decompiler/ObjectFile/ObjectFileDB.h"
|
|
#include "decompiler/level_extractor/common_formats.h"
|
|
#include "goalc/build_actor/common/build_actor.h"
|
|
|
|
namespace decompiler {
|
|
void extract_animations(const ObjectFileData& ag_data,
|
|
const DecompilerTypeSystem& dts,
|
|
GameVersion version,
|
|
std::map<std::string, level_tools::ArtData>& out);
|
|
} // namespace decompiler
|