Commit Graph

46 Commits

Author SHA1 Message Date
benoit gadreau
77adc25814 DynamicMeshProvider: full support for MeshDescription LODs when converting to DynamicMesh
a FGetMeshParameters parameter is now used to request a specific LOD, as well as the option of requesting tangents
    this will also allow further customization in the future, if required, by adding attributes to the FGetMeshParameters struct


#rb halfdan.ingvarsson, Jimmy.Andrews
#rnx

[CL 33681647 by benoit gadreau in ue5-main branch]
2024-05-16 04:43:12 -04:00
lonnie li
a746e676fb ModelingTools: Added a new cvar (modeling.CapturePostEditChangeInTransactions, default=true). When set to false, PostEditChange will be excluded from tool-target based modeling tool transactions.
#rb David.Hill, semion.piskarev
#jira UE-209978

[CL 33496407 by lonnie li in ue5-main branch]
2024-05-07 17:25:47 -04:00
jack cai
cda118409f [Skeletal Mesh Editor] Third attempt to make sure UI reacts to new weight map layers being added as new Vertex Attributes
+verified that the thread safety issue due to the use of a multicast delegate from a workerthread during cook is fixed as well.

#jira UE-210085
#rb benoit.gadreau
#lockdown timothy.daoust

[CL 32540278 by jack cai in ue5-main branch]
2024-03-27 08:04:58 -04:00
justin peterson
3bd0386dee [Backout] - CL32415082 - Build Cook Error
[FYI] jack.cai
Original CL Desc
-----------------------------------------------------------------
[Skeletal Mesh Editor] second try to make sure UI reacts to new weight map layers being added as new Vertex Attributes
+verified that the thread safety issue due to the use of a multicast delegate from a workerthread during cook is fixed as well.

#jira UE-210085
#rb benoit.gadreau

[CL 32426249 by justin peterson in ue5-main branch]
2024-03-21 23:08:56 -04:00
jack cai
a28669f2b7 [Skeletal Mesh Editor] second try to make sure UI reacts to new weight map layers being added as new Vertex Attributes
+verified that the thread safety issue due to the use of a multicast delegate from a workerthread during cook is fixed as well.

#jira UE-210085
#rb benoit.gadreau

[CL 32417951 by jack cai in ue5-main branch]
2024-03-21 17:42:19 -04:00
keaton stewart
50a0935bf2 [Backout] - CL32368829
[FYI] jack.cai
Original CL Desc
-----------------------------------------------------------------
[Skeletal Mesh Editor] Making sure UI reacts to new weight map layers being added as new Vertex Attributes

#jira UE-210085
#rb benoit.gadreau

[CL 32379120 by keaton stewart in ue5-main branch]
2024-03-20 15:51:42 -04:00
jack cai
ce361c61a3 [Skeletal Mesh Editor] Making sure UI reacts to new weight map layers being added as new Vertex Attributes
#jira UE-210085
#rb benoit.gadreau

[CL 32369086 by jack cai in ue5-main branch]
2024-03-20 12:05:17 -04:00
jimmy andrews
f79612960d make static mesh <-> dynamic mesh conversion be aware of section (polygon group ID) to material index mappings
#jira UE-200228
#rb David.Hill

[CL 32004596 by jimmy andrews in ue5-main branch]
2024-03-04 18:33:07 -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
jimmy andrews
723fd517f1 make staticmeshtooltarget and staticmeshcomponenttooltarget handle buildscale on static mesh <-> mesh description conversions, so tools using these targets will show correctly-scaled meshes
#rb David.Hill

[CL 30193994 by jimmy andrews in ue5-main branch]
2023-12-07 17:38:34 -05:00
roey borsteinas
e168d21835 Exposed a new property bIsEditable on UDynamicMeshComponent to allow them to block any modifications done through EditMesh/SetMesh. Additionally, when this flag is set to false, the UDynamicMeshToolTarget is blocked from being created for the dynamic mesh component so modeling tools can't edit the mesh either.
#rb Ryan.Schmidt

[CL 29959323 by roey borsteinas in ue5-main branch]
2023-11-28 09:50:36 -05:00
jimmy andrews
7e50f1b82d add option to request tangents to the dynamic mesh provider, with custom implementations for targets that go through the mesh description (so we'll use the standard tangent compute paths in those cases)
#rb ryan.schmidt

[CL 29416384 by jimmy andrews in ue5-main branch]
2023-11-03 14:59:41 -04:00
semion piskarev
582964265a MeshModelingTools: Harden tool targets against underlying objects being replaced via blueprints and/or garbage collected.
#rb Lonnie.Li, Jimmy.Andrews
#jira UE-184401
#preflight 64525c58743c256cd692d59e

[CL 25334286 by semion piskarev in ue5-main branch]
2023-05-04 09:51:24 -04:00
david hill
1660860437 Mesh Modeling - Static Mesh and Static Mesh Component Tool Targets.
Update Can Build Target to distinguish generated LODs.   Tools shouldn't edit generated LODs.

#jira UE-183213
#preflight 64415b4e9566b614506456f5
#rb Rinat.Abdrashitov

[CL 25132341 by david hill in ue5-main branch]
2023-04-20 14:18:49 -04:00
jimmy andrews
e5b9310407 add support for querying LOD support in a mesh description provider, and use this to add an option to apply Bake Transform and Pivot tools to all LODs
#jira UE-182339
#rb ryan.schmidt
#preflight 6439a35c8e019684483b37dd

[CL 25068419 by jimmy andrews in ue5-main branch]
2023-04-17 11:09:56 -04:00
nathan mitchell
6eb4eda6a2 ModelingComponents: Restore check for SourceModel existence during CanBuild in static mesh tool targets.
#rb Ryan.Schmidt
#preflight 642dde0f8f078cc7031a149c

[CL 24951829 by nathan mitchell in ue5-main branch]
2023-04-06 14:59:42 -04:00
alexis matte
3374b5028f [Backout] - CL24910510
[FYI] Alexis.Matte
Original CL Desc
-----------------------------------------------------------------
Reorder the hires mesh to fit the LOD 0 in all workflow

#jira
#rb ryan.schmidt
#rnx
#preflight 642c2665ce01db47ac208f69

[CL 24937402 by alexis matte in ue5-main branch]
2023-04-05 17:36:59 -04:00
alexis matte
36bd338e11 Reorder the hires mesh to fit the LOD 0 in all workflow
#jira
#rb ryan.schmidt
#rnx
#preflight 642c2665ce01db47ac208f69

[CL 24912837 by alexis matte in ue5-main branch]
2023-04-04 12:40:15 -04:00
benoit gadreau
34e7de0680 - added USkeletalMesh::Get/CommitMeshDescription functions to ease skeletal mesh manipulations thru mesh description
- store RefBasesInvMatrix when transacting as the number of bones serialized with the ref skeleton can vary
- fixed transaction issue with Modify not being called on USkeletalMeshEditorData


#jira UE-181601
#rb halfdan.ingvarsson
#preflight 642be5c0f376ab43d25f537f

[CL 24912623 by benoit gadreau in ue5-main branch]
2023-04-04 12:27:04 -04:00
nathan mitchell
0953ef8eda ModelingMode: Adjusted the conditions used for checking if targets can build dynamic meshes for modeling tools to include proper checks for cooked assets in the editor.
#rb halfdan.ingvarsson
#preflight 6424857d974dfaa53c67ee9c

[CL 24851226 by nathan mitchell in ue5-main branch]
2023-03-30 02:26:50 -04:00
semion piskarev
6dd5376acb MeshModelingTools: Fix volumes always having per-triangle normals when not going through volume to mesh tool.
#rb Jimmy.Andrews
#jira UE-152032
#preflight 63f78bb0ae54ee4ce9599a84

[CL 24432234 by semion piskarev in ue5-main branch]
2023-02-27 16:25:17 -05:00
nathan mitchell
a0fc664d78 ModelingMode: Fix the static mesh tool target to not be so aggressive in checking for transaction success when modifying mesh descriptions to prevent a crash from occurring when asset editors are closed with local changes during an asset reload.
#preflight 63d43aa6f626715201a0736e
#rb Jimmy.Andrews
#jira UE-172722

[CL 23922360 by nathan mitchell in ue5-main branch]
2023-01-31 00:54:25 -05:00
christopher waters
7215f7d4ec Fully moving MaterialDomain to its own header.
#jira none
#preflight 639b4dc335203bc7aa695078

[CL 23531533 by christopher waters in ue5-main branch]
2022-12-15 16:01:51 -05:00
alexis matte
4897d11583 Add Absolute criterion to staticmesh FMeshReductionSettings.
#rb brian.karis , jeanluc.corenthin , richard.talbotwatkin
#rnx
#preflight 638e35291776b8c21c32026b

[CL 23399365 by alexis matte in ue5-main branch]
2022-12-05 16:24:30 -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