mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-19 23:24:22 +01:00
Add submeshless support
This commit is contained in:
parent
dc845b766e
commit
518117b25a
2 changed files with 24 additions and 16 deletions
|
|
@ -73,17 +73,21 @@ public sealed class ModelManager : SingleTaskQueue, IDisposable
|
|||
|
||||
public void Execute(CancellationToken cancel)
|
||||
{
|
||||
Penumbra.Log.Debug("Reading skeleton.");
|
||||
var xivSkeleton = BuildSkeleton(cancel);
|
||||
|
||||
Penumbra.Log.Debug("Converting model.");
|
||||
var model = ModelExporter.Export(_mdl, xivSkeleton);
|
||||
|
||||
Penumbra.Log.Debug("Building scene.");
|
||||
var scene = new SceneBuilder();
|
||||
model.AddToScene(scene);
|
||||
|
||||
Penumbra.Log.Debug("Saving.");
|
||||
var gltfModel = scene.ToGltf2();
|
||||
gltfModel.SaveGLTF(_outputPath);
|
||||
}
|
||||
|
||||
// TODO: this should be moved to a seperate model converter or something
|
||||
private XivSkeleton? BuildSkeleton(CancellationToken cancel)
|
||||
{
|
||||
if (_sklb == null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue