Commit Graph

918 Commits

Author SHA1 Message Date
Michael Forot
0a75528473 Save of the dataflow scene description
#rb Brice.Criswell
#jira none

[CL 34495970 by Michael Forot in ue5-main branch]
2024-06-19 08:11:11 -04:00
mattias hornlund
6fff4f9c51 Iris / Juno
- Temporary change to make GeometryCollectionRepDynamicData, GeometryCollectionRepData and GeometryCollectionRepStateData to use LastResortNetSerializer

#rb Peter.Engstrom

[CL 34272063 by mattias hornlund in ue5-main branch]
2024-06-11 06:55:07 -04:00
graham wihlidal
18f387a4e2 Nanite support for per mesh section cast shadows flag
#rb jamie.hayes
#jira UE-171477
#fyi brian.karis, rune.stubbe, andrew.lauritzen, ola.olsson

[CL 34210703 by graham wihlidal in ue5-main branch]
2024-06-07 14:58:51 -04:00
Brice Criswell
b2c1fb1c9b GeometryCollection : Conversion from SkeletalMesh
- Fixed insertion issue for debug builds where infos and raw names were misaligned.
#rb brice.criswell
#jira none

[CL 34107501 by Brice Criswell in ue5-main branch]
2024-06-04 17:21:52 -04:00
cedric caillaud
10fbeb2a28 Geometry collection : Memory optimization : Remove simplicials from dynamic collection avoiding extra expensive copies and extra memory
this saves a total 16 bytes per bone ( Physics thread + game thread dyanmic collection )  per geometry collection component

#rb Benn.Gallagher, titouan.deslandes, vincent.robert

[CL 34080384 by cedric caillaud in ue5-main branch]
2024-06-03 18:44:53 -04:00
cedric caillaud
6c7af5818d [Backout] - CL33950711
[FYI] cedric.caillaud
Original CL Desc
-----------------------------------------------------------------
[Backout] - CL33931377
[FYI] cedric.caillaud
Original CL Desc
-----------------------------------------------------------------
Geometry collection asset - move cooking of render data  out of the serialize method
- This is required to support async loading and avoid the resource initialization from calling GameThread  checked methods
- Move cooking to both PreSave and PostLoad
THis simplifies the code as PostLoad and PreSave are not called during transactions

#rb Jeremy.Moore
#jira UE-215088

[CL 33978689 by cedric caillaud in ue5-main branch]
2024-05-29 13:10:12 -04:00
cedric caillaud
fd85c92ee6 [Backout] - CL33931377
[FYI] cedric.caillaud
Original CL Desc
-----------------------------------------------------------------
Geometry collection asset - move cooking of render data  out of the serialize method
- This is required to support async loading and avoid the resource initialization from calling GameThread  checked methods
- Move cooking to both PreSave and PostLoad
THis simplifies the code as PostLoad and PreSave are not called during transactions

#rb Jeremy.Moore
#jira UE-215088

[CL 33951250 by cedric caillaud in ue5-main branch]
2024-05-28 16:12:37 -04:00
cedric caillaud
40afb51b2a Geometry collection asset - move cooking of render data out of the serialize method
- This is required to support async loading and avoid the resource initialization from calling GameThread  checked methods
- Move cooking to both PreSave and PostLoad
THis simplifies the code as PostLoad and PreSave are not called during transactions

#rb Jeremy.Moore
#jira UE-215088

[CL 33931385 by cedric caillaud in ue5-main branch]
2024-05-27 17:17:50 -04:00
cedric caillaud
1be79a061b geometry collection : add support for changing enable gravity flag at runtime
[FYI] chris.caulfield

[CL 33928320 by cedric caillaud in ue5-main branch]
2024-05-27 14:23:58 -04:00
cedric caillaud
1e68725496 geometry collection - memory optimization - allocate field data on demand , remove unused arrays and packed existing private members
- saves 320 bytes from the proxy
- cleaned up the buffer command API for the proxy to be clear about what can be called from the game or physics thread

#rb vincent.robert, benn.gallagher, brice.criswell, titouan.deslandes

[CL 33900856 by cedric caillaud in ue5-main branch]
2024-05-24 14:14:39 -04:00
titouan deslandes
2222f0c382 Geometry collection - memory optimization
* packed and re-ordered members in GeometryCollectionComponent, saving 64 bytes
* packed and re-ordered members in GeometryCollectionISMPoolRenderer, saving 16 bytes
* packed and re-ordered members in IPhysicsProxyBase, saving 8 bytes
* packed and re-ordered members in ClusterUnionReplicatedProxyComponent, saving 16 bytes

#rb cedric.caillaud

[CL 33894015 by titouan deslandes in ue5-main branch]
2024-05-24 10:31:28 -04:00
cedric caillaud
bd29cafbab Geometry collection - memory optimization
* packed and re-ordered data in structures to minimize padding as much as possible
* reduce simulation parameters data by 80 bytes ( 112 if stripping the deprecated members )
* remove dead code

#rb titouan.deslandes

[CL 33871845 by cedric caillaud in ue5-main branch]
2024-05-23 15:40:38 -04:00
jimmy andrews
636bfbf3fc Remove bone selected material reference from UGeometryCollection, and clean up some references / accesses to it and legacy methods referring to its (now nonexistent) material ID
#rb cedric.caillaud

[CL 33836478 by jimmy andrews in ue5-main branch]
2024-05-22 13:38:07 -04:00
cedric caillaud
9a834f685f Remove unused NaniteIndex attribute when creating minimal collection for nanite
#rb Jimmy.Andrews

[CL 33834558 by cedric caillaud in ue5-main branch]
2024-05-22 12:48:57 -04:00
cedric caillaud
b1294014fd Geometry collection / Dataflow : properly support material instances
[CL 33821138 by cedric caillaud in ue5-main branch]
2024-05-22 00:24:38 -04:00
cedric caillaud
a411fe17b2 Move the creation of default size spceific data in the constructor of the geometry collection object
#rb Brice.Criswell

[CL 33816031 by cedric caillaud in ue5-main branch]
2024-05-21 19:52:06 -04:00
Michael Forot
7afe95f574 3- Multiple dataflow terminal nodes
#rb Brice.Criswell
#jira none

[CL 33762293 by Michael Forot in ue5-main branch]
2024-05-20 04:19:46 -04:00
cedric caillaud
95f4ca7bb6 Fix crash when loading some geometry collection asset missing mass/inertia attributes
- When attributes are missing we regenerate them   ( editor time only , so assets will be fixed next cook )
- in the future we should revise the way we cook those assets

#rb Jimmy.Andrews

[CL 33649235 by cedric caillaud in ue5-main branch]
2024-05-14 22:36:52 -04:00
cedric caillaud
c6f2fc4c7b Geometry Collection : Fix Nanite Index attribute being created with the wrong type (FBox) but being used as an int32
Note : this attribute does not seem to be used anywhere , will likely remove it in future changes

#rb Jimmy.Andrews
#jira UE-214890

[CL 33640820 by cedric caillaud in ue5-main branch]
2024-05-14 19:54:20 -04:00
sarah noonan
a586204e3f Update GeometryCollection memory count to be more accurate in obj lists.
#rb cedric.caillaud

[CL 33604206 by sarah noonan in ue5-main branch]
2024-05-13 10:37:06 -04:00
cedric caillaud
473b476c90 Fix broken chaos cache replay
- symptoms : Cache would fail to set the geometry collection to be kinematic when replaying , causing also the pose to be reset regardless of the start time
- fix : make sure to note recreate the physics state if it was already created, if it was , make sure to recreate the physics proxy as well


#rb Benn.Gallagher, vincent.robert
#jira UE-214150

[CL 33520578 by cedric caillaud in ue5-main branch]
2024-05-08 14:18:26 -04:00
jimmy andrews
5aecf12a04 Make the geometry collection neighbor/contact selection work on clusters + add supporting methods to enumerate neighbors w/ support for non-leaf transforms
+ make corresponding contact select dataflow nodes use the updated neighbor selection logic
#rb cedric.caillaud

[CL 33462920 by jimmy andrews in ue5-main branch]
2024-05-06 13:57:40 -04:00
Brice Criswell
392409b63d GeometryCollection : SkeletalMeshToCollectionConversion
- Updated split mesh bone name to start from zero.
#rb yushan.han
#jira none

[CL 33388203 by Brice Criswell in ue5-main branch]
2024-05-01 20:41:45 -04:00
Brice Criswell
ab85cafc1f Dataflow : Skeleton View
-Refactored Skeleton View to match the FDataflowNodeView paradigm.
-Renamed ?Skeletal Hierarchy? to ?Skelton View?
-Added conversion for Collection to Skelton
-Updated FCollectionTransformFacade to support optional BoneName attribute.
#rb cedric.caillaud
#jira none

[CL 33337463 by Brice Criswell in ue5-main branch]
2024-04-30 10:30:35 -04:00
cedric caillaud
604109c3a3 Geometry collection : when loading geometry collection with older version of the implicits / sharedimplicits attributes, make sure to account for the fact that the collection may contains multiple of those
#rb vincent.robert
#jira UE-213338

[CL 33283210 by cedric caillaud in ue5-main branch]
2024-04-26 19:09:00 -04:00