Commit Graph

104 Commits

Author SHA1 Message Date
David Lesage
34da27404d #jira UE-168689 Warning: The generation of LOD could have generated spikes on multiple meshes
The threshold in LOD generation to check the quality of the LOD was to small.
It has been update to sqrt(3) i.e. the reduced mesh must stay in the bounding sphere.
#rb none
#preflight 637632ef232e3d12cb949a38

[CL 23174735 by David Lesage in ue5-main branch]
2022-11-17 08:28:33 -05:00
David Lesage
7477e92eb9 #jira UE-168689 Warning: The generation of LOD could have generated spikes on multiple meshes
The threshold in LOD generation to check the quality of the LOD was to small.
It has been update.
#rb none
#preflight 637226fdb6636838285df8ae

[CL 23116233 by David Lesage in ue5-main branch]
2022-11-14 06:39:57 -05:00
jamie hayes
efc7833b06 Fix an issue where Nanite would be built for LOD0 when it was not supposed to be for non-Nanite platforms.
#rb graham.wihlidal
#rnx
#preflight 636cfe5d843e6ac79476f43f

[CL 23085790 by jamie hayes in ue5-main branch]
2022-11-10 14:37:59 -05:00
krzysztof narkowicz
78088a94e0 Distance Fields - Generate mesh distance fields from highest quality available data in order to match Nanite data.
#preflight 63611edd731604696a0f9134
#jira

[CL 22890143 by krzysztof narkowicz in ue5-main branch]
2022-11-01 16:01:53 -04:00
David Lesage
4fe8d2122b #jira UE-90182
The spikes seems to not happen any more with the new simplification algorithm.
Whatever, the bounding box of the simplified mesh is compared to the original mesh. If the new bounding box is larger, a message is output.
#preflight 635a8628316cf8bef6442135

[CL 22809103 by David Lesage in ue5-main branch]
2022-10-27 09:53:48 -04:00
jian ru
b539ff9aa7 Feed the same set of weights to FMeshSimplifier when generating LODs for nanite fallback meshes to ensure that auto-computed LOD transition screen sizes are consistent
[FYI] brian.karis, chris.morrison, bryce.lumpkin

[CL 22459671 by jian ru in ue5-main branch]
2022-10-11 12:15:30 -04:00
Brian Karis
1b845f1def Remove doubles from mesh processing
#rb graham.wihlidal
#preflight 633b662e842f0d4c55e4b3d9

[CL 22319966 by Brian Karis in ue5-main branch]
2022-10-03 19:39:31 -04:00
rune stubbe
7b990d37d4 Nanite tangent fixes
-Nanite-specific settings for tangent and degenerates are no longer also applied to the non-nanite mesh LODs on the same mesh.
-100% fallback meshes now have identical tangents to input mesh. Don't skip the tangent generation in StaticMeshBuilder for these meshes and don't recalculate tangents in Nanite builder.

#preflight 632b04c0b40000c8f0c29adb

#rb brian.karis
[FYI] jamie.hayes, graham.wihlidal
#lockdown marc.audy

[CL 22201439 by rune stubbe in ue5-main branch]
2022-09-27 02:14:48 -04:00
jamie hayes
54f2eebeff Fix a bug where high resolution Nanite meshes would not be simplified on platforms that do not support Nanite
#rb graham.wihlidal, rune.stubbe
#jira UE-162652
#preflight skip

[CL 22105158 by jamie hayes in ue5-main branch]
2022-09-20 19:25:18 -04:00
rune stubbe
76a529066f Nanite Hi-Res mesh is now built with the LOD0 build settings instead of the default ones
Gray out Fallback Triangle Percent and Fallback Relative Error when a model is specified in Source Import Filename

#preflight 631f5ed412092e9faa846d86
#rb graham.wihlidal
[FYI] Ryan.Schmidt

[CL 21989542 by rune stubbe in ue5-main branch]
2022-09-13 15:01:31 -04:00
rune stubbe
bd86bf40d8 Fix for potential DDC corruption issue where meshes with NaniteEnabled set generate incorrect normals/tangets in projects that have Nanite disabled.
Tangent generation now also respects the Nanite project setting, not just the per-mesh setting.
#lockdown marc.audy

[CL 21862271 by rune stubbe in ue5-main branch]
2022-09-07 17:01:12 -04:00
Alexis Matte
b37d30b444 Interchange:
Add some CPU trace for interchange task, fbx translator, skeletalmesh factory.
Fix issues with UVs count crashing when there is no UVs layer.
Add generic pipeline asset to always cook in the plugin game.ini config file.
Make sure we use only half of the worker thread to avoid deadlock because there is no worker thread available.

#jira none
#rb jeanmichel.dignard
#rnx
#preflight 630f748ce11248377579b132

[CL 21721013 by Alexis Matte in ue5-main branch]
2022-08-31 10:56:08 -04:00
graham wihlidal
7e92ab173a Remove Nanite static mesh memory from incompatible platforms
#rb devin.doucette
[FYI] brian.karis, rune.stubbe, zousar.shaker
#preflight 62bbdeabd8366789fdc55c95

#ROBOMERGE-AUTHOR: graham.wihlidal
#ROBOMERGE-SOURCE: CL 20878146 via CL 20878158 via CL 20878172
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v971-20777995)

[CL 20880187 by graham wihlidal in ue5-main branch]
2022-06-29 15:11:23 -04:00
graham wihlidal
7f322b7db8 Implemented DDC resource build for NaniteDisplacedMesh, including a stubbed out DisplaceNaniteMesh function that is just passthrough for now. Included exposing some of the static mesh and mesh description utilities to this plugin, and various other refactors.
#rb brian.karis, devin.doucette
[FYI] rune.stubbe, julien.stjean, richard.talbotwatkin
#preflight 62857333614041edb7af27a5

#ROBOMERGE-AUTHOR: graham.wihlidal
#ROBOMERGE-SOURCE: CL 20276443 via CL 20276454 via CL 20276457
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20277150 by graham wihlidal in ue5-main branch]
2022-05-19 03:57:40 -04:00
fred kimberley
e7e64e1749 Make FVector conversions explicit.
#preflight 6221270ea00412627d0b7dd3
#jira UE-122078
#lockdown Julien.Marchand
#rb Andrew.Davidson

#ROBOMERGE-AUTHOR: fred.kimberley
#ROBOMERGE-SOURCE: CL 19253774 in //UE5/Release-5.0/... via CL 19257968
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v924-19243027)

[CL 19263535 by fred kimberley in ue5-main branch]
2022-03-04 03:48:53 -05:00
Brian Karis
dba24ab6be FDynamicBVH now supports a forest with a spatial hash at the highest level to support LWC without the need for doubles for bounding boxes.
Switched FDynamicBVH to use greedy insertion because branch and bound perf significantly degrades with heavily overlapped leaves.

Added closest point queries using branch and bound.

FBounds is now templated as TBounds.

#rb graham.wihlidal
#robomerge FNNC
#preflight 6216dbf9104496cff8abfc36

[CL 19107993 by Brian Karis in ue5-main branch]
2022-02-23 21:17:53 -05:00
brian karis
a208fbc50b Changed name on Nanite Proxy mesh to Nanite Fallback mesh.
Changed fallback settings to be largely error based with new property FallbackRelativeError.

Nanite builder will now provide the LOD fallbacks for all autogenerated LOD levels which is far faster than generating them from scratch.

#rb graham.wihlidal
#preflight 61f9e1fe9e4d23cd93b8d556

#ROBOMERGE-AUTHOR: brian.karis
#ROBOMERGE-SOURCE: CL 18820056 in //UE5/Release-5.0/... via CL 18820070 via CL 18822916
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v910-18824042)

[CL 18825066 by brian karis in ue5-main branch]
2022-02-02 08:19:56 -05:00
fred kimberley
7fbfaf57c8 Require explicit constructors/casts when converting between FVector, FVector3d, and FVector3f.
#jira UE-122078
#rb Andrew.Davidson, Colin.McGinley
#preflight standard build

#ROBOMERGE-AUTHOR: fred.kimberley
#ROBOMERGE-SOURCE: CL 18817999 in //UE5/Release-5.0/... via CL 18818012 via CL 18822871
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v910-18824042)

[CL 18824721 by fred kimberley in ue5-main branch]
2022-02-02 07:59:31 -05:00
zak middleton
36c99f6887 #ue5 - LWC: FVector4f <-> FVector4d conversion is now explicit.
FLinearColor has also been modified to make any double->float conversions explicit. Previously all 3D TVector versions were allowed to be implicit and thus could convert TVector<double> => FLinearColor => TVector4<float>.

Fixed up all engine and game casts. Added "//LWC_TODO: precision loss" around any explicit casts that previously were silently explicit and we may need to revisit for precision loss analysis.

#jira UE-122085
#rb Ben.Ingram, Andrew.Davidson
#preflight 61f24af473238441cb7bb0f1

#ROBOMERGE-AUTHOR: zak.middleton
#ROBOMERGE-SOURCE: CL 18751249 in //UE5/Release-5.0/... via CL 18751253 via CL 18751319
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18751326 by zak middleton in ue5-main branch]
2022-01-27 03:30:41 -05:00
ryan schmidt
6954d6fb45 StaticMesh: update Nanite Build from HiRes SourceModel that had regressed relative to changes in Nanite builder
#rb richard.talbotwatkin
#jira UE-137501
#rnx
#preflight 61b8adbeba7ec9608ef14307

#ROBOMERGE-AUTHOR: ryan.schmidt
#ROBOMERGE-SOURCE: CL 18454217 in //UE5/Release-5.0/... via CL 18454225
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v898-18417669)

[CL 18454238 by ryan schmidt in ue5-release-engine-test branch]
2021-12-14 09:54:56 -05:00
Marc Audy
0c3be2b6ad Merge Release-Engine-Staging to Test @ CL# 18240298
[CL 18241953 by Marc Audy in ue5-release-engine-test branch]
2021-11-18 14:37:34 -05:00
aurel cordonnier
a6e741e007 Merge from Release-Engine-Staging @ 17915896 to Release-Engine-Test
This represents UE4/Main @17911760, Release-5.0 @17915875 and Dev-PerfTest @17914035

[CL 17918595 by aurel cordonnier in ue5-release-engine-test branch]
2021-10-25 20:05:28 -04:00
aurel cordonnier
a12d56ff31 Merge from Release-Engine-Staging @ 17791557 to Release-Engine-Test
This represents UE4/Main @17774255, Release-5.0 @17791557 and Dev-PerfTest @17789485

[CL 17794212 by aurel cordonnier in ue5-release-engine-test branch]
2021-10-12 21:21:22 -04:00
andrew davidson
57beb335f2 Merging //UE5/Dev-LargeWorldCoordinates [at] 17581892 to //UE5/Main
#ROBOMERGE-AUTHOR: andrew.davidson
#ROBOMERGE-SOURCE: CL 17595295 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v871-17566257)

[CL 17595306 by andrew davidson in ue5-release-engine-test branch]
2021-09-22 10:01:48 -04:00
kenzo terelst
b6bdbd8452 Fix build for Max & Linus platforms
#rb none
#preflight skip

#ROBOMERGE-SOURCE: CL 17314750 via CL 17315753
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v861-17282326)

[CL 17315952 by kenzo terelst in ue5-release-engine-test branch]
2021-08-26 07:41:28 -04:00