From e79e264f25873deb12dfdebd970958e360cbf76e Mon Sep 17 00:00:00 2001
From: Masusder <59669685+Masusder@users.noreply.github.com>
Date: Sat, 19 Sep 2026 20:58:03 +0200
Subject: [PATCH 1/6] Nascar's custom IRMesh format support
---
CUE4Parse | 2 +-
FModel/Enums.cs | 1 +
FModel/ViewModels/CUE4ParseViewModel.cs | 3 ++
FModel/ViewModels/GameFileViewModel.cs | 2 +
FModel/Views/Resources/Colors.xaml | 13 ++++---
.../Converters/FileToGeometryConverter.cs | 1 +
FModel/Views/Resources/Icons.xaml | 1 +
FModel/Views/Snooper/Models/StaticModel.cs | 10 ++++-
FModel/Views/Snooper/Renderer.cs | 38 +++++++++++++++++--
9 files changed, 59 insertions(+), 12 deletions(-)
diff --git a/CUE4Parse b/CUE4Parse
index 6409f38e..756358e4 160000
--- a/CUE4Parse
+++ b/CUE4Parse
@@ -1 +1 @@
-Subproject commit 6409f38e09e2a21aa839cd77b4515bca6c66f280
+Subproject commit 756358e40b47b65106a8c74893652c659eb56633
diff --git a/FModel/Enums.cs b/FModel/Enums.cs
index 6d599d95..0f016230 100644
--- a/FModel/Enums.cs
+++ b/FModel/Enums.cs
@@ -169,6 +169,7 @@ public enum EAssetCategory : uint
LegoBatman = GameSpecific + 5,
ArcSys = GameSpecific + 6,
GothamKnights = GameSpecific + 7,
+ Nascar = GameSpecific + 8,
}
public enum EAssetFamily
diff --git a/FModel/ViewModels/CUE4ParseViewModel.cs b/FModel/ViewModels/CUE4ParseViewModel.cs
index d9374782..e7882e7b 100644
--- a/FModel/ViewModels/CUE4ParseViewModel.cs
+++ b/FModel/ViewModels/CUE4ParseViewModel.cs
@@ -30,6 +30,7 @@ using CUE4Parse.GameTypes.DFHO.Assets.Objects;
using CUE4Parse.GameTypes.HonorOfKings.FileProvider;
using CUE4Parse.GameTypes.KRD.Assets.Exports;
using CUE4Parse.GameTypes.LegoBatman.Assets;
+using CUE4Parse.GameTypes.Nascar.Assets.Exports;
using CUE4Parse.GameTypes.LordOfMysteries.FileProvider;
using CUE4Parse.GameTypes.Tencent.RocoKingdomWorld.Assets.Objects;
using CUE4Parse.GameTypes.SMG.UE4.Assets.Exports.Wwise;
@@ -1594,6 +1595,7 @@ public class CUE4ParseViewModel : ViewModel
// }:
case UPaperSprite when isNone && UserSettings.Default.PreviewMaterials:
case UStaticMesh when isNone && UserSettings.Default.PreviewStaticMeshes:
+ case UIRMesh when isNone && UserSettings.Default.PreviewStaticMeshes:
case UGeometryCollection when isNone && UserSettings.Default.PreviewStaticMeshes:
case USkinnedAsset when isNone && UserSettings.Default.PreviewSkeletalMeshes:
case USkeleton when isNone && UserSettings.Default.SaveSkeletonAsMesh:
@@ -1621,6 +1623,7 @@ public class CUE4ParseViewModel : ViewModel
return true;
}
case UStaticMesh when HasFlag(bulk, EBulkType.Meshes):
+ case UIRMesh when HasFlag(bulk, EBulkType.Meshes):
case UGeometryCollection when HasFlag(bulk, EBulkType.Meshes):
case USkinnedAsset when HasFlag(bulk, EBulkType.Meshes):
case USkeleton when UserSettings.Default.SaveSkeletonAsMesh && HasFlag(bulk, EBulkType.Meshes):
diff --git a/FModel/ViewModels/GameFileViewModel.cs b/FModel/ViewModels/GameFileViewModel.cs
index dffb8191..7b9551ae 100644
--- a/FModel/ViewModels/GameFileViewModel.cs
+++ b/FModel/ViewModels/GameFileViewModel.cs
@@ -11,6 +11,7 @@ using CUE4Parse.GameTypes.Borderlands3.Assets.Exports;
using CUE4Parse.GameTypes.Borderlands4.Assets.Exports;
using CUE4Parse.GameTypes.FN.Assets.Exports.DataAssets;
using CUE4Parse.GameTypes.LegoBatman.Assets;
+using CUE4Parse.GameTypes.Nascar.Assets.Exports;
using CUE4Parse.GameTypes.RED.Assets.Exports;
using CUE4Parse.GameTypes.SMG.UE4.Assets.Exports.Wwise;
using CUE4Parse.GameTypes.SMG.UE4.Assets.Objects;
@@ -294,6 +295,7 @@ public class GameFileViewModel(GameFile asset) : ViewModel
UWubAudioEvent or UWubDialogueEvent when GameVersion is EGame.GAME_LEGOBatmanLegacyoftheDarkKnight => (EAssetCategory.LegoBatman, EBulkType.Audio), // Lego Batman: Legacy of the Dark Knight;
UREDBinaryObject => (EAssetCategory.ArcSys, EBulkType.None), // Arc System Works games;
UOrpheusBank or UOrpheusEvent => (EAssetCategory.GothamKnights, EBulkType.Audio), // Gotham Knights;
+ UIRMesh => (EAssetCategory.Nascar, EBulkType.Meshes), // iRacing games;
_ => (EAssetCategory.All, EBulkType.None),
};
diff --git a/FModel/Views/Resources/Colors.xaml b/FModel/Views/Resources/Colors.xaml
index 990915bb..b3f257e5 100644
--- a/FModel/Views/Resources/Colors.xaml
+++ b/FModel/Views/Resources/Colors.xaml
@@ -60,10 +60,11 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/FModel/Views/Resources/Converters/FileToGeometryConverter.cs b/FModel/Views/Resources/Converters/FileToGeometryConverter.cs
index 790c3091..515650c1 100644
--- a/FModel/Views/Resources/Converters/FileToGeometryConverter.cs
+++ b/FModel/Views/Resources/Converters/FileToGeometryConverter.cs
@@ -102,6 +102,7 @@ public class FileToGeometryConverter : IMultiValueConverter
EAssetCategory.DeltaForce => ("DeltaForceIcon", "DeltaForceBrush"),
EAssetCategory.LegoBatman or EAssetCategory.GothamKnights => ("BatmanIcon", "BatmanBrush"),
EAssetCategory.ArcSys => ("ArcSysIcon", "ArcSysBrush"),
+ EAssetCategory.Nascar => ("NascarIcon", "NascarBrush"),
_ => ("AssetIcon", "NeutralBrush")
};
diff --git a/FModel/Views/Resources/Icons.xaml b/FModel/Views/Resources/Icons.xaml
index 42d63ec6..e3cc5cab 100644
--- a/FModel/Views/Resources/Icons.xaml
+++ b/FModel/Views/Resources/Icons.xaml
@@ -130,4 +130,5 @@
M87 394c0-104.133.024-207.766-.03-311.4-.006-13.608 6.762-23.51 16.837-31.523 7.754-6.167 16.77-8.237 26.768-8.193 54.98.243 109.963.145 164.946.055 3.949-.007 6.776 1.039 9.657 3.986 21.836 22.338 43.869 44.483 65.897 66.632 17.974 18.074 36.077 36.02 53.959 54.186 1.608 1.634 2.842 4.459 2.845 6.733.143 86.305.357 172.612-.118 258.915-.076 13.886-8.294 24.513-20.337 31.764-6.993 4.211-14.445 5.94-22.668 5.928-85.805-.135-171.61-.012-257.416-.15-15.197-.024-26.452-7.599-34.362-20.33-4.292-6.908-6.424-14.292-6.09-22.616.45-11.146.112-22.323.112-33.987m230.036-58.587c-9.35-15.192-18.706-30.381-28.048-45.578-11.872-19.312-23.87-38.549-35.49-58.01-2.627-4.397-4.007-2.94-5.855.058-9.028 14.64-18.017 29.304-27.02 43.96-11.697 19.041-23.413 38.07-35.08 57.13-4.59 7.5-9.068 15.067-13.964 23.214h23.358l-24.97 72.229 1.251 1.045 91.933-98.061h-31.955l-1.005-1.367 20.48-33.026L300.65 378c-16.866 0-32.688-.103-48.506.122-2.142.03-4.694 1.242-6.3 2.725-3.49 3.222-6.49 6.974-9.692 10.508-5.703 6.298-11.408 12.595-17.472 19.29h144.534c-15.406-25.159-30.557-49.9-46.177-75.232M323.5 121l-44.175-43.55v114.26h114.883z
M209.195,326.458l-91.46-38.359c-2.957-1.241-6.329-0.987-9.067,0.68c-2.739,1.667-4.512,4.546-4.769,7.742 c-2.154,26.854,13.093,51.897,37.941,62.319c7.675,3.219,15.756,4.851,24.02,4.851c18.062,0,35.201-7.822,47.024-21.461 c2.1-2.423,2.911-5.706,2.181-8.827C214.334,330.281,212.151,327.698,209.195,326.458z M165.859,343.691 c-5.593,0-11.071-1.109-16.284-3.295c-12.136-5.09-20.896-15.321-24.306-27.45l60.906,25.544 C180.02,341.866,173.047,343.691,165.859,343.691z M394.87,0.131c-4.841-0.789-9.535,2.045-11.091,6.693l-55.704,166.286c-28.719-19.709-63.039-30.432-98.075-30.432 s-69.355,10.724-98.075,30.432L76.222,6.825c-1.557-4.648-6.251-7.482-11.091-6.693c-4.837,0.789-8.391,4.968-8.391,9.87v359.52 c0,3.808,2.163,7.286,5.579,8.969l163.26,80.48c1.394,0.687,2.908,1.031,4.421,1.031s3.028-0.344,4.421-1.031l163.26-80.48 c3.416-1.684,5.579-5.161,5.579-8.969V10.001C403.261,5.099,399.708,0.92,394.87,0.131z M383.261,363.301l-153.26,75.551 L76.74,363.301V71.335l40.616,121.247c1.043,3.114,3.549,5.518,6.704,6.43c3.155,0.913,6.558,0.217,9.102-1.86 c27.234-22.231,61.625-34.475,96.838-34.475s69.604,12.243,96.838,34.475c2.545,2.077,5.947,2.771,9.102,1.86 c3.155-0.912,5.661-3.316,6.704-6.43l40.616-121.247V363.301z M250.806,326.458c-2.957,1.24-5.14,3.823-5.87,6.945c-0.73,3.122,0.081,6.405,2.181,8.827 c11.823,13.639,28.962,21.461,47.024,21.461c8.263,0,16.344-1.632,24.02-4.851c24.848-10.421,40.095-35.465,37.941-62.319 c-0.257-3.196-2.03-6.075-4.769-7.742c-2.739-1.667-6.111-1.92-9.067-0.68L250.806,326.458z M310.426,340.396 c-5.213,2.186-10.691,3.295-16.284,3.295c-7.188,0-14.16-1.825-20.315-5.2l60.906-25.544 C331.322,325.075,322.562,335.306,310.426,340.396z z
M260.83 96.87C259.13 95.64 257.42 94.4 255.71 93.17C253.64 92.07 251.57 90.98 249.5 89.89C248.25 88.98 247 88.07 245.76 87.17C245.1 86.83 244.45 86.5 243.79 86.17C243.03 85.78 242.26 85.39 241.5 85C240.83 84.69 240.17 84.37 239.5 84.06C237.5 83.33 235.5 82.6 233.5 81.87C233.17 81.55 232.83 81.24 232.5 80.92C231.83 80.92 231.17 80.92 230.5 80.92C230.17 80.59 229.83 80.26 229.5 79.93C228.83 79.93 228.17 79.93 227.5 79.93C227.17 79.6 226.83 79.27 226.5 78.94C225.83 78.94 225.17 78.94 224.5 78.94C224.17 78.63 223.83 78.32 223.5 78.01C222.17 77.67 220.83 77.32 219.5 76.98C217.5 76.61 215.5 76.25 213.5 75.89C211.83 75.55 210.17 75.21 208.5 74.87C206.21 73.8 204.03 73.92 201.5 73.87C198.81 72.36 195.24 72.92 192.17 72.88C190.11 72.86 188.47 72.1 186.5 72C184.29 71.89 182.55 72.68 180.47 72.84C176.59 73.15 171.98 72 168.5 73.87C166.01 73.92 163.68 73.67 161.5 74.93C160.5 74.93 159.5 74.93 158.5 74.93C158.17 75.26 157.83 75.59 157.5 75.92C156.5 75.92 155.5 75.92 154.5 75.92C153.17 76.27 151.83 76.63 150.5 76.98C149.17 77.62 147.83 78.27 146.5 78.92C145.83 78.92 145.17 78.92 144.5 78.92C144.17 79.25 143.83 79.59 143.5 79.92C142.83 79.92 142.17 79.92 141.5 79.92C141.17 80.26 140.83 80.59 140.5 80.93C139.83 80.93 139.17 80.93 138.5 80.93C137.5 81.58 136.5 82.24 135.5 82.89C134.83 83.21 134.17 83.54 133.5 83.86C132.17 84.25 130.83 84.64 129.5 85.03C128.75 85.41 128 85.79 127.24 86.17C125.33 87.41 123.41 88.65 121.5 89.9C120.41 90.32 119.33 90.74 118.24 91.17C114.23 93.83 110.23 96.5 106.22 99.17C103.76 102.38 100.3 104.54 97.33 107.16C94.08 110.02 91.62 113.71 88.62 116.79C86.87 118.6 82.39 123.22 81.89 125.5C80.56 127.5 79.23 129.5 77.9 131.5C76.89 133.17 75.89 134.83 74.89 136.5C72.75 138.67 70.27 143.5 69.85 146.5C68.88 148.17 67.91 149.83 66.94 151.5C66.94 152.17 66.94 152.83 66.94 153.5C65.94 155.5 64.95 157.5 63.95 159.5C63.95 160.17 63.95 160.83 63.95 161.5C63.59 162.83 63.22 164.17 62.86 165.5C62.57 165.83 62.28 166.17 62 166.5C61.66 167.83 61.32 169.17 60.98 170.5C60.6 173.17 60.23 175.83 59.86 178.5C59.58 178.83 59.31 179.17 59.03 179.5C58.92 181.56 59.35 183.91 57.86 185.5C57.86 193 57.86 200.49 57.86 207.99C43.96 207.99 30.06 207.99 16.17 207.99C14.39 205.52 15.13 193.25 15.54 189.79C15.92 186.5 15.67 183.13 16.12 179.85C17.74 168 20.89 156.79 24.79 145.61C36.35 112.48 62.96 83.82 94.3 68.16C106.51 62.06 120.22 58.02 133.59 55.15C153.36 50.9 175.04 53.16 194.35 57.82C213.62 62.47 231.46 71.58 247.05 83.78C250.09 86.16 260.28 93.47 260.83 96.87ZM270.65 116.5C269.32 117.12 268.53 116.34 267.74 115.17C266.66 114.46 265.58 113.75 264.5 113.05C262.83 112.05 261.17 111.05 259.5 110.05C258.83 109.71 258.17 109.38 257.5 109.05C256.83 108.71 256.17 108.38 255.5 108.05C254.83 107.71 254.17 107.38 253.5 107.05C251.17 106.05 248.83 105.05 246.5 104.04C245.83 104.04 245.17 104.04 244.5 104.04C244.17 103.71 243.83 103.38 243.5 103.04C242.83 103.04 242.17 103.04 241.5 103.04C241.17 102.71 240.83 102.38 240.5 102.05C239.35 101.72 238.2 101.39 237.05 101.07C236.2 101.07 235.35 101.07 234.5 101.07C234.17 100.73 233.83 100.39 233.5 100.04C232.5 100.04 231.5 100.04 230.5 100.04C230.17 99.71 229.83 99.37 229.5 99.04C227.39 99.04 225.28 99.04 223.17 99.04C222.72 98.71 222.28 98.38 221.83 98.05C214.06 98.05 206.28 98.05 198.5 98.05C196.18 99.58 193.57 98.84 190.88 99.17C190.42 99.46 189.96 99.75 189.5 100.05C188.5 100.05 187.5 100.05 186.5 100.05C186.17 100.38 185.83 100.71 185.5 101.04C184.5 101.04 183.5 101.04 182.5 101.04C181.35 101.41 180.2 101.79 179.05 102.17C177.87 102.46 176.68 102.75 175.5 103.05C175.17 103.38 174.83 103.71 174.5 104.05C173.83 104.05 173.17 104.05 172.5 104.05C171.83 104.38 171.17 104.71 170.5 105.05C170.17 105.38 169.83 105.71 169.5 106.04C168.83 106.34 168.17 106.65 167.5 106.96C164.5 108.32 161.5 109.68 158.5 111.05C157.83 111.38 157.17 111.71 156.5 112.05C155.44 112.75 154.38 113.46 153.32 114.17C152.32 114.83 151.32 115.5 150.32 116.17C149.38 116.79 148.44 117.42 147.5 118.05C145.86 119.74 143.89 120.79 142.18 122.34C137.68 126.41 133.94 131.58 129.17 135.32C128.17 136.66 127.17 137.99 126.17 139.32C124.83 141.32 123.5 143.32 122.17 145.32C121.46 146.38 120.75 147.44 120.05 148.5C119.32 150.17 118.6 151.83 117.88 153.5C117.56 154.17 117.24 154.83 116.93 155.5C116.61 156.17 116.29 156.83 115.97 157.5C115.33 158.5 114.69 159.5 114.05 160.5C113.71 161.83 113.38 163.17 113.04 164.5C112.7 164.83 112.36 165.17 112.02 165.5C112.02 166.17 112.02 166.83 112.02 167.5C111.69 167.83 111.36 168.17 111.02 168.5C111.02 169.17 111.02 169.83 111.02 170.5C110.69 170.83 110.36 171.17 110.03 171.5C110.03 172.28 110.03 173.06 110.03 173.83C109.71 174.28 109.39 174.72 109.06 175.17C109.06 175.94 109.06 176.72 109.06 177.5C108.72 177.83 108.38 178.17 108.05 178.5C108.05 179.83 108.05 181.17 108.05 182.5C107.75 182.96 107.46 183.43 107.17 183.89C106.9 186.03 107.27 187.67 106.04 189.5C106.04 195.69 106.04 201.87 106.04 208.06C94.62 208.06 83.2 208.06 71.78 208.06C69.79 203.28 71.31 194.33 71.73 189.17C73.32 169.77 79.51 151.92 89.75 135.59C113.98 96.94 161.95 75.37 207.15 83.76C212.51 84.76 218.19 85.37 223.35 87.17C234.32 90.98 245.99 96.11 255.34 103.16C259.12 106.02 263.12 109.01 266.61 112.24C268.07 113.59 269.06 115.23 270.65 116.5ZM278.19 132.5C277 132.68 274.66 131.29 273.78 130.17C271.35 129.07 268.93 127.97 266.5 126.87C265.83 126.54 265.17 126.2 264.5 125.87C263.5 125.23 262.5 124.58 261.5 123.94C260.83 123.94 260.17 123.94 259.5 123.94C259.17 123.6 258.83 123.25 258.5 122.91C257.83 122.91 257.17 122.91 256.5 122.91C256.17 122.59 255.83 122.27 255.5 121.95C254.28 121.61 253.06 121.27 251.83 120.93C250.72 120.93 249.61 120.93 248.5 120.93C248.17 120.59 247.83 120.25 247.5 119.92C245.83 119.92 244.17 119.92 242.5 119.92C240.89 118.52 238.89 118.98 236.83 118.95C232.81 118.9 222.52 117.78 219.5 119.91C217.83 119.91 216.17 119.91 214.5 119.91C214.17 120.25 213.83 120.58 213.5 120.92C212.5 120.92 211.5 120.92 210.5 120.92C210.17 121.25 209.83 121.58 209.5 121.91C208.83 121.91 208.17 121.91 207.5 121.91C207.11 122.22 206.72 122.53 206.33 122.83C204.72 123.21 203.11 123.58 201.5 123.95C200.5 124.31 199.5 124.66 198.5 125.01C197.5 125.63 196.5 126.25 195.5 126.87C194.83 127.2 194.17 127.53 193.5 127.86C192.83 128.2 192.17 128.53 191.5 128.87C190.42 129.3 189.34 129.73 188.27 130.17C185.27 132.17 182.28 134.17 179.29 136.17C176.57 139.32 172.95 141.22 170.16 144.33C167.45 147.35 165.36 151.78 162.17 154.2C161.5 155.22 160.83 156.24 160.17 157.27C159.17 158.93 158.17 160.59 157.17 162.25C156.83 162.92 156.5 163.58 156.17 164.25C155.83 164.91 155.5 165.58 155.17 166.24C154.75 167 154.34 167.75 153.93 168.5C153.93 169.17 153.93 169.83 153.93 170.5C153.28 171.5 152.62 172.5 151.97 173.5C151.97 174.17 151.97 174.83 151.97 175.5C151.62 175.83 151.27 176.17 150.91 176.5C150.91 177.28 150.91 178.06 150.91 178.83C150.56 180.06 150.22 181.28 149.87 182.5C148.71 183.95 148.88 185.49 148.83 187.33C148.52 187.72 148.21 188.11 147.9 188.5C147.9 190.11 147.9 191.72 147.9 193.33C147.59 193.72 147.27 194.11 146.96 194.5C146.96 199.01 146.96 203.52 146.96 208.03C137.98 208.03 129.01 208.03 120.03 208.03C118.36 205.93 119.31 197.65 119.61 194.83C120.93 182.23 123.58 171.1 128.82 159.67C147.41 119.03 195.48 97.71 238.44 109.78C249.79 112.96 259.93 117.72 269.44 124.72C272.06 126.65 277.24 129.25 278.19 132.5Z
+ M253.01.08h36.82c3.01 1.66 19.6 2.17 24.62 3.14 18.63 3.63 36.72 8.49 54.17 16.01 62.17 26.81 111.64 81.47 131.54 146.16a239 239 0 0 1 9.02 42.45c.57 4.78 1.71 10.08 1.18 14.86-3.68.74-11.79-2.71-15.77-3.59-13.25-2.96-26.37-6.61-39.54-9.9-44.82-11.2-89.76-21.98-134.5-33.46-11.12-2.86-23.02-7.34-34.62-7.4-18.74-.09-37.3 13.03-42.78 31.09-2.77 9.13-2.15 18.59-2.15 28.04v73.41c0 12.76-.35 24.77 6.21 36.13 8.02 13.91 21.93 19.05 36.18 24.18 9.9 3.56 19.77 7.29 29.57 11.08 46.37 17.94 93.3 34.5 139.66 52.5 13.3 5.16 26.76 9.99 40.11 15.04 3.92 1.48 13.07 3.58 15.76 6.39-.29 5.88-3.67 12.3-6.17 17.52-8.68 18.09-23.96 32.76-42.24 40.99a78 78 0 0 1-15.44 5.16c-3.05.65-7.59.45-10.21 2.04h-17.77c-2.37-1.56-7.06-1.44-9.95-2.01-5.23-1.02-10.38-2.77-15.53-4.11a2330 2330 0 0 1-61.89-17.02c-68.01-19.71-137-36.21-204.84-56.53-13.26-3.97-26.82-6.95-40.06-11-9.2-2.8-18.59-4.56-27.4-8.58a97 97 0 0 1-47.8-48.05C.67 345.68 1 325.98 1 305.56c0-14.61-.57-29.36.27-43.95 1.76-30.54 7.21-60.38 16.91-89.31a275 275 0 0 1 12.07-30.05c2.13-4.51 6.12-9.94 6.84-14.83-8.32-9.13-17.55-17.52-26.22-26.32-4.18-4.24-9.47-8.37-9.83-14.83-.52-9.54 6.26-13.56 13.57-17.64A636 636 0 0 1 53.23 48.8c42.71-20.13 87.89-32.69 134.19-41.57a301 301 0 0 1 41.46-5.19c5.11-.24 20.33-.22 24.13-1.96ZM311 204.21v134.93c-4.36.19-10.13-3.44-14.23-4.95-7.04-2.6-17.65-4.46-22.5-10.66-4.93-6.32-3.27-15.6-3.27-23.11V220c0-7.16-.15-14.11 6.23-18.74 8.79-6.39 24.13.85 33.77 2.95Zm200 50.15v159.68l-170-63.42V212.05zm-381.62-33.97c-21.42 4.06-39.7 17.24-46.13 38.91-10.73 36.16 19.9 75.1 58.19 70.48 25.78-3.11 46.62-23.41 49.35-49.47 2.99-28.5-18.1-55.09-46.08-59.48-4.96-.78-10.33-1.39-15.33-.44Zm2.34 29.93c31.2-6.61 42.1 44.02 7.85 49.46-31.39 4.99-39.97-42.65-7.85-49.46Z
diff --git a/FModel/Views/Snooper/Models/StaticModel.cs b/FModel/Views/Snooper/Models/StaticModel.cs
index d0fba195..f7af310b 100644
--- a/FModel/Views/Snooper/Models/StaticModel.cs
+++ b/FModel/Views/Snooper/Models/StaticModel.cs
@@ -1,12 +1,14 @@
using System;
using System.Numerics;
-using CUE4Parse_Conversion.Dto;
+using CUE4Parse.GameTypes.Nascar.Assets.Exports;
using CUE4Parse.UE4.Assets.Exports.GeometryCollection;
using CUE4Parse.UE4.Assets.Exports.Material;
using CUE4Parse.UE4.Assets.Exports.StaticMesh;
using CUE4Parse.UE4.Assets.Exports.Texture;
using CUE4Parse.UE4.Objects.Core.Math;
using CUE4Parse.UE4.Objects.PhysicsEngine;
+using CUE4Parse.UE4.Objects.UObject;
+using CUE4Parse_Conversion.Dto;
using FModel.Views.Snooper.Shading;
using OpenTK.Graphics.OpenGL4;
@@ -150,6 +152,12 @@ public class StaticModel : UModel
Box = staticMesh.Bounds * Constants.SCALE_DOWN_RATIO;
}
+ public StaticModel(UIRMesh export, StaticMeshDto mesh)
+ : base(export, mesh.LODs[LodLevel], new FPackageIndex[mesh.Materials.Length], mesh.LODs[LodLevel].Vertices, mesh.LODs.Count)
+ {
+ Box = mesh.Bounds * Constants.SCALE_DOWN_RATIO;
+ }
+
public override void RenderCollision(Shader shader)
{
base.RenderCollision(shader);
diff --git a/FModel/Views/Snooper/Renderer.cs b/FModel/Views/Snooper/Renderer.cs
index baaf5b93..e2749c52 100644
--- a/FModel/Views/Snooper/Renderer.cs
+++ b/FModel/Views/Snooper/Renderer.cs
@@ -13,6 +13,7 @@ using CUE4Parse.UE4.Assets.Exports.GeometryCollection;
using CUE4Parse.UE4.Assets.Exports.Material;
using CUE4Parse.UE4.Assets.Exports.StaticMesh;
using CUE4Parse.UE4.Assets.Exports.Texture;
+using CUE4Parse.GameTypes.Nascar.Assets.Exports;
using CUE4Parse.UE4.Objects.Core.Math;
using CUE4Parse.UE4.Objects.Core.Misc;
using CUE4Parse.UE4.Objects.Engine;
@@ -90,6 +91,9 @@ public class Renderer : IDisposable
case UStaticMesh when export.Value is UStaticMesh st:
LoadStaticMesh(st, UserSettings.Default.NaniteMeshExportFormat);
break;
+ case UIRMesh when export.Value is UIRMesh ir:
+ LoadIRMesh(ir);
+ break;
case UGeometryCollection when export.Value is UGeometryCollection gc:
LoadStaticMesh(gc, UserSettings.Default.NaniteMeshExportFormat);
break;
@@ -366,13 +370,39 @@ public class Renderer : IDisposable
Options.SelectModel(guid);
}
+ private void LoadIRMesh(UIRMesh original)
+ {
+ var guid = new FGuid((uint) original.GetFullName().GetHashCode());
+ if (Options.TryGetModel(guid, out var model))
+ {
+ model.AddInstance(Transform.Identity);
+ Application.Current.Dispatcher.Invoke(model.SetupInstances);
+ return;
+ }
+
+ StaticMeshDto mesh;
+ try
+ {
+ mesh = new StaticMeshDto(original);
+ }
+ catch (Exception e)
+ {
+ Log.Error(e, "Failed to convert IR mesh");
+ return;
+ }
+
+ Options.Models[guid] = new StaticModel(original, mesh);
+ mesh.Dispose();
+ Options.SelectModel(guid);
+ }
+
private void LoadStaticMesh(UGeometryCollection original, ENaniteMeshFormat naniteFormat = ENaniteMeshFormat.NoNanite)
{
var guid = new FGuid((uint) original.GetFullName().GetHashCode());
if (Options.TryGetModel(guid, out var model))
{
model.AddInstance(Transform.Identity);
- Application.Current.Dispatcher.Invoke(() => model.SetupInstances());
+ Application.Current.Dispatcher.Invoke(model.SetupInstances);
return;
}
@@ -397,7 +427,7 @@ public class Renderer : IDisposable
if (Options.TryGetModel(guid, out var model))
{
model.AddInstance(Transform.Identity);
- Application.Current.Dispatcher.Invoke(() => model.SetupInstances());
+ Application.Current.Dispatcher.Invoke(model.SetupInstances);
return;
}
@@ -408,7 +438,7 @@ public class Renderer : IDisposable
}
catch (Exception e)
{
- Log.Error(e, "Failed to convert chaos cloth asset");
+ Log.Error(e, "Failed to convert skinned asset");
return;
}
@@ -456,7 +486,7 @@ public class Renderer : IDisposable
if (Options.TryGetModel(guid, out var model))
{
model.AddInstance(Transform.Identity);
- Application.Current.Dispatcher.Invoke(() => model.SetupInstances());
+ Application.Current.Dispatcher.Invoke(model.SetupInstances);
return;
}
From 2a09812aa992bdc50886ec69128515124d826023 Mon Sep 17 00:00:00 2001
From: LongerWarrior
Date: Thu, 24 Sep 2026 13:30:40 +0300
Subject: [PATCH 2/6] Add IRMEsh preview and export
---
CUE4Parse | 2 +-
FModel/ViewModels/CUE4ParseViewModel.cs | 22 ++++--
FModel/Views/Snooper/Models/StaticModel.cs | 5 +-
FModel/Views/Snooper/Models/UModel.cs | 2 +-
FModel/Views/Snooper/Renderer.cs | 85 +++++++++++++---------
5 files changed, 73 insertions(+), 43 deletions(-)
diff --git a/CUE4Parse b/CUE4Parse
index 756358e4..fe8f97ce 160000
--- a/CUE4Parse
+++ b/CUE4Parse
@@ -1 +1 @@
-Subproject commit 756358e40b47b65106a8c74893652c659eb56633
+Subproject commit fe8f97ce2d8062f6cacee2422215c4fd2b72eed7
diff --git a/FModel/ViewModels/CUE4ParseViewModel.cs b/FModel/ViewModels/CUE4ParseViewModel.cs
index e7882e7b..d8931b0f 100644
--- a/FModel/ViewModels/CUE4ParseViewModel.cs
+++ b/FModel/ViewModels/CUE4ParseViewModel.cs
@@ -722,12 +722,15 @@ public class CUE4ParseViewModel : ViewModel
break;
}
+ var showSnooper = false;
for (var i = result.InclusiveStart; i < result.ExclusiveEnd; i++)
{
- if (CheckExport(cancellationToken, result.Package, i, bulk))
+ if (CheckExport(cancellationToken, result.Package, i, ref showSnooper, bulk))
break;
}
+ if (showSnooper) SnooperViewer.Run();
+
break;
}
case "ini" when entry.Name.Contains("BinaryConfig"):
@@ -1249,14 +1252,15 @@ public class CUE4ParseViewModel : ViewModel
TabControl.SelectedTab.Highlighter = AvalonExtensions.HighlighterSelector(""); // json
TabControl.SelectedTab.SetDocumentText(JsonConvert.SerializeObject(result.GetDisplayData(), Formatting.Indented), false, false);
+ var showSnooper = false;
for (var i = result.InclusiveStart; i < result.ExclusiveEnd; i++)
{
- if (CheckExport(cancellationToken, result.Package, i))
+ if (CheckExport(cancellationToken, result.Package, i, ref showSnooper))
break;
}
}
- private bool CheckExport(CancellationToken cancellationToken, IPackage pkg, int index, EBulkType bulk = EBulkType.None) // return true once you want to stop searching for exports
+ private bool CheckExport(CancellationToken cancellationToken, IPackage pkg, int index, ref bool showSnooper, EBulkType bulk = EBulkType.None) // return true once you want to stop searching for exports
{
var isNone = bulk == EBulkType.None;
var updateUi = !HasFlag(bulk, EBulkType.Auto);
@@ -1606,20 +1610,26 @@ public class CUE4ParseViewModel : ViewModel
pkg.Name.Contains("/MI_BPTile/", StringComparison.OrdinalIgnoreCase))):
{
if (SnooperViewer.TryLoadExport(cancellationToken, dummy, pointer.Object))
- SnooperViewer.Run();
+ showSnooper = true;
return true;
}
+ case UIRMeshComponent when isNone && UserSettings.Default.PreviewStaticMeshes:
+ {
+ if (SnooperViewer.TryLoadExport(cancellationToken, dummy, pointer.Object))
+ showSnooper = true;
+ return false;
+ }
case UMaterialInstance when isNone && ModelIsOverwritingMaterial && pointer.Object.Value is UMaterialInstance m:
{
SnooperViewer.Renderer.Swap(m);
- SnooperViewer.Run();
+ showSnooper = true;
return true;
}
case UAnimSequenceBase when isNone && UserSettings.Default.PreviewAnimations || ModelIsWaitingAnimation:
{
// animate all animations using their specified skeleton or when we explicitly asked for a loaded model to be animated (ignoring whether we wanted to preview animations)
SnooperViewer.Renderer.Animate(pointer.Object.Value);
- SnooperViewer.Run();
+ showSnooper = true;
return true;
}
case UStaticMesh when HasFlag(bulk, EBulkType.Meshes):
diff --git a/FModel/Views/Snooper/Models/StaticModel.cs b/FModel/Views/Snooper/Models/StaticModel.cs
index f7af310b..5ac1ce5d 100644
--- a/FModel/Views/Snooper/Models/StaticModel.cs
+++ b/FModel/Views/Snooper/Models/StaticModel.cs
@@ -152,9 +152,10 @@ public class StaticModel : UModel
Box = staticMesh.Bounds * Constants.SCALE_DOWN_RATIO;
}
- public StaticModel(UIRMesh export, StaticMeshDto mesh)
- : base(export, mesh.LODs[LodLevel], new FPackageIndex[mesh.Materials.Length], mesh.LODs[LodLevel].Vertices, mesh.LODs.Count)
+ public StaticModel(UIRMesh export, StaticMeshDto mesh, int meshIndex)
+ : base(export, mesh.LODs[LodLevel], export.Materials, mesh.LODs[LodLevel].Vertices, mesh.LODs.Count)
{
+ Name = meshIndex > 0 ? $"{Name}_{meshIndex}": Name;
Box = mesh.Bounds * Constants.SCALE_DOWN_RATIO;
}
diff --git a/FModel/Views/Snooper/Models/UModel.cs b/FModel/Views/Snooper/Models/UModel.cs
index 9fa2a11d..8f429988 100644
--- a/FModel/Views/Snooper/Models/UModel.cs
+++ b/FModel/Views/Snooper/Models/UModel.cs
@@ -46,7 +46,7 @@ public abstract class UModel : IRenderableModel where TVertex : struct,
public VertexArrayObject Vao { get; set; }
public string Path { get; }
- public string Name { get; }
+ public string Name { get; protected set; }
public string Type { get; protected set; }
public int UvCount { get; }
public uint[] Indices { get; set; }
diff --git a/FModel/Views/Snooper/Renderer.cs b/FModel/Views/Snooper/Renderer.cs
index e2749c52..e99f9afa 100644
--- a/FModel/Views/Snooper/Renderer.cs
+++ b/FModel/Views/Snooper/Renderer.cs
@@ -23,6 +23,7 @@ using CUE4Parse_Conversion.Animations;
using CUE4Parse_Conversion.Dto;
using CUE4Parse_Conversion.Meshes;
using CUE4Parse_Conversion.Options;
+using CUE4Parse.UE4.Assets.Exports.Component;
using FModel.Creator;
using FModel.Settings;
using FModel.Views.Snooper.Animations;
@@ -91,8 +92,11 @@ public class Renderer : IDisposable
case UStaticMesh when export.Value is UStaticMesh st:
LoadStaticMesh(st, UserSettings.Default.NaniteMeshExportFormat);
break;
- case UIRMesh when export.Value is UIRMesh ir:
- LoadIRMesh(ir);
+ case UIRMesh when export.Value is UIRMesh irmc:
+ LoadIRMeshCollection(irmc);
+ break;
+ case UIRMeshComponent when export.Value is UIRMeshComponent meshcomp:
+ LoadIRMeshComponent(meshcomp);
break;
case UGeometryCollection when export.Value is UGeometryCollection gc:
LoadStaticMesh(gc, UserSettings.Default.NaniteMeshExportFormat);
@@ -370,32 +374,40 @@ public class Renderer : IDisposable
Options.SelectModel(guid);
}
- private void LoadIRMesh(UIRMesh original)
+ private void LoadIRMeshCollection(UIRMesh original, FPackageIndex[]? materials = null)
{
- var guid = new FGuid((uint) original.GetFullName().GetHashCode());
+ var hash = (uint) original.GetFullName().GetHashCode();
+ var guid = new FGuid(hash);
if (Options.TryGetModel(guid, out var model))
- {
- model.AddInstance(Transform.Identity);
- Application.Current.Dispatcher.Invoke(model.SetupInstances);
return;
+
+ if (materials is not null && original.Info.MaterialCount == materials.Length)
+ original.SetMaterials(materials);
+ for (int i = 0; i < original.Info.PartCount; i++)
+ {
+ try
+ {
+ var mesh = new StaticMeshDto(original, i);
+ Options.Models[new FGuid(hash ^ (uint) i)] = new StaticModel(original, mesh, i) { IsVisible = true };
+ mesh.Dispose();
+ }
+ catch (Exception e)
+ {
+ Log.Error(e, "Failed to convert IR static mesh part {PartIndex}", i);
+ }
}
- StaticMeshDto mesh;
- try
- {
- mesh = new StaticMeshDto(original);
- }
- catch (Exception e)
- {
- Log.Error(e, "Failed to convert IR mesh");
- return;
- }
-
- Options.Models[guid] = new StaticModel(original, mesh);
- mesh.Dispose();
Options.SelectModel(guid);
}
+ private void LoadIRMeshComponent(UIRMeshComponent original)
+ {
+ if (original.Mesh is { IsNull: false } meshref && meshref.TryLoad(out UIRMesh mesh))
+ {
+ LoadIRMeshCollection(mesh, original.OverrideMaterials);
+ }
+ }
+
private void LoadStaticMesh(UGeometryCollection original, ENaniteMeshFormat naniteFormat = ENaniteMeshFormat.NoNanite)
{
var guid = new FGuid((uint) original.GetFullName().GetHashCode());
@@ -611,26 +623,33 @@ public class Renderer : IDisposable
{
foreach (var component in instanceComponents)
{
- if (!component.TryLoad(out UStaticMeshComponent staticMeshComp) ||
- !staticMeshComp.GetStaticMesh().TryLoad(out UStaticMesh m) || m.Materials.Length < 1)
- continue;
+ if (!component.TryLoad(out UMeshComponent meshComponent)) continue;
- var relation = CalculateTransform(staticMeshComp, transform);
- if (staticMeshComp is UInstancedStaticMeshComponent { PerInstanceSMData.Length: > 0 } instancedStaticMeshComp)
+ if (meshComponent is UStaticMeshComponent staticMeshComp)
{
+ if (!staticMeshComp.GetStaticMesh().TryLoad(out UStaticMesh m) || m.Materials.Length < 1)
+ continue;
- foreach (var perInstanceData in instancedStaticMeshComp.PerInstanceSMData)
+ var relation = CalculateTransform(staticMeshComp, transform);
+ if (staticMeshComp is UInstancedStaticMeshComponent { PerInstanceSMData.Length: > 0 } instancedStaticMeshComp)
{
- ProcessMesh(actor, instancedStaticMeshComp, m, new Transform
+ foreach (var perInstanceData in instancedStaticMeshComp.PerInstanceSMData)
{
- Relation = relation.Matrix,
- Position = perInstanceData.TransformData.Translation * Constants.SCALE_DOWN_RATIO,
- Rotation = perInstanceData.TransformData.Rotation,
- Scale = perInstanceData.TransformData.Scale3D
- });
+ ProcessMesh(actor, instancedStaticMeshComp, m, new Transform
+ {
+ Relation = relation.Matrix,
+ Position = perInstanceData.TransformData.Translation * Constants.SCALE_DOWN_RATIO,
+ Rotation = perInstanceData.TransformData.Rotation,
+ Scale = perInstanceData.TransformData.Scale3D
+ });
+ }
}
+ else ProcessMesh(actor, staticMeshComp, m, relation);
+ }
+ else if (meshComponent is UIRMeshComponent irMeshComponent)
+ {
+ LoadIRMeshComponent(irMeshComponent);
}
- else ProcessMesh(actor, staticMeshComp, m, relation);
}
}
else if (actor.TryGetValue(out FPackageIndex componentTemplate, "ComponentTemplate") &&
From 59a569436fd196aa435b95e9222d0855078ee41e Mon Sep 17 00:00:00 2001
From: Masusder <59669685+Masusder@users.noreply.github.com>
Date: Fri, 2 Oct 2026 19:46:31 +0200
Subject: [PATCH 3/6] Houdini Static Mesh support / HDA export
---
CUE4Parse | 2 +-
FModel/Enums.cs | 1 +
FModel/ViewModels/CUE4ParseViewModel.cs | 4 +++
FModel/ViewModels/GameFileViewModel.cs | 7 +++++
FModel/Views/Resources/Colors.xaml | 1 +
.../Converters/FileToGeometryConverter.cs | 2 ++
FModel/Views/Resources/Icons.xaml | 1 +
FModel/Views/Snooper/Animations/Skeleton.cs | 2 +-
FModel/Views/Snooper/Models/StaticModel.cs | 10 +++++--
FModel/Views/Snooper/Renderer.cs | 30 +++++++++++++++++++
10 files changed, 56 insertions(+), 4 deletions(-)
diff --git a/CUE4Parse b/CUE4Parse
index 83b7d693..52f96d60 160000
--- a/CUE4Parse
+++ b/CUE4Parse
@@ -1 +1 @@
-Subproject commit 83b7d693046d3b3b12dfd343f84e99eb733bae26
+Subproject commit 52f96d60eadf95f2933a5599461d94f0774d08c1
diff --git a/FModel/Enums.cs b/FModel/Enums.cs
index 0f016230..ccd18f2d 100644
--- a/FModel/Enums.cs
+++ b/FModel/Enums.cs
@@ -178,6 +178,7 @@ public enum EAssetFamily
Criware,
Wwise,
FMod,
+ Houdini,
}
public enum EUnluacMode
diff --git a/FModel/ViewModels/CUE4ParseViewModel.cs b/FModel/ViewModels/CUE4ParseViewModel.cs
index 9dd9867f..f92072aa 100644
--- a/FModel/ViewModels/CUE4ParseViewModel.cs
+++ b/FModel/ViewModels/CUE4ParseViewModel.cs
@@ -48,6 +48,7 @@ using CUE4Parse.UE4.Assets.Exports.Criware;
using CUE4Parse.UE4.Assets.Exports.Engine;
using CUE4Parse.UE4.Assets.Exports.Fmod;
using CUE4Parse.UE4.Assets.Exports.GeometryCollection;
+using CUE4Parse.UE4.Assets.Exports.Houdini;
using CUE4Parse.UE4.Assets.Exports.Material;
using CUE4Parse.UE4.Assets.Exports.Sound;
using CUE4Parse.UE4.Assets.Exports.StaticMesh;
@@ -1600,6 +1601,7 @@ public class CUE4ParseViewModel : ViewModel
case UPaperSprite when isNone && UserSettings.Default.PreviewMaterials:
case UStaticMesh when isNone && UserSettings.Default.PreviewStaticMeshes:
case UIRMesh when isNone && UserSettings.Default.PreviewStaticMeshes:
+ case UHoudiniStaticMesh when isNone && UserSettings.Default.PreviewStaticMeshes:
case UGeometryCollection when isNone && UserSettings.Default.PreviewStaticMeshes:
case USkinnedAsset when isNone && UserSettings.Default.PreviewSkeletalMeshes:
case USkeleton when isNone && UserSettings.Default.SaveSkeletonAsMesh:
@@ -1634,6 +1636,8 @@ public class CUE4ParseViewModel : ViewModel
}
case UStaticMesh when HasFlag(bulk, EBulkType.Meshes):
case UIRMesh when HasFlag(bulk, EBulkType.Meshes):
+ case UHoudiniAsset when HasFlag(bulk, EBulkType.Meshes):
+ case UHoudiniStaticMesh when HasFlag(bulk, EBulkType.Meshes):
case UGeometryCollection when HasFlag(bulk, EBulkType.Meshes):
case USkinnedAsset when HasFlag(bulk, EBulkType.Meshes):
case USkeleton when UserSettings.Default.SaveSkeletonAsMesh && HasFlag(bulk, EBulkType.Meshes):
diff --git a/FModel/ViewModels/GameFileViewModel.cs b/FModel/ViewModels/GameFileViewModel.cs
index 7b9551ae..cdc08f4b 100644
--- a/FModel/ViewModels/GameFileViewModel.cs
+++ b/FModel/ViewModels/GameFileViewModel.cs
@@ -32,6 +32,7 @@ using CUE4Parse.UE4.Assets.Exports.Fmod;
using CUE4Parse.UE4.Assets.Exports.FMod;
using CUE4Parse.UE4.Assets.Exports.Foliage;
using CUE4Parse.UE4.Assets.Exports.GeometryCollection;
+using CUE4Parse.UE4.Assets.Exports.Houdini;
using CUE4Parse.UE4.Assets.Exports.Internationalization;
using CUE4Parse.UE4.Assets.Exports.LevelSequence;
using CUE4Parse.UE4.Assets.Exports.Material;
@@ -220,6 +221,8 @@ public class GameFileViewModel(GameFile asset) : ViewModel
UFMODEvent or UFMODBank or UFMODBankLookup or UFMODBus
or UFMODSnapshot or UFMODSnapshotReverb or UFMODVCA => EAssetFamily.FMod,
+ UHoudiniAsset or UHoudiniStaticMesh => EAssetFamily.Houdini,
+
_ => EAssetFamily.None,
};
@@ -235,12 +238,15 @@ public class GameFileViewModel(GameFile asset) : ViewModel
UClassCookedMetaData or UStructCookedMetaData or UEnumCookedMetaData => (EAssetCategory.CookedMetaData, EBulkType.None),
UStaticMesh => (EAssetCategory.StaticMesh, EBulkType.Meshes),
+ UHoudiniStaticMesh => (EAssetCategory.StaticMesh, EBulkType.Meshes),
USkeletalMesh => (EAssetCategory.SkeletalMesh, EBulkType.Meshes),
UChaosClothAsset => (EAssetCategory.ChaosClothAsset, EBulkType.Meshes),
UCustomizableObject => (EAssetCategory.CustomizableObject, EBulkType.None),
UNaniteDisplacedMesh => (EAssetCategory.NaniteDisplacedMesh, EBulkType.None),
UGeometryCollection => (EAssetCategory.GeometryCollection, EBulkType.Meshes),
+ UHoudiniAsset => (EAssetCategory.Data, EBulkType.Meshes),
+
UTexture => (EAssetCategory.Texture, EBulkType.Textures),
UMaterialInterface => (EAssetCategory.Material, EBulkType.None),
@@ -369,6 +375,7 @@ public class GameFileViewModel(GameFile asset) : ViewModel
"acb" or "acf" or "adx" or "awb" or "hca" or "usm" => EAssetFamily.Criware,
"bnk" or "pck" or "wem" => EAssetFamily.Wwise,
"bank" or "fsb" => EAssetFamily.FMod,
+ "hda" or "hip" => EAssetFamily.Houdini,
_ => EAssetFamily.None,
};
diff --git a/FModel/Views/Resources/Colors.xaml b/FModel/Views/Resources/Colors.xaml
index b3f257e5..d2c8758d 100644
--- a/FModel/Views/Resources/Colors.xaml
+++ b/FModel/Views/Resources/Colors.xaml
@@ -58,6 +58,7 @@
+
diff --git a/FModel/Views/Resources/Converters/FileToGeometryConverter.cs b/FModel/Views/Resources/Converters/FileToGeometryConverter.cs
index 515650c1..85b4e714 100644
--- a/FModel/Views/Resources/Converters/FileToGeometryConverter.cs
+++ b/FModel/Views/Resources/Converters/FileToGeometryConverter.cs
@@ -118,6 +118,8 @@ public class FileToGeometryConverter : IMultiValueConverter
(EAssetFamily.FMod, EAssetCategory.Data) => ("FModIcon", "FModBrush"),
(EAssetFamily.FMod, _) => ("FModIcon", brush),
+ (EAssetFamily.Houdini, _) => ("HoudiniIcon", "HoudiniBrush"),
+
_ => (geometry, brush),
};
diff --git a/FModel/Views/Resources/Icons.xaml b/FModel/Views/Resources/Icons.xaml
index e3cc5cab..aafe8a93 100644
--- a/FModel/Views/Resources/Icons.xaml
+++ b/FModel/Views/Resources/Icons.xaml
@@ -122,6 +122,7 @@
M477.02.94h10.15l.46.74 5.58-.09 2.47-.07.53 1.16 5.57-.17 19.81 4.28c1.84 1.44 3.52 1.76 5.93 1.7 9.78 1.22 24.46 8.28 34.04 11.94 19.48 7.42 38.87 14.88 58.33 22.3 1.58.6 3.22.72 4.82 1.18 3.04.87 5.94 2.83 8.9 3.96 6.68 2.55 13.43 5.22 20.26 7.19 1.62.46 3.04 1.65 4.61 2.25 6.6 2.51 13.13 5.2 19.73 7.72 3.81 1.45 7.94 2.32 11.69 3.75 1.35.52 2.28 1.83 3.75 2.25 8.61 2.49 16.82 6.42 25.41 8.9 3.04.88 5.94 2.84 8.9 3.97 6.66 2.54 13.47 5.22 20.27 7.18 1.61.47 3.03 1.65 4.61 2.25 10.43 3.98 20.82 8.42 31.41 11.48 6.86 1.97 13.2 6.27 20.05 8.25 15.33 4.43 29.84 12.21 45.14 16.62 1.62.47 3.04 1.65 4.61 2.25 5.8 2.21 11.78 4.62 17.69 6.33 6.94 2 15.36 5.93 22.3 8.58 1.58.6 3 1.78 4.62 2.25 4.74 1.37 9.08 3.38 13.72 5.14 11.9 4.54 24.64 8.33 33.99 17.48 10.92 10.69 16.78 28.66 16.9 43.59l-.18 335.38c-4.12-.37-8.15-4.7-12.03-6.49l-.24-1.11-3.96-.97-13.72-4.79-.34-1.37-3.82.11-.46-1.08-4.24.32-9.49-1.78-.49-301.07c.26-2 .34-2.71-.97-4.18.02-2.94-1.45-4.82-2.24-7.56-3-10.4-12.87-16.47-23.05-18.98-2.86-.7-5.68-1.29-8.19-2.73l-.23-.67-4.18-.1-95.69-29.05-.48-.98-5.58-.83-114.13-34.27c-1.98-1.68-3.68-1.82-6.33-1.76-6.08-2.42-12.73-3.11-18.76-5.41a145 145 0 0 0-17.16-5.15c-21.86-5.39-52.7-24.27-67.06 4.45a33 33 0 0 0-3.02 11.17l-.78.41.02 5.58v585.84c-.31 2.35-.61 4.1.83 5.95 2.87 13.51 8.23 22.93 22.65 25.81 2.82.57 5.58 1.28 8.58.81 4.46-.7 8.98-2.18 13.32-3.5l4.12-.33.31-1.28 13.58-3.55 4.72-.69.46-1.13c9.67-3.28 19.63-5.71 29.4-8.53 12.37-3.57 24.35-8.05 36.88-11.15 1.92-.47 3.6-1.71 5.47-2.25 6.7-1.93 13.5-4.06 20.27-5.47 4.86-1.01 9.14-3.93 14.23-3.98l-.03 3.72 1.34.32c2.73 8.42 4.79 18.06 9.98 25.54.04 2.17.69 3.08 1.67 5.01l1.21.29c2.56 2.97 4.65 6.4 6.95 9.55 3.1 4.25 7.83 7.89 11.55 11.61-2.23 4.26-11.31 5.26-15.73 7.42-3.86 1.89-7.92 3.15-11.98 4.32-3.87 1.12-7.69 3.38-11.48 4.82-8.76 3.34-17.53 6.43-26.26 9.76l-72.05 27.45c-7.45 2.84-14.87 5.74-22.31 8.58-1.57.6-2.99 1.78-4.61 2.25-7.63 2.2-15.36 5.19-22.83 8.04-2.16.82-4.11 2.47-6.33 3.11-5.63 1.62-10.8 3.91-16.3 6-16.17 6.17-37.14 11.35-54.3 12.29h-14.59c-4.08-.22-8.8-.1-12.43-1.83l-1.36.23-.36-.89-3.86-.02c-6.15-.6-11.77-3.07-17.74-4.31a139 139 0 0 1-21.13-6.33c-1.57-.59-2.99-1.78-4.61-2.25-8.26-2.38-16.47-5.81-24.55-8.9-3.85-1.46-7.53-3.68-11.47-4.82-8.22-2.37-16.51-5.83-24.55-8.9-1.58-.6-3-1.79-4.61-2.25-5.98-1.73-11.85-4.1-17.7-6.33-3.78-1.44-7.6-3.7-11.47-4.82-10.56-3.05-21.09-7.54-31.41-11.47-1.58-.6-3-1.79-4.61-2.26-14.6-4.21-28.66-10.87-42.89-16.29a147 147 0 0 0-11.69-3.76c-1.47-.42-2.4-1.73-3.75-2.25-3.72-1.42-8.05-1.97-11.69-3.75a87 87 0 0 0-11.09-4.62l-.22-1.03-3.42-.19-91.37-34.99-.42-1.01-4.22-.74c-8.55-3.66-17.63-7.18-26.5-9.74-1.61-.47-3.04-1.66-4.61-2.25-7.47-2.85-14.81-5.73-22.3-8.58-12.42-4.74-26.67-9.38-34.98-20.78-7.65-10.47-11.81-23.1-12.6-35.99L1 652.66l-.24-6.77-.07-422.02.35-6.86.55-4.29.98-6.43-.2-1.24 1.21-.48-.2-3.86c.71-6.61 3.74-13.32 7.32-18.89 10.39-16.22 22.1-20.16 39.32-26.73 28.11-10.72 55.95-22.03 84.37-32.53 2.17.04 3.14.16 4.44-1.68l25.86-9.49c1.85-.08 2.32-.14 3.45-1.58l185.25-70.45 4.17-1.75c14.37-5.52 28.86-10.83 43.28-16.33 10.32-3.93 20.16-8.5 30.88-11.15 1.91-.47 3.59-1.71 5.47-2.25 6.08-1.75 12.37-2.52 18.54-3.75 2.34-.47 4.11-1.52 6.6-1.61l6.43.15.46-1.16 1.69.08 5.57.3zM876.86 808.1l-16.91-.03c-4.78-1.78-9.73.02-14.61-.95-1.22-.25-1.67-1.12-2.76-1.53-3.39-1.3-7.33-1.17-10.83-2.04a90 90 0 0 1-16.3-6c-8.23-4.02-17.01-8.61-24.58-14.02-3.44-2.46-6.07-6.03-9.49-8.52-3.44-2.52-12.9-11.58-14.95-15.07-.34-.57-.28-1.42-.65-1.93-.69-.97-2.02-1.34-2.78-2.36-3.3-4.42-6.94-9.69-9.44-14.58-.88-1.73-1.24-3.71-2.3-5.41-3.73-5.95-7.42-13.91-9.14-20.89-.89-3.58-1.16-7.26-2.04-10.82-.67-2.71-1.98-5.18-2.23-8.02-.19-2.32.1-4.34-.26-6.78l-.02-22.09c2.43-37.54 23.68-75.53 55.02-97.92 4.5-3.21 9.77-6.06 14.31-8.84 6.95-4.26 23.72-10.44 31.71-12.04 2.68-.53 5.66-.31 8.26-1.18.82-.27 1.21-1.12 2.04-1.39 4.15-1.35 9.23-.37 13.53-1.04 6.3-.99 14.11-1.82 20.59-.81 3.63.57 11.49.89 14.45 1.85.82.27 1.21 1.12 2.03 1.39 5.87 1.96 12.84 1.82 18.55 4.61 4.38 2.14 8.75 4.38 13.19 6.55 12.69 6.19 28.16 16.71 37.15 28.03 5.62 7.08 11.31 14.52 16.16 22.44 3.48 5.66 6.41 13.6 9.41 19.75 2.25 4.6 2.36 10.28 3.76 15.12.29 1.02 1.14 1.87 1.39 2.9.88 3.55 1.29 7.42 1.85 11.01.48 3.07-.43 6.32.05 9.38 1.33 8.46.6 23.1-1.04 31.61-.64 3.32-2.43 6.45-3.11 9.75-5.96 28.72-26.66 58.06-50.8 75.3a137 137 0 0 1-30.26 16.06c-2.45.93-4.62 2.47-7.18 3.1-4.45 1.1-8.98 1.81-13.41 2.9-1.02.25-1.87 1.15-2.89 1.39-5.11 1.22-10.42-.68-15.47 1.12Zm-3.24-203.39c-1.46 2.14-3.46 1.54-5.55 3.03-2.48 1.77-4.46 4.17-6.91 5.95-1.13.82-2.68 1.36-3.68 2.34-2.66 2.6-5.95 4.83-9.14 7.15-3.4 2.48-6.6 5.51-9.89 8.12-1.37 1.1-2.37 2.95-3.88 3.84-.58.34-1.42.28-1.93.64-2.93 2.09-8 8.25-11.5 9.09-10.77 2.57-29.34-4.97-36.7 5.33-3.06 4.28-2.17 10.88-2.17 15.84v29.17c0 7.15.8 14.56 8.31 17.42 6.91 2.64 16.49 1.02 23.85 1.02 3.72 0 7.87-.61 10.99 1.88 1.44 1.14 2.41 2.78 3.76 3.96 2.03 1.79 4.88 3.29 7.1 4.91 4.55 3.32 8.8 7.46 12.92 11.09 2.35 2.08 5.62 3.62 8.12 5.61 4.19 3.32 10.81 11.09 16.3 11.09 5.03 0 7.42-3.64 8.12-8.12.74-4.74-.28-9.91-.51-14.55-.18-3.77.19-7.31.54-11.15 1.07-11.75-1.16-23.28-.67-34.18.49-11.01.42-22.35 0-33.72-.04-1.07.57-2.18.67-3.3.4-4.39-.31-8.78-.67-13-.48-5.59 1.67-20.62-.65-25.14-1.19-2.33-4.73-3.26-6.83-4.32Zm92.26 88.31.68-.39.02-5.57-.01-18.01.21-4.72-.84-.52c-1.68-5.04-1.32-10.73-3.7-15.62-5.71-11.68-8.76-18.09-17-28.46-4.62-5.83-9.56-13.85-17.98-7.7-3.08 2.25-4.78 7.12-3.01 10.67.52 1.03 1.85 1.69 2.52 2.63 3.67 5.13 7.45 10.26 11.15 15.44 6.86 9.6 10.75 26.57 10.75 38.14 0 11.74-3.13 24.38-9.3 34.44-1.55 2.54-2.24 5.5-4.02 7.99-2.69 3.77-6.7 6.59-9.38 10.35-2.92 4.09-3.17 10.85 1.29 14.1 1.72 1.25 3.5 1.31 5.54 1.31 6.2 0 7.78-4.26 11.58-8.15 7.99-8.15 15.98-22.53 18.71-33.61.96-3.87 1.03-8.82 2.79-12.32Zm-58.81 24.06c3.16-1.58 6.28-3.12 8.85-5.74 1.57-1.6 2.13-3.54 3.19-5.38.49-.86 1.44-1.45 1.98-2.31 1.54-2.45 2.09-5.59 2.87-8.28 3.59-12.45 4.66-21.55 0-33.78-2.64-6.91-6.86-20.31-16.03-20.85-6.41-.38-10.1 6.81-8.98 12.41.55 2.73 3.42 4.91 4.66 7.35 1.56 3.04 3.33 7.33 3.86 10.72 1.09 6.92.05 14.7-1.85 21.25-1.9 6.6-6.95 7.87-6.7 15.6.08 2.51.84 4.89 3.01 6.44 1.52 1.09 3.5 1.54 5.14 2.57Z
M284.07 238.36v6.85a37 37 0 0 1-4.43 13.2c-3.29 5.74-9.1 9.16-13.49 13.91-6.58 7.12-11.45 17.08-11.04 27 .58 14.19 9.93 16.64 18.41 25.12 5.54 5.54 7.78 12.02 9.58 19.4v8.21c-3.76 15.74-11.94 25.32-28.31 28.79l-9.58.02c-16.44-3.74-24.7-13.19-28.3-29.26l.01-7.31c1.65-7.51 4.01-14.2 9.57-19.83 8.33-8.45 19.25-12.01 18.36-26.51-.54-8.96-3.85-16.34-9.11-23.42-3.18-4.29-7.89-7.02-11.42-10.95a33.1 33.1 0 0 1-7.99-28.19c2.17-11.22 10.36-17.07 17.73-24.84 6.46-6.81 10.35-16.51 10.82-25.85.74-14.84-9.71-18.67-18.29-27.5-8.47-8.74-12.75-22.81-7.69-34.42 1.64-3.78 3.35-7.18 6.11-10.32 3.37-3.83 7.59-7.2 12.38-9.05 25.96-10.04 54.22 14.15 44.18 41.43-6.02 16.36-28.45 21-26.41 40.78.8 7.67 3.24 15.17 7.89 21.39 9.15 12.2 18.37 14.18 21.02 31.35Zm-118.94-93c15.72-3.34 30.52 9.92 29.83 25.64a24.3 24.3 0 0 1-7.69 16.49c-5.4 5.15-11.98 7.17-11.5 15.93.75 13.57 18.79 18.28 21.91 32.89 1.86 8.75-1.16 17.83-7.38 24.08-5.47 5.49-12.6 9.37-14.28 17.62-2.3 11.26 10.85 14.24 15.63 22.34 9.62 16.26-2.76 36.37-21.1 36.75-19.73.41-31.99-21.67-21.11-38.12 4.43-6.7 17.17-9.97 15.41-19.75-1.67-9.27-9.06-12.71-15.02-18.79-5.83-5.95-9.02-14.92-7.3-23.21 3.37-16.15 20.83-19.44 22.39-33.81 1.13-10.36-10.79-12.59-15.54-19.72-9.76-14.63-1.36-34.7 15.75-38.34Zm159.42.03c17.03-4.59 31.41 11.6 30.23 27.44-.5 6.72-5.01 12.76-10.17 16.75-5.21 4.03-10.12 6.27-9.75 13.84.62 12.67 19.31 17.86 22.65 33.35 1.81 8.39-1.27 16.99-6.98 23.13-5.83 6.27-13.45 9.67-15.36 18.88-2.11 10.11 10.82 13.37 15.37 20.21 10.74 16.16-.87 37.78-20.17 38.13-18.8.34-31.66-20.18-22.02-36.77 4.81-8.28 17.78-10.95 15.64-22.37-1.53-8.2-8.97-12.13-14.37-17.52a27 27 0 0 1-7.35-23.7c2.62-14.97 20.79-19.09 21.91-32.88.87-10.7-9.51-12.89-14.86-20.26-10.48-14.43-.76-33.92 15.23-38.23Zm55.8 99.82v-6.85c3.13-7.28 5.3-14.33 13.3-17.99 15.61-7.15 35.19 3.41 35.16 21.41-.03 16.74-18.25 27.76-33.4 21.91-8.87-3.41-11.62-10.61-15.06-18.48ZM90.87 218.17l9.59-.02c7.33 1.82 13.88 6.86 17.09 13.81.9 1.94 1.16 4.04 2.06 5.94l-.01 7.75c-3.65 6.86-3.34 10.88-10.83 15.87-24.2 16.1-51.95-18.88-29-37.7a29 29 0 0 1 11.1-5.65Zm301.5 110.66 6.72-.01c2.79.94 6.03.58 8.88 1.34 7.47 1.99 14.66 6.46 20.65 11.3 5.57 4.5 9.87 11.6 12.49 18.09 2.58 6.41 2.79 10.22 3.84 16.85.24 1.48.95 2.57.75 4.19-.82 6.78-2.02 14.58-5.2 20.88-11.55 22.87-37.17 35.57-61.96 27.54a52 52 0 0 1-19.92-11.59c-6.7-6.31-11.57-15.03-14.19-23.68-.85-2.8-.61-6.14-1.48-8.81l-.01-7.76c.39-1.19-.08-2.44.22-3.68.93-3.84 1.87-7.71 3.16-11.47 4-11.69 14.41-22.11 25.24-27.65a60 60 0 0 1 11.34-4.22c2.98-.78 6.56-.3 9.47-1.32Zm2.9 23.8c-3.17.33-15.64 11.68-18.93 14.31-3.54 2.84-9.31-.63-13.14.99-5.59 2.38-3.38 12.93-3.38 17.69 0 1.82-.43 4.36.35 6.05 3.18 6.91 12.45.83 17.16 4.72 4.1 3.38 8.44 6.44 12.49 9.91 1.51 1.28 3.75 3.8 5.84 3.83 5.37.08 3.4-8.91 3.46-12.18.22-11.7.19-23.46 0-35.16-.06-3.47 1.6-10.72-3.85-10.16Zm23.32 1.46a4.05 4.05 0 0 0-3.47 5.01c.59 2.12 3.21 4.23 4.45 6.06 3.05 4.51 5.26 10.39 5.22 15.89-.04 5.67-2.14 11.7-5.21 16.36-1.31 1.99-3.89 3.65-4.52 6.04-.66 2.48 1.49 4.78 3.89 4.75 3.79-.05 6.82-5.94 8.46-8.83 6.1-10.77 6.86-23.78.99-34.85-1.61-3.04-5.63-10.89-9.81-10.43Zm-9.93 23.54c1.34 2.37 1.34 4.37 0 6.84-1.17 1.75-3.67 5.81-3.5 7.97.27 3.43 3.98 4.67 6.43 2.5 5.96-5.28 6.18-14.61 3.76-21.48-.91-2.59-2.83-6.89-6.01-7.27-7.2-.86-2.6 9.01-.68 11.44Z
M694.06 421.19c-3.16 1.58-6.35 1.31-9.72 1.96-3.9.75-7.81 1.97-11.69 2.92-9.67 2.39-27.83 13.73-33.72 21.81-5.37 7.35-11.53 14.38-14.87 23.12-1.75 4.6-4.72 19.06-7.07 21.42-6.98-8.6-12.45-27.43-15.12-38.22-1.91-7.75-5.84-15.12-7.76-22.92-3.89-15.78-9.99-31-13.88-46.76-2.25-9.12-5.79-17.92-8.04-27.03-1.35-5.47-3.18-12.02-8.67-14.7-7.03-3.44-15.74 1.53-18.36 8.4a1549 1549 0 0 0-21.92 61.37c-14.67 44.02-31 92.62-72.21 118.47-12.07 7.57-25.66 10.79-39.2 13.4a105 105 0 0 1-34.46.57c-9.75-1.53-19.11-4.62-28.37-8.15-8.02-3.06-14.94-8.41-21.72-13.36-35.56-25.95-45.21-72.71-58.28-111.94-5.78-17.33-9.57-35.26-15.35-52.6-2.72-8.17-4.96-18.02-15.84-17.03-13.97 1.27-17.79 27.44-21.92 37.99-15.5 39.62-27.98 81.36-53.36 116.14a81 81 0 0 1-15.66 15.75c-5.58 4.08-10.47 9.08-16.12 13.11-15.24 10.89-34.21 16.46-52.19 19.41-7.49 1.22-28.01 2.76-33.97-2.61-2.08-1.87-3.24-5.38-3.65-8.03-.56-3.56.51-7.36-.05-10.92-.87-5.53-.48-10.58.02-16.09.87-9.56 0-19.62 0-29.23 0-7.53-1.97-17.32 2.31-23.99 4.67-7.29 14.46-3.8 21.41-4.89 10.61-1.66 18.64-5.7 24.39-15.07 2.58-4.21 4.34-9.74 6.09-14.36 3.47-9.09 7.5-17.95 10.96-27.03 6.19-16.23 14.73-31.54 20.92-47.76 15.63-41 32.57-84.86 74.43-105.3 8.91-4.35 18.74-5.96 28.33-7.46 9.95-1.56 19.69-.6 29.38 1.34 12 2.4 23.5 7.06 33.82 13.68 22.91 14.69 36.65 42.36 43.99 67.78 1.72 5.98 4.33 11.89 6.3 17.81 6.68 20.02 13.79 39.91 20.46 59.91 4.92 14.76 9.46 29.62 15.11 44.06 2.15 5.49 5.9 12.06 12.45 13.13 8 1.31 14.97-4.19 17.74-11.44 5.28-13.85 11.06-27.52 16.34-41.37 2.53-6.62 5.8-13 8.04-19.72 4.66-14 11.27-27.4 16.53-41.19 13.23-34.71 22.87-63.98 54.18-86.83 4.65-3.39 9.96-7.3 15.36-9.47a133 133 0 0 1 23.61-7.08 81 81 0 0 1 27.92-.61c11.72 1.91 23.71 4.74 33.97 11.32 11.59 7.43 21.43 15.38 29.94 26.32 15.33 19.72 21.4 44.29 30.09 67.08 6.81 17.87 12.17 36.18 18.99 54.07 3.47 9.08 9.99 21.16 10.09 30.82Zm.51 12.92c6.74-1.3 14.02.63 20.45 1.92 24.25 4.85 45.26 24.64 51.24 48.86.95 3.88 1 7.61 1.62 11.53.61 3.9 1.32 8.36.68 12.42-1.31 8.34-2.9 15.98-5.96 23.99-9.01 23.64-33.53 37.68-57.23 41.39-6.03.95-12.51-.26-18.27-1.41-24.9-4.98-47.76-23.66-55-48.75-1.25-4.33-1.66-8.58-2.35-12.99-.61-3.91-1.32-8.36-.69-12.42 3.56-22.7 15.28-45.89 37.01-56.5 9.3-4.54 18.59-6.13 28.5-8.04Zm33.6 29.22c-3.59.55-5.44 5.21-4.01 8.13 1.6 3.28 4.82 5.51 6.78 8.56a45 45 0 0 1 6.96 23.72c0 7.78-1.95 15.59-6.23 22.26-1.96 3.06-6.37 5.87-7.51 9.3-1.39 4.15.66 8.54 5.34 8.26 5.99-.35 10.58-9.49 12.9-14.13 8.18-16.36 9.39-33.33.98-50.16-2.34-4.67-8.91-16.89-15.21-15.94Zm-35.06 3.66c-7.46 2.41-14.55 12.41-20.99 17.01-5.85 4.18-11.44.48-17.74 1.98-7.93 1.9-5.81 18.57-4.91 24.36.36 2.24-.76 5.23.9 7.15 4.85 5.61 14.79-.43 21.75 4.54 5.32 3.8 9.89 8.7 15 12.76 2.36 1.87 4.55 5.35 8.02 5.1 6.63-.49 4.77-11.43 4.77-15.69v-45.3c0-4.12.31-14.22-6.8-11.91Zm20.45 15.34c-3.57.54-4.62 4.55-4.13 7.51.68 4.14 4.4 7.5 5.07 11.74.99 6.32-4.17 10.29-5.07 16.07-.65 4.15 1.99 6.85 6.16 6.16 3.62-.59 5.62-4.6 7.08-7.53 3.83-7.65 4.11-17.61.25-25.32-1.71-3.42-4.6-9.35-9.36-8.63Z
+ M337.67,280.711c-10.697-51.427-63.512-112.321-121.879-125.632 c-60.695-13.709-101.315-14.091-148.968,17.947c-13.996,9.391-37.495,25.468-59.466,49.439v79.753 c30.949-67.06,101.497-123.241,180.483-102.953c134.152,34.364,112.666,128.894,96.546,167.245 c-28.933,68.965-135.302,98.726-168.025,32.845c-35.571-71.623,43.787-83.354,43.787-83.354s-20.642,20.069,5.244,46.509 c17.938,18.445,52.071,1.715,63.925-30.653c10.412-28.25-11.99-67.419-61.044-71.66c-41.083-3.615-102.731,27.568-109.005,90.255 c-5.934,59.356,20.596,83.954,59.116,110.176c38.406,26.212,120.655,36.057,167.603-9.972 C337.043,400.681,351.979,349.399,337.67,280.711z M7.357,0.5v156.503c23.44-20.732,42.984-31.116,43.787-31.611 c85.551-49.63,160.962-25.042,205.312-10.987c70.054,22.125,125.101,77.24,148.869,133.911 c27.682,65.952,3.732,191.97-89.707,255.636c-4.082,2.776-8.174,5.145-12.268,7.549h201.293V0.5H7.357z M7.357,427.646v60.31 c3.108,2.559,6.184,4.809,9.178,6.614c-2.758-1.134-5.875-2.645-9.178-4.445V511.5h87.516c-6.465-3.502-12.421-7.086-17.621-10.625 C51.575,483.31,24.165,458.458,7.357,427.646z
M13,9V3.5L18.5,9M6,2C4.89,2 4,2.89 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2H6 ZM12,11A3,3 0 1,0 12,17A3,3 0 0,0 12,11 ZM12,12.5L14,16H13L12,14.5L11,16H10L12,12.5Z
diff --git a/FModel/Views/Snooper/Animations/Skeleton.cs b/FModel/Views/Snooper/Animations/Skeleton.cs
index db883633..7f55a14e 100644
--- a/FModel/Views/Snooper/Animations/Skeleton.cs
+++ b/FModel/Views/Snooper/Animations/Skeleton.cs
@@ -162,7 +162,7 @@ public class Skeleton : IDisposable
{
bone.AnimatedBySequences.Add(s);
}
- sequence.RetargetTracks(animation.Skeleton);
+ sequence.RetargetTracks(animation.Skeleton.ReferenceSkeleton);
}
#if DEBUG
diff --git a/FModel/Views/Snooper/Models/StaticModel.cs b/FModel/Views/Snooper/Models/StaticModel.cs
index cb9085c7..3067e5b0 100644
--- a/FModel/Views/Snooper/Models/StaticModel.cs
+++ b/FModel/Views/Snooper/Models/StaticModel.cs
@@ -2,12 +2,12 @@ using System;
using System.Numerics;
using CUE4Parse.GameTypes.Nascar.Assets.Exports;
using CUE4Parse.UE4.Assets.Exports.GeometryCollection;
+using CUE4Parse.UE4.Assets.Exports.Houdini;
using CUE4Parse.UE4.Assets.Exports.Material;
using CUE4Parse.UE4.Assets.Exports.StaticMesh;
using CUE4Parse.UE4.Assets.Exports.Texture;
using CUE4Parse.UE4.Objects.Core.Math;
using CUE4Parse.UE4.Objects.PhysicsEngine;
-using CUE4Parse.UE4.Objects.UObject;
using CUE4Parse_Conversion.Dto;
using FModel.Views.Snooper.Shading;
using OpenTK.Graphics.OpenGL4;
@@ -155,10 +155,16 @@ public class StaticModel : UModel
public StaticModel(UIRMesh export, StaticMeshDto mesh, int meshIndex)
: base(export, mesh.LODs[LodLevel], export.Materials, mesh.LODs[LodLevel].Vertices, mesh.LODs.Count)
{
- Name = meshIndex > 0 ? $"{Name}_{meshIndex}": Name;
+ Name = meshIndex > 0 ? $"{Name}_{meshIndex}" : Name;
Box = mesh.Bounds * Constants.SCALE_DOWN_RATIO;
}
+ public StaticModel(UHoudiniStaticMesh export, StaticMeshDto staticMesh, Transform transform = null)
+ : base(export, staticMesh.LODs[LodLevel], export.Materials, staticMesh.LODs[LodLevel].Vertices, staticMesh.LODs.Count, transform)
+ {
+ Box = staticMesh.Bounds * Constants.SCALE_DOWN_RATIO;
+ }
+
public override void RenderCollision(Shader shader)
{
base.RenderCollision(shader);
diff --git a/FModel/Views/Snooper/Renderer.cs b/FModel/Views/Snooper/Renderer.cs
index 1ae70340..dea20eb1 100644
--- a/FModel/Views/Snooper/Renderer.cs
+++ b/FModel/Views/Snooper/Renderer.cs
@@ -4,12 +4,14 @@ using System.Linq;
using System.Numerics;
using System.Threading;
using System.Windows;
+using CUE4Parse.GameTypes.Nascar.Assets.Exports;
using CUE4Parse.UE4.Assets.Exports;
using CUE4Parse.UE4.Assets.Exports.Animation;
using CUE4Parse.UE4.Assets.Exports.Component.SplineMesh;
using CUE4Parse.UE4.Assets.Exports.Component.StaticMesh;
using CUE4Parse.UE4.Assets.Exports.Engine;
using CUE4Parse.UE4.Assets.Exports.GeometryCollection;
+using CUE4Parse.UE4.Assets.Exports.Houdini;
using CUE4Parse.UE4.Assets.Exports.Material;
using CUE4Parse.UE4.Assets.Exports.StaticMesh;
using CUE4Parse.UE4.Assets.Exports.Texture;
@@ -98,6 +100,9 @@ public class Renderer : IDisposable
case UIRMeshComponent when export.Value is UIRMeshComponent meshcomp:
LoadIRMeshComponent(meshcomp);
break;
+ case UHoudiniStaticMesh when export.Value is UHoudiniStaticMesh hst:
+ LoadHoudiniStaticMesh(hst);
+ break;
case UGeometryCollection when export.Value is UGeometryCollection gc:
LoadStaticMesh(gc, UserSettings.Default.NaniteMeshExportFormat);
break;
@@ -408,6 +413,31 @@ public class Renderer : IDisposable
}
}
+ private void LoadHoudiniStaticMesh(UHoudiniStaticMesh original)
+ {
+ var guid = new FGuid((uint) original.GetFullName().GetHashCode());
+ if (Options.TryGetModel(guid, out var model))
+ {
+ model.AddInstance(Transform.Identity);
+ Application.Current.Dispatcher.Invoke(model.SetupInstances);
+ return;
+ }
+
+ StaticMeshDto mesh;
+ try
+ {
+ mesh = new StaticMeshDto(original);
+ }
+ catch (Exception e)
+ {
+ Log.Error(e, "Failed to convert houdini static mesh");
+ return;
+ }
+
+ Options.Models[guid] = new StaticModel(original, mesh);
+ Options.SelectModel(guid);
+ }
+
private void LoadStaticMesh(UGeometryCollection original, ENaniteMeshFormat naniteFormat = ENaniteMeshFormat.NoNanite)
{
var guid = new FGuid((uint) original.GetFullName().GetHashCode());
From 8a290374821a4b62b9fb4b4f389bccbea58ffd8a Mon Sep 17 00:00:00 2001
From: Masusder <59669685+Masusder@users.noreply.github.com>
Date: Fri, 2 Oct 2026 22:40:02 +0200
Subject: [PATCH 4/6] Keyboard navigation fixes
---
FModel/Extensions/ListBoxExtensions.cs | 8 +-------
FModel/MainWindow.xaml | 1 +
FModel/MainWindow.xaml.cs | 13 +++++++++++--
FModel/Views/AudioPlayer.xaml.cs | 5 +++++
FModel/Views/Resources/Controls/FolderTree.cs | 19 -------------------
5 files changed, 18 insertions(+), 28 deletions(-)
diff --git a/FModel/Extensions/ListBoxExtensions.cs b/FModel/Extensions/ListBoxExtensions.cs
index 8bcb2b17..a325044f 100644
--- a/FModel/Extensions/ListBoxExtensions.cs
+++ b/FModel/Extensions/ListBoxExtensions.cs
@@ -4,7 +4,7 @@ namespace FModel.Extensions;
public static class ListBoxExtensions
{
- public static ListBoxItem RevealItem(this ListBox list, object item, bool alignToTop = false)
+ public static ListBoxItem RevealItem(this ListBox list, object item)
{
var index = list.Items.IndexOf(item);
if (index < 0)
@@ -12,12 +12,6 @@ public static class ListBoxExtensions
list.ApplyTemplate();
list.UpdateLayout();
- if (alignToTop && list.FindVisualChild() is { } scroll)
- {
- scroll.ScrollToVerticalOffset(index);
- list.UpdateLayout();
- }
-
if (list.FindVisualChild() is { } panel)
{
panel.BringIndexIntoViewPublic(index);
diff --git a/FModel/MainWindow.xaml b/FModel/MainWindow.xaml
index cc5becb0..2ee94f71 100644
--- a/FModel/MainWindow.xaml
+++ b/FModel/MainWindow.xaml
@@ -382,6 +382,7 @@
0,
Key.D1 or Key.NumPad1 => 1,
@@ -177,8 +177,13 @@ public partial class MainWindow
Key.D7 or Key.NumPad7 => 7,
Key.D8 or Key.NumPad8 => 8,
Key.D9 or Key.NumPad9 => 9,
- _ => CategoriesSelector.SelectedIndex
+ _ => -1
};
+
+ if (categoryIndex < 0)
+ return;
+
+ CategoriesSelector.SelectedIndex = categoryIndex;
}
else if (_applicationView.Status.IsReady && UserSettings.Default.ExportData.IsTriggered(e.Key))
OnExportHotkey("Save_Data");
@@ -210,6 +215,10 @@ public partial class MainWindow
_applicationView.SelectedLeftTabIndex--;
else if (UserSettings.Default.DirRightTab.IsTriggered(e.Key) && _applicationView.SelectedLeftTabIndex < LeftTabControl.Items.Count - 1)
_applicationView.SelectedLeftTabIndex++;
+ else
+ return;
+
+ e.Handled = true;
}
private void OnSearchViewClick(object sender, RoutedEventArgs e)
diff --git a/FModel/Views/AudioPlayer.xaml.cs b/FModel/Views/AudioPlayer.xaml.cs
index f65660ce..56a24932 100644
--- a/FModel/Views/AudioPlayer.xaml.cs
+++ b/FModel/Views/AudioPlayer.xaml.cs
@@ -55,6 +55,7 @@ public partial class AudioPlayer
if (UserSettings.Default.AddAudio.IsTriggered(e.Key))
{
+ e.Handled = true;
var openFileDialog = new OpenFileDialog
{
Title = "Select an audio file",
@@ -77,6 +78,10 @@ public partial class AudioPlayer
_applicationView.AudioPlayer.Next();
else if (UserSettings.Default.RemoveAudio.IsTriggered(e.Key))
_applicationView.AudioPlayer.Remove();
+ else
+ return;
+
+ e.Handled = true;
}
private void OnAudioFileMouseDoubleClick(object sender, MouseButtonEventArgs e)
diff --git a/FModel/Views/Resources/Controls/FolderTree.cs b/FModel/Views/Resources/Controls/FolderTree.cs
index ef169303..2598189e 100644
--- a/FModel/Views/Resources/Controls/FolderTree.cs
+++ b/FModel/Views/Resources/Controls/FolderTree.cs
@@ -23,17 +23,6 @@ public sealed class FolderTree : ListBox
public event EventHandler OpenAssets;
- public FolderTree()
- {
- IsVisibleChanged += (_, e) =>
- {
- if (e.NewValue is true)
- {
- RevealSelection();
- }
- };
- }
-
public void SelectFolder(TreeItem folder)
{
Folders.Reveal(folder);
@@ -53,14 +42,6 @@ public sealed class FolderTree : ListBox
}
}
- public void RevealSelection()
- {
- if (SelectedItem is TreeItem folder)
- {
- this.RevealItem(folder, alignToTop: true);
- }
- }
-
private void ToggleFolder(TreeItem folder)
{
if (Folders == null)
From 2ded17d9e8f6d28773f735f1ed9c3db14915f747 Mon Sep 17 00:00:00 2001
From: LongerWarrior
Date: Sun, 4 Oct 2026 17:16:37 +0300
Subject: [PATCH 5/6] Ace Combat 8 localization / FN preview fix
---
CUE4Parse | 2 +-
FModel/Creator/Bases/FN/BaseIcon.cs | 6 +--
FModel/Creator/Utils.cs | 12 ++---
FModel/ViewModels/CUE4ParseViewModel.cs | 61 ++++++++++++++++++++++++-
4 files changed, 65 insertions(+), 16 deletions(-)
diff --git a/CUE4Parse b/CUE4Parse
index 52f96d60..6b8909bf 160000
--- a/CUE4Parse
+++ b/CUE4Parse
@@ -1 +1 @@
-Subproject commit 52f96d60eadf95f2933a5599461d94f0774d08c1
+Subproject commit 6b8909bf961f054e1d2571173f9de81a5c96b2ee
diff --git a/FModel/Creator/Bases/FN/BaseIcon.cs b/FModel/Creator/Bases/FN/BaseIcon.cs
index 5b79b834..e6016509 100644
--- a/FModel/Creator/Bases/FN/BaseIcon.cs
+++ b/FModel/Creator/Bases/FN/BaseIcon.cs
@@ -47,14 +47,12 @@ public class BaseIcon : UCreator
{
if (isUsingDisplayAsset && Utils.TryGetDisplayAsset(Object, out var preview))
Preview = preview;
- else if (Object.TryGetValue(out FPackageIndex itemDefinition, "HeroDefinition", "WeaponDefinition"))
+ else if (Object.TryGetValue(out ILoadableObject itemDefinition, "HeroDefinition", "WeaponDefinition"))
Preview = Utils.GetBitmap(itemDefinition);
- else if (Object.TryGetValue(out FSoftObjectPath largePreview, "LargePreviewImage", "EntryListIcon", "SmallPreviewImage", "BundleImage", "ItemDisplayAsset", "LargeIcon", "ToastIcon", "SmallIcon", "CartridgeIcon", "EffectIcon"))
+ else if (Object.TryGetValue(out ILoadableObject largePreview, "LargePreviewImage", "EntryListIcon", "SmallPreviewImage", "BundleImage", "ItemDisplayAsset", "LargeIcon", "ToastIcon", "SmallIcon", "CartridgeIcon", "EffectIcon", "ToastIcon", "access_item"))
Preview = Utils.GetBitmap(largePreview);
else if (Object.TryGetValue(out string s, "LargePreviewImage") && !string.IsNullOrEmpty(s))
Preview = Utils.GetBitmap(s);
- else if (Object.TryGetValue(out FPackageIndex otherPreview, "SmallPreviewImage", "ToastIcon", "access_item"))
- Preview = Utils.GetBitmap(otherPreview);
else if (Object.TryGetValue(out UMaterialInstanceConstant materialInstancePreview, "EventCalloutImage"))
Preview = Utils.GetBitmap(materialInstancePreview);
else if (Object.TryGetValue(out FStructFallback brush, "IconBrush", "BuildingSymbolNormal") && brush.TryGetValue(out UTexture2D res, "ResourceObject"))
diff --git a/FModel/Creator/Utils.cs b/FModel/Creator/Utils.cs
index 3d44c40e..965917d9 100644
--- a/FModel/Creator/Utils.cs
+++ b/FModel/Creator/Utils.cs
@@ -60,11 +60,11 @@ public static class Utils
return preview != null;
}
- public static SKBitmap GetBitmap(FPackageIndex packageIndex)
+ public static SKBitmap GetBitmap(ILoadableObject loadableObject)
{
while (true)
{
- if (!TryGetPackageIndexExport(packageIndex, out UObject export)) return null;
+ if (!loadableObject.TryLoad(out UObject export)) return null;
switch (export)
{
case UTexture2D texture:
@@ -74,13 +74,8 @@ public static class Utils
default:
{
if (export.TryGetValue(out FInstancedStruct[] dataList, "DataList")) return GetBitmap(dataList);
- if (export.TryGetValue(out FSoftObjectPath previewImage, "LargePreviewImage", "SmallPreviewImage")) return GetBitmap(previewImage);
+ if (export.TryGetValue(out ILoadableObject previewImage, "LargePreviewImage", "SmallPreviewImage")) return GetBitmap(previewImage);
if (export.TryGetValue(out string largePreview, "LargePreviewImage")) return GetBitmap(largePreview);
- if (export.TryGetValue(out FPackageIndex smallPreview, "SmallPreviewImage"))
- {
- packageIndex = smallPreview;
- continue;
- }
return null;
}
@@ -128,7 +123,6 @@ public static class Utils
}
public static SKBitmap GetB64Bitmap(string b64) => SKBitmap.Decode(new MemoryStream(Convert.FromBase64String(b64)) { Position = 0 });
- public static SKBitmap GetBitmap(FSoftObjectPath softObjectPath) => GetBitmap(softObjectPath.Load());
public static SKBitmap GetBitmap(string fullPath) => TryLoadObject(fullPath, out UTexture2D texture) ? GetBitmap(texture) : null;
public static SKBitmap GetBitmap(UTexture2D texture) => texture.Decode(UserSettings.Default.CurrentDir.TexturePlatform).ToSkBitmap();
public static SKBitmap GetBitmap(byte[] data) => SKBitmap.Decode(data);
diff --git a/FModel/ViewModels/CUE4ParseViewModel.cs b/FModel/ViewModels/CUE4ParseViewModel.cs
index f92072aa..105ffeae 100644
--- a/FModel/ViewModels/CUE4ParseViewModel.cs
+++ b/FModel/ViewModels/CUE4ParseViewModel.cs
@@ -19,6 +19,8 @@ using CUE4Parse.Encryption.Aes;
using CUE4Parse.FileProvider;
using CUE4Parse.FileProvider.Objects;
using CUE4Parse.FileProvider.Vfs;
+using CUE4Parse.GameTypes.ACE8.Assets.Exports;
+using CUE4Parse.GameTypes.ACE8.Encryption;
using CUE4Parse.GameTypes.Aion2.Objects;
using CUE4Parse.GameTypes.AoC.Objects;
using CUE4Parse.GameTypes.AshEchoes.FileProvider;
@@ -749,6 +751,11 @@ public class CUE4ParseViewModel : ViewModel
ProcessAion2DatFile(entry, updateUi, saveProperties);
break;
}
+ case "dat" when Provider.Versions.Game is GAME_AceCombat8WingsofTheve:
+ {
+ ProcessACE8DatFile(entry, updateUi, saveProperties);
+ break;
+ }
case "bytes" when Provider.Versions.Game is GAME_RocoKingdomWorld:
{
ProcessRocoBinFile(entry, updateUi, saveProperties);
@@ -1067,6 +1074,7 @@ public class CUE4ParseViewModel : ViewModel
}
case "res": // just skip
case "bytes": // wuthering waves
+ case "ffxanim": // dead island 2
break;
default:
{
@@ -1190,6 +1198,43 @@ public class CUE4ParseViewModel : ViewModel
TabControl.SelectedTab.SetDocumentText(JsonConvert.SerializeObject(dbc, Formatting.Indented), saveProperties, updateUi);
}
+
+ // Ace Combat 8
+ void ProcessACE8DatFile(GameFile entry, bool updateUi, bool saveProperties)
+ {
+ TabControl.SelectedTab.Highlighter = AvalonExtensions.HighlighterSelector("json");
+
+ if (entry.NameWithoutExtension.EndsWith("_Cmn"))
+ {
+ TabControl.SelectedTab.SetDocumentText(JsonConvert.SerializeObject(ACE8LocDecrypt.ReadKeysDatFile(entry), Formatting.Indented), saveProperties, updateUi);
+ }
+ else
+ {
+ if (Provider.TryGetGameFile(entry.PathWithoutExtension[..^1] + "Cmn." + entry.Extension, out var keysDatFile))
+ {
+ var keys = ACE8LocDecrypt.ReadKeysDatFile(keysDatFile);
+ var values = ACE8LocDecrypt.ReadDatFile(entry);
+ var locTable = new Dictionary(Math.Max(keys.Count, values.Length));
+ var k = 0;
+ for (var i = 0; i < values.Length; i++)
+ {
+ if (keys.TryGetValue(i, out var key))
+ {
+ locTable[key] = values[i];
+ }
+ else
+ {
+ locTable[$"UnknownKey_{k++}"] = values[i];
+ }
+ }
+ TabControl.SelectedTab.SetDocumentText(JsonConvert.SerializeObject(locTable, Formatting.Indented), saveProperties, updateUi);
+ }
+ else
+ {
+ TabControl.SelectedTab.SetDocumentText(JsonConvert.SerializeObject(ACE8LocDecrypt.ReadDatFile(entry), Formatting.Indented), saveProperties, updateUi);
+ }
+ }
+ }
}
private byte[] ProcessLuaFile(byte[] data)
@@ -1259,6 +1304,8 @@ public class CUE4ParseViewModel : ViewModel
if (CheckExport(cancellationToken, result.Package, i, ref showSnooper))
break;
}
+
+ if (showSnooper) SnooperViewer.Run();
}
private bool CheckExport(CancellationToken cancellationToken, IPackage pkg, int index, ref bool showSnooper, EBulkType bulk = EBulkType.None) // return true once you want to stop searching for exports
@@ -1276,11 +1323,21 @@ public class CUE4ParseViewModel : ViewModel
{
case UVerseDigest when isNone && pointer.Object.Value is UVerseDigest verseDigest:
{
- if (!TabControl.CanAddTabs) return false;
+ if (verseDigest.ReadableCode is null || !TabControl.CanAddTabs) return false;
TabControl.AddTab($"{verseDigest.Name}.verse");
TabControl.SelectedTab.Highlighter = AvalonExtensions.HighlighterSelector("verse");
- TabControl.SelectedTab.SetDocumentText(verseDigest.ReadableCode, false, false);
+ TabControl.SelectedTab.SetDocumentText(Encoding.UTF8.GetString(verseDigest.ReadableCode), false, false);
+ return true;
+ }
+ // Ace Combat 8
+ case ULuaScript when isNone && pointer.Object.Value is ULuaScript luaScript:
+ {
+ if (!TabControl.CanAddTabs) return false;
+
+ TabControl.AddTab($"{luaScript.Name}.lua");
+ TabControl.SelectedTab.Highlighter = AvalonExtensions.HighlighterSelector("lua");
+ TabControl.SelectedTab.SetDocumentText(luaScript.Code, false, false);
return true;
}
case UTexture when (isNone || saveTextures) && pointer.Object.Value is UTexture texture:
From 7a16d41deebbab79fb797d976cdf47ced81d0f43 Mon Sep 17 00:00:00 2001
From: LongerWarrior
Date: Sun, 4 Oct 2026 23:15:42 +0300
Subject: [PATCH 6/6] Skip animation retargetting
---
CUE4Parse | 2 +-
FModel/Views/Snooper/Animations/Skeleton.cs | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/CUE4Parse b/CUE4Parse
index 6b8909bf..c1770411 160000
--- a/CUE4Parse
+++ b/CUE4Parse
@@ -1 +1 @@
-Subproject commit 6b8909bf961f054e1d2571173f9de81a5c96b2ee
+Subproject commit c1770411182f8a7e94ddcd19683e68736e1a0020
diff --git a/FModel/Views/Snooper/Animations/Skeleton.cs b/FModel/Views/Snooper/Animations/Skeleton.cs
index 7f55a14e..cfe4846f 100644
--- a/FModel/Views/Snooper/Animations/Skeleton.cs
+++ b/FModel/Views/Snooper/Animations/Skeleton.cs
@@ -162,7 +162,8 @@ public class Skeleton : IDisposable
{
bone.AnimatedBySequences.Add(s);
}
- sequence.RetargetTracks(animation.Skeleton.ReferenceSkeleton);
+ // Retargeting should not be done here (ask Asval for details).
+ //sequence.RetargetTracks(animation.Skeleton.ReferenceSkeleton);
}
#if DEBUG