Commit Graph

47 Commits

Author SHA1 Message Date
sebastien lussier
1e1c474aa2 Material Baking - General fix for degenerate UVs
* When packing UVs, avoid relying on the UV area to scale triangles in the UV map. Instead, use the edges length (perimeter)

[CL 23130087 by sebastien lussier in ue5-main branch]
2022-11-14 19:07:13 -05:00
sebastien lussier
da5c347828 World Partition - HLOD: Use lower threshold to detect degenerate triangles in order to avoid false positive (UE_SMALL_NUMBER vs UE_KINDA_SMALL_NUMBER)
#rb trivial

[CL 23003735 by sebastien lussier in ue5-main branch]
2022-11-05 22:58:24 -04:00
sebastien lussier
b19a7d66de World Partition - HLOD: Improvements to FUniqueUVMeshDescriptionView
* Reduce artifacts from wrong input by filtering out degenerate triangles
#rb patrick.enfedaque

[CL 22977801 by sebastien lussier in ue5-main branch]
2022-11-04 00:01:58 -04:00
graeme thornton
e7986ac620 [Backout] - CL22808749
[FYI] Steve.Robb
Original CL Desc
-----------------------------------------------------------------
TMap and TSet can now be declared as members with forward-declared key and value parameters.
KeyFuncs::KeyInitType and KeyFuncs::ElementInitType typedefs are no longer used and user-defined KeyFuncs do not need to provide them.  Deprecated placeholders for these typedefs exist though they may not be defined exactly as they were before.  A new KeyType typedef needs to be provided by custom KeyFuncs which don't already inherit from BaseKeyFuncs or TDefaultMapKeyFuncs.
KeyConstPointerType, KeyInitType, ValueInitType and ElementInitType typedefs have been deprecated across TMap, TSet and TSortedMap.  Regular C++ parameter-passing semantics should be used instead (const T& Ref or T Value, depending on T).
Added missing FSetElementId::operator!=().

[FYI] steve.robb
#rb james.hopkin
[FYI] henrik.karlsson
#preflight 635a56c15d49a96f7b31938f

[CL 22850782 by graeme thornton in ue5-main branch]
2022-10-29 02:59:59 -04:00
steve robb
e980405a8f TMap and TSet can now be declared as members with forward-declared key and value parameters.
KeyFuncs::KeyInitType and KeyFuncs::ElementInitType typedefs are no longer used and user-defined KeyFuncs do not need to provide them.  Deprecated placeholders for these typedefs exist though they may not be defined exactly as they were before.  A new KeyType typedef needs to be provided by custom KeyFuncs which don't already inherit from BaseKeyFuncs or TDefaultMapKeyFuncs.
KeyConstPointerType, KeyInitType, ValueInitType and ElementInitType typedefs have been deprecated across TMap, TSet and TSortedMap.  Regular C++ parameter-passing semantics should be used instead (const T& Ref or T Value, depending on T).
Added missing FSetElementId::operator!=().

#rb james.hopkin
[FYI] henrik.karlsson
#preflight 635a56c15d49a96f7b31938f

[CL 22810695 by steve robb in ue5-main branch]
2022-10-27 11:20:32 -04:00
sebastien lussier
021d7f4530 World Partition - HLOD: Fix copy paste bug prevent the use of a lower resolution for UV packing in FStaticMeshOperations::GenerateUniqueUVsForStaticMesh()
#rb trivial
#preflight trivial

[CL 22505432 by sebastien lussier in ue5-main branch]
2022-10-13 11:33:48 -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
sebastien lussier
7741cc8b89 World Partition - HLOD: Prevent most common case of UV generation failure
#preflight 632856f9cb23fcbbd8d2c629
#rb jeanfrancois.dube

[CL 22084769 by sebastien lussier in ue5-main branch]
2022-09-19 19:53:44 -04:00
David Lesage
946193d09b StaticMeshOperation: Improve triangle normal computing in case of small triangle
#preflight 630397da33729407e88f7a5b

[CL 21484193 by David Lesage in ue5-main branch]
2022-08-22 11:16:01 -04:00
Zak Middleton
80627edb67 #ue5 - Move ConvertArrayType and ConvertArrayTypeClampMax to UE::LWC namespace.
#jira none
#rb none
#preflight 62fc03232265303c4ba38780

[CL 21414621 by Zak Middleton in ue5-main branch]
2022-08-16 17:11:27 -04:00
charles bloom
38b1d2e51f Mark up more ParallelFor scopes for Insights
#rb none
#preflight 6216cd82647bb7debf703367

[CL 19105606 by charles bloom in ue5-main branch]
2022-02-23 19:25:03 -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
andrew davidson
8e95b10069 Fix FVector2D variant casts - Runtime
Submitted on behalf of fred.kimberley
#rb andy.davidson
#preflight 61f8729a5a026d2d19bb9ca6
#preflight 61f87a025a026d2d19be76ed

#ROBOMERGE-OWNER: andrew.davidson
#ROBOMERGE-AUTHOR: andrew.davidson
#ROBOMERGE-SOURCE: CL 18802361 in //UE5/Release-5.0/... via CL 18802891 via CL 18821557
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)

[CL 18821641 by andrew davidson in ue5-main branch]
2022-02-02 01:47:07 -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
NILNULLNONE
a6440a2a04 PR #8721: ClearNormalsAndTangentsData early return bugfix (Contributed by NILNULLNONE)
#rb Alexis.Matte
#preflight 61e2f42d746be08ea442ba29

#ROBOMERGE-AUTHOR: richard.talbotwatkin
#ROBOMERGE-SOURCE: CL 18628347 in //UE5/Release-5.0/... via CL 18628350 via CL 18628351
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v899-18417669)

[CL 18628352 by NILNULLNONE in ue5-main branch]
2022-01-15 11:30:39 -05:00
UnrealBot
c47e81b2cb Branch snapshot for CL 18531810
[CL 18531810 in ue5-main branch]
2022-01-06 16:44:09 +00:00
UnrealBot
2987349d36 Branch snapshot for CL 18514113
[CL 18514113 in ue5-main branch]
2022-01-05 20:41:17 +00:00
michael balzer
525d45b344 StaticMeshDescription: Change loop variables to references and/or copies to resolve errors in Mac builds
#jira UE-138346
#preflight

#ROBOMERGE-AUTHOR: michael.balzer
#ROBOMERGE-SOURCE: CL 18523108 in //UE5/Release-5.0/... via CL 18523169
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v899-18417669)

[CL 18523197 by michael balzer in ue5-release-engine-test branch]
2022-01-05 14:39:39 -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
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
johan duparc
24da5eadae Datasmith: potential fix for crash in FStaticMeshOperations::ComputeTangentsAndNormals
#jira UE-117403
#rb JeanLuc.Corenthin
#rnx
#lockdown Simon.Tourangeau

#ROBOMERGE-OWNER: johan.duparc
#ROBOMERGE-AUTHOR: johan.duparc
#ROBOMERGE-SOURCE: CL 16613047 in //UE5/Release-5.0-EarlyAccess/... via CL 16613256
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v828-16531559)

[CL 16613266 by johan duparc in ue5-release-engine-test branch]
2021-06-09 17:26:10 -04:00
Andrew Davidson
3ddc3a4da3 Merge up from //UE5/Dev-LargeWorldCoordinates
#rb none

[CL 16211417 by Andrew Davidson in ue5-main branch]
2021-05-05 15:07:25 -04:00
Marc Audy
3cfedaade8 Fix PVS warning V502 when comparing against NAME_None in a trinary
[CL 16137741 by Marc Audy in ue5-main branch]
2021-04-28 01:58:36 -04:00
Sebastien Lussier
8b0ca6b2ea Optimized FStaticMeshOperations::GenerateUniqueUVsForStaticMesh()
* Create a mesh view instead of working with a copy of the FMeshDescription

[CL 15669870 by Sebastien Lussier in ue5-main branch]
2021-03-10 17:06:44 -04:00
richard talbotwatkin
7d27d48d42 Do not assume that the static mesh triangles array will be compact prior to calculating triangle face normals/tangents.
#jira UE-109753

#ROBOMERGE-SOURCE: CL 15572840 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v771-15082668)

[CL 15572863 by richard talbotwatkin in ue5-main branch]
2021-03-02 15:34:39 -04:00