Commit Graph

435 Commits

Author SHA1 Message Date
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
christopher waters
59ca6eac55 Adding implicit includes for upcoming dependency cleanup.
#preflight 63979d4e35203bc7aa1ab3a0

[CL 23485362 by christopher waters in ue5-main branch]
2022-12-12 19:33:55 -05:00
henry falconer
c5c0048993 Added support for setting r.GPUSkin.UnlimitedBoneInfluences and r.GPUSkin.UnlimitedBoneInfluencesThreshold per platform
#rb josie.yang,jeremy.moore
#preflight 6391c6970236bc17ce1f98f8

[CL 23448049 by henry falconer in ue5-main branch]
2022-12-08 11:50:34 -05:00
scott nelson
b2c1e9ff53 Fix issue where Static Mesh's created via animation tool defaulted to Game/Meshes when that may not be a valid folder
#rb Rex.Hill
#preflight 638e8e15255f07df8eb53dbb

[CL 23421931 by scott nelson in ue5-main branch]
2022-12-06 19:50:06 -05:00
tiago costa
7249bee912 Fix issue causing incorrect Mesh SDF generation
- Workaround issue with compiler optimization by using copy constructor.

#rb none
#preflight none
#fyi krzysztof.narkowicz

[CL 23313007 by tiago costa in ue5-main branch]
2022-11-29 12:53:43 -05:00
henry falconer
4510b454c4 Allow users to limit the number of bone influences per vertex below what the project supports.
BoneInfluencesLimit can be set on each LOD of an asset. DefaultBoneInfluencesLimit is a per-platform global default that can be set from the project settings.

This allows you to, for example, enable Unlimited Bone Influences on a project while ensuring that meshes don't use more than 8 influences by default, even if they've been imported with more.

#rb alexis.matte,josie.yang
#preflight 6380959cf514e1ded907774d

[CL 23265588 by henry falconer in ue5-main branch]
2022-11-25 08:32:25 -05:00
krzysztof narkowicz
e4add33abd Lumen - increase surface cache bias on all bMostlyToSided (foliage) objects. This improves surface cache projection on trees, which have a pretty inaccurate SDF and BVH representation.
[CL 23019436 by krzysztof narkowicz in ue5-main branch]
2022-11-07 17:22:37 -05:00
henrik karlsson
b5b86c796c This change is a strategical submit for a coming change that removes lots of includes in headers that are included by many files. This change contains adding of includes in files that previously got those includes transitively from other inclkudes
#preflight 6355d4940313c24974b2107b
#rb none

[CL 22783162 by henrik karlsson in ue5-main branch]
2022-10-26 12:57:32 -04:00
aditya ravichandran
1f3d7ce017 MeshUtilities: Fix an issue where the "Make Static Mesh" button was missing
#rb Lauren.Barnes

[CL 22711555 by aditya ravichandran in ue5-main branch]
2022-10-22 14:43:26 -04:00
eric knapik
ebeb6781c1 Animation BP toolbar trimming & permissions
* Tab filters are now applied before tab widgets before are created for animation blueprint editor instead of only when a user tries opening a new tab. This prevents disallowed tabs in default layouts being created.
* Event graph documents are not opened if event graph permissions are disabled when loading blueprint editor.
* Added new blueprint permission to optionally disable function overrides.

#rb thomas.sarkanen
#preflight 6346928ef04e6f8505f7b879

[CL 22547860 by eric knapik in ue5-main branch]
2022-10-15 02:13:23 -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
krzysztof narkowicz
a6c98502ff Lumen Mesh Cards - fixed infinite loop when generating mesh cards for large meshes and EmbreeRay.ray.tfar + 0.01f was equal to EmbreeRay.ray.tfar. Now hits against previous primitive are ignored and ray is always advanced by a smallest possible increment.
[CL 22221700 by krzysztof narkowicz in ue5-main branch]
2022-09-28 10:18:58 -04:00
halfdan ingvarsson
e2210cb024 Support for 16-bit skin weights on the skelmesh.
The main change is that FSoftSkinVertex, used by FSkeletalMeshLODModel, in now stores weights as 16-bit after conversion from the import data. This increases the size of each FSoftSkinVertex from 144 bytes to 160 bytes (about 10% increase). By default render meshes still use 8-bit skin weights, with weights downshifted from the 16-bit modeling data, so no change in GPU memory consumption there. However, the vertex buffer will automatically return a 16-bit skin weights when requested from the GPU side (e.g. for CPU skinning and viewing tangents).

This change in the model data and vertex buffer CPU-side query, resulted in many changes throughout the codebase and will have an effect on licensees who are actively reading from and writing to these two storage locations.

The GPU skin cache shader has had one more permutation added when not using unlimited skin weights. The vertex factory is not affected.

#jira UE-164386
#rb alexis.matte, josie.yang
#preflight 632c0c5ab4515b7e22b4804d

[CL 22215219 by halfdan ingvarsson in ue5-main branch]
2022-09-27 19:48:05 -04:00
krzysztof narkowicz
483c135f59 Lumen Mesh Cards - fixed bug forcing all cards to be placed on the bounding box of a mesh.
[CL 22084720 by krzysztof narkowicz in ue5-main branch]
2022-09-19 19:51:43 -04:00
bryan sefcik
892629fe83 Fixed some paths that got updated to include the full "ThirdParty" path.
#jira
#preflight 6320877bbc40358fa2995069

[CL 21997782 by bryan sefcik in ue5-main branch]
2022-09-13 21:48:33 -04:00