From 924b52c54462bd9cda5a915a2c9e3f33fef4dd61 Mon Sep 17 00:00:00 2001 From: Asval Date: Sat, 4 Jul 2026 00:36:19 +0200 Subject: [PATCH] pre-usd texture format + remove header for now --- CUE4Parse | 2 +- FModel/MainWindow.xaml | 1 + FModel/ViewModels/ExportOptionsViewModel.cs | 9 ++++ .../Controls/Explorer/Resources.xaml | 52 ++----------------- FModel/Views/Snooper/Renderer.cs | 4 +- README.md | 3 -- 6 files changed, 18 insertions(+), 53 deletions(-) diff --git a/CUE4Parse b/CUE4Parse index 7d9115c2..2b00fcf9 160000 --- a/CUE4Parse +++ b/CUE4Parse @@ -1 +1 @@ -Subproject commit 7d9115c2d6eb464c641efb6c2c41efcb0260673d +Subproject commit 2b00fcf9de27eb4047c8fb41aa509940e43a8475 diff --git a/FModel/MainWindow.xaml b/FModel/MainWindow.xaml index 9dee6e9f..10bb6d21 100644 --- a/FModel/MainWindow.xaml +++ b/FModel/MainWindow.xaml @@ -575,6 +575,7 @@ + SetProperty(ref field, value); } + + private ETextureFormat? _preUsdTextureFormat; public bool TextureFormatsEnabled => SelectedMeshFormat != EMeshFormat.USD; + public bool ExportHdrTexturesAsHdr { get; diff --git a/FModel/Views/Resources/Controls/Explorer/Resources.xaml b/FModel/Views/Resources/Controls/Explorer/Resources.xaml index 7764c300..3fbe7ae2 100644 --- a/FModel/Views/Resources/Controls/Explorer/Resources.xaml +++ b/FModel/Views/Resources/Controls/Explorer/Resources.xaml @@ -186,53 +186,11 @@ - - - - - - - - - - - - - - - - - - - - - - - + + + diff --git a/FModel/Views/Snooper/Renderer.cs b/FModel/Views/Snooper/Renderer.cs index 94e923ad..a8e22e76 100644 --- a/FModel/Views/Snooper/Renderer.cs +++ b/FModel/Views/Snooper/Renderer.cs @@ -353,7 +353,7 @@ public class Renderer : IDisposable return; } - if (!original.TryConvert(out var mesh, naniteFormat)) + if (!original.TryConvert(out var mesh, EMeshQuality.Highest, naniteFormat)) return; Options.Models[guid] = new StaticModel(original, mesh); @@ -597,7 +597,7 @@ public class Renderer : IDisposable if (bSpline && model is SplineModel splineModel) splineModel.AddComponent((USplineMeshComponent)staticMeshComp); } - else if (m.TryConvert(out var mesh, UserSettings.Default.NaniteMeshExportFormat)) + else if (m.TryConvert(out var mesh, EMeshQuality.Highest, UserSettings.Default.NaniteMeshExportFormat)) { model = bSpline ? new SplineModel(m, mesh, (USplineMeshComponent)staticMeshComp, transform) : new StaticModel(m, mesh, transform); model.IsTwoSided = actor.GetOrDefault("bMirrored", staticMeshComp.GetOrDefault("bDisallowMeshPaintPerInstance", model.IsTwoSided)); diff --git a/README.md b/README.md index 92b5501b..70003c92 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,6 @@ For installation, follow the instructions from [here](https://github.com/4sval/F ### Sponsorship:

- - -