Commit Graph

449 Commits

Author SHA1 Message Date
steve robb
6d5b974842 Fixed up a lot of bool-taking container resize functions to take EAllowShrinking instead.
[CL 30735396 by steve robb in ue5-main branch]
2024-01-19 19:41:56 -05:00
halfdan ingvarsson
b692d6e175 Skeletal Mesh: Change the import storage to use FMeshDescription instead of FSkeletalMeshImportData. This includes deprecating the USkeletalMesh::LoadLODImportedData and friends, in lieu of an API more similar to the one on UStaticMesh (GetMeshDescription/CommitMeshDescription/etc).
#jira UE-166343
#rb Alexis.Matte, benoit.gadreau, john.vanderburg

[CL 30711382 by halfdan ingvarsson in ue5-main branch]
2024-01-19 00:37:06 -05:00
halfdan ingvarsson
e7d9a08b2d Skeletal Mesh: Remove the FBX import flags from FSkeletalMeshImportData. There's no need for them, since they can be maintained purely within the import cycle.
#jira UE-166343
#rb Alexis.Matte
#tests Editor.Import.Fbx.*

[CL 30099989 by halfdan ingvarsson in ue5-main branch]
2023-12-04 18:20:03 -05:00
tiago costa
1aa5e205b9 Replaced double precision members of FDistanceFieldVolumeData and FSparseDistanceFieldMip with single precision floats.
#rb Krzysztof.Narkowicz

[CL 29863953 by tiago costa in ue5-main branch]
2023-11-21 09:53:46 -05:00
sebastien hillaire
773b3c6731 Lumen - add capture of translucent meshes into lumen scene and card.
If hit lighting and refraction is not enabled, translucent meshes will be skipped, and translucent cards part of composed meshes won't be won't be dispatched.
#rb Krzysztof.Narkowicz

[CL 29507890 by sebastien hillaire in ue5-main branch]
2023-11-06 20:10:34 -05:00
Brice Criswell
50af62ae00 Import: Keep sections separate
-	Adds an option to not merge skeletal mesh sections sharing the same material during FBX import. This allows you to control visibility at a per-section level without having to give each section a unique material. [Github Pull Request: 9587]
#jira UE-164863
#rb Alexis.Matte, JeanLuc.Corenthin

[CL 26757306 by Brice Criswell in ue5-main branch]
2023-08-01 18:02:41 -04:00
tiago costa
abca6b5a6c Resubmit CL26160360, 26146080, 26137852, 26126752
Only leaving CL 26157603 reverted since accessing GenerateSource in FDistanceFieldVolumeData::CacheDerivedData is not safe due to async mesh compilation.

#prelight 64948190a26e02126bc0a64f
#rb Krzysztof.Narkowicz

[CL 26206875 by tiago costa in ue5-main branch]
2023-06-23 04:28:57 -04:00
bob tellez
4c7e2e1b32 [Backout] - CL26160360, 26157603, 26146080, 26137852, 26126752
[FYI] tiago.costa
Original CL Desc
-----------------------------------------------------------------
Use FSignedDistanceFieldBuildSectionData when generating distance fields for Nanite meshes.

Context:
- Nanite meshes distance fields are generated using the original mesh data instead of the coarse representation generated by Nanite, however that code path was not checking section data such as blend mode, two sided, etc.

Fix:
- Modified FStaticMeshBuilder::BuildMeshVertexPositions(...) to also output a FStaticMeshSectionArray.
- Updated MeshRepresentation::SetupEmbreeScene(...) to check section flags when using SourceMeshData.IsValid() code path.

#prelight
#rb Krzysztof.Narkowicz

[CL 26174853 by bob tellez in ue5-main branch]
2023-06-22 00:25:01 -04:00
tiago costa
2b73cf0aa3 Use FSignedDistanceFieldBuildSectionData when generating distance fields for Nanite meshes.
Context:
- Nanite meshes distance fields are generated using the original mesh data instead of the coarse representation generated by Nanite, however that code path was not checking section data such as blend mode, two sided, etc.

Fix:
- Modified FStaticMeshBuilder::BuildMeshVertexPositions(...) to also output a FStaticMeshSectionArray.
- Updated MeshRepresentation::SetupEmbreeScene(...) to check section flags when using SourceMeshData.IsValid() code path.

#prelight
#rb Krzysztof.Narkowicz

[CL 26160411 by tiago costa in ue5-main branch]
2023-06-21 16:17:07 -04:00
bob tellez
4145327cc9 #UE disable a warning, for now
[FYI] tiago.costa

[CL 26142892 by bob tellez in ue5-main branch]
2023-06-21 03:26:51 -04:00
tiago costa
a6c0a01df7 Fix incorrect Distance Field / Card Representation when multiple mesh sections with different settings point to the same material slot
- Different mesh sections can point to the same material slot which was a problem since bAffectDistanceFieldLighting flag can be set per section but we were using an array with an entry per material slot instead of per section.
- To address this now we build array of FSignedDistanceFieldBuildSectionData (one entry per section) so section don't override each other.

#prelight 64921d9ab76bf403cda2f33f
#rb daniel.wright

[CL 26137888 by tiago costa in ue5-main branch]
2023-06-20 18:44:39 -04:00
marc audy
d1f48fc5c8 Fix implicit capture of this using [=] deprecated in C++20
#jira
#rnx

[CL 25989494 by marc audy in ue5-main branch]
2023-06-14 15:07:58 -04:00
halfdan ingvarsson
9c3950900b Skelmesh: Optimize import of alternative skin weights.
#jira UE-186957
#preflight 646e950df85111e06cc68d00
#rb alexis.matte

[CL 25635967 by halfdan ingvarsson in ue5-main branch]
2023-05-25 20:47:10 -04:00
bryan sefcik
91c57d395e Removed redundant module includes.
#preflight 645d4bf3aa3c584c0b5b3a67

[CL 25435653 by bryan sefcik in ue5-main branch]
2023-05-11 16:48:21 -04:00
halfdan ingvarsson
70b0b08c55 Fix for alternate skin weights blowing up.
#preflight 644766b8bd7cb48eeaa46472
#rnx

[CL 25176729 by halfdan ingvarsson in ue5-main branch]
2023-04-25 03:07:31 -04:00
kevin ortegren
f9272bdeba Embree device/scene is used even after they fail init. Fix crash by early out. (This matches the behavior of GenerateCardRepresentationData).
Failed Embree init will leave FDistanceFieldVolumeData::IsValid() returning false.

#rb tiago.costa, mihnea.balta
#rnx
#preflight 63ff868dae54ee4ce945432b

[CL 24471347 by kevin ortegren in ue5-main branch]
2023-03-01 16:53:19 -05:00
benoit deschenes
00ed0aec11 Fix StaticMeshToRawMeshes() not handling InstancedStaticMeshComponents properly. This fixes the "Convert to Static Mesh" tools.
#rb Alexis.Matte
#jira UE-178531
#preflight 63fccd38e32cdb7d9ad5befe

[CL 24427722 by benoit deschenes in ue5-main branch]
2023-02-27 13:29:47 -05:00
Krzysztof Narkowicz
81fd5a321a Lumen Mesh Cards - fixed hang when generating poorly constructred meshes and due to an EmbreeRay bug, EmbreeRay.ray.tfar.ray.tnear was further than EmbreeRay.ray.tfar
#preflight skip
#jira udn

[CL 24230480 by Krzysztof Narkowicz in ue5-main branch]
2023-02-15 10:25:39 -05:00
henry falconer
e37d251435 Load the MeshBoneReduction module as soon as the MeshUtilities module starts up, as it could be needed at any time from a background thread
#rb Alexis.Matte
#preflight 63dd310714326f9a403c2f1a
#jira none

[CL 24028240 by henry falconer in ue5-main branch]
2023-02-06 06:18:31 -05:00
Charles deRousiers
dfd288a8d6 Fix CIS non-unity build.
#rb none
#jira none
#preflight 63d0e278d83c1837b1ed2948

[CL 23845021 by Charles deRousiers in ue5-main branch]
2023-01-25 03:24:59 -05:00
halfdan ingvarsson
0179db1d12 Fix issues with alternate skin profiles and high-precision skin weights
#preflight 63c746a702024f93d88fb1e4
#rb alexis.matte
#jira none
#rnx

[CL 23790797 by halfdan ingvarsson in ue5-main branch]
2023-01-20 11:12:19 -05:00
Charles deRousiers
338b5c153b Merge BlendMode and BlendModeStrata to reduce code divergence, and ease maintenance.
#rb sebastien.hillaire
#jira none
#preflight 63c03173c77f50e3b47ed2bd

[CL 23683231 by Charles deRousiers in ue5-main branch]
2023-01-13 14:19:13 -05:00
christopher waters
447bc4c130 Header dependency cleanup around Mesh Cards and some Renderer headers.
#preflight 63b6fd31577437afe6631d0b

[CL 23592507 by christopher waters in ue5-main branch]
2023-01-05 16:11:09 -05:00
Charles deRousiers
d5a07828ed Fix even more Strata blend mode.
#rb none
#jira none
#preflight 639a1ee98c64c74ac80ff657

[CL 23516373 by Charles deRousiers in ue5-main branch]
2022-12-14 14:47:58 -05:00
Charles deRousiers
5c44593f0d Abstract blendmode lookup to ease blend mode compatibility with Strata.
#rb sebastien.hillaire
#jira none
#preflight 6398964335203bc7aa695e10

[CL 23492252 by Charles deRousiers in ue5-main branch]
2022-12-13 10:44:43 -05:00