mirror of
https://github.com/4sval/FModel.git
synced 2026-09-21 07:54:39 -05:00
bind pose stripped anim export + cubemap to panorama
Co-authored-by: Zain / Kaiser M <106357974+KaiserM21@users.noreply.github.com>
This commit is contained in:
Submodule CUE4Parse updated: 18e624a38c...6a1df76887
@@ -464,7 +464,9 @@ public class CUE4ParseViewModel : ViewModel
|
||||
ChunkCacheDirectory = Directory.CreateDirectory(Path.Combine(UserSettings.Default.OutputDirectory, ".data")),
|
||||
Authorization = new AuthenticationHeaderValue("Bearer", UserSettings.Default.LastAuthResponse.AccessToken)
|
||||
});
|
||||
await Provider.MountAsync();
|
||||
var onDemandCount = await Provider.MountAsync();
|
||||
FLogger.Append(ELog.Information, () =>
|
||||
FLogger.Text($"{onDemandCount} on-demand archive{(onDemandCount > 1 ? "s" : "")} streamed via epicgames.com", Constants.WHITE, true));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -229,7 +229,15 @@ public class TabItem : ViewModel
|
||||
}
|
||||
|
||||
public void AddImage(UTexture texture, bool save, bool updateUi)
|
||||
=> AddImage(texture.Name, texture.RenderNearestNeighbor, texture.Decode(UserSettings.Default.CurrentDir.TexturePlatform), save, updateUi);
|
||||
{
|
||||
var img = texture.Decode(UserSettings.Default.CurrentDir.TexturePlatform);
|
||||
if (texture is UTextureCube)
|
||||
{
|
||||
img = img?.ToPanorama();
|
||||
}
|
||||
|
||||
AddImage(texture.Name, texture.RenderNearestNeighbor, img, save, updateUi);
|
||||
}
|
||||
|
||||
public void AddImage(string name, bool rnn, SKBitmap[] img, bool save, bool updateUi)
|
||||
{
|
||||
|
||||
@@ -201,7 +201,7 @@ public class Skeleton : IDisposable
|
||||
|
||||
sequence.Tracks[bone.SkeletonIndex].GetBoneTransform(f, sequence.NumFrames, ref boneOrientation, ref bonePosition, ref boneScale);
|
||||
if (!bone.IsRoot) boneMatrix = _boneMatriceAtFrame[bone.ParentIndex];
|
||||
bonePosition = rotationOnly || bonePosition.IsZero() ? bone.Rest.Position : bonePosition * Constants.SCALE_DOWN_RATIO;
|
||||
bonePosition = rotationOnly ? bone.Rest.Position : bonePosition * Constants.SCALE_DOWN_RATIO;
|
||||
|
||||
boneMatrix = new Transform
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user