Commit Graph

277 Commits

Author SHA1 Message Date
bryan sefcik
a325a91dd1 Updated the "AutoInstances" meshes to not add to the ISMPool until they are needed.
Deprecated the FSoftObjectPath "StaticMesh" property in FGeometryCollectionAutoInstanceMesh and replaced it with a TObjectPtr<UStaticMesh> Mesh property. This fixes an issue where asserts would fire because we were doing sync loads after the loadscreen.
These changes saved roughly 100MBs in our test level.

#jira
#rb cedric.caillaud
#preflight 63f846e9c35a14198085d30e

[CL 24406749 by bryan sefcik in ue5-main branch]
2023-02-24 15:00:49 -05:00
cedric caillaud
50efd38db8 Geometry collection: make removal random generated timer values consistent between client and server
- make bone colors unique per component based on number of bones
- remove dependency to PhysXUserdata

#rb none
#preflight 63f86cbcdd78dd50f6541cca

[CL 24406423 by cedric caillaud in ue5-main branch]
2023-02-24 14:43:53 -05:00
jimmy andrews
77374553ae remove legacy guard against having 0 materials on geometry collection components
#rb devon.penney
#preflight 63f5c6d77064074bd874e702

[CL 24371929 by jimmy andrews in ue5-main branch]
2023-02-22 17:59:05 -05:00
michael bao
dc08abbd84 ensure that the OnComponentPhysicsStateChanged gets called properly for geometry collections
#rb cedric.caillaud
#preflight 63f008a73c1eb56f05e9cd21

[CL 24327550 by michael bao in ue5-main branch]
2023-02-20 17:08:39 -05:00
jimmy andrews
6d9fd9b6de make the fracture mode 'explode amount' slider's exploded vectors affect the rendered bone transforms for geometry collections
#rb cedric.caillaud
#preflight 63f0421a81646f1f24c3d6f6

[CL 24298073 by jimmy andrews in ue5-main branch]
2023-02-18 00:01:05 -05:00
jimmy andrews
5f26fce1c5 fracture mode rendering changes: rebuild render data rather than marking the component dirty for UVs and material updates, and change 'check' to 'ensure' for invalid exploded view vectors
#rb jeremy.moore
#preflight 63f0014ae832ea950aa8cee0

[CL 24296753 by jimmy andrews in ue5-main branch]
2023-02-17 22:12:23 -05:00
bryan sefcik
aa3b70f03b [Backout] - CL24251176
[FYI] bob.tellez
Original CL Desc
-----------------------------------------------------------------
[Backout] - CL24248607
[FYI] bryan.sefcik
Original CL Desc
-----------------------------------------------------------------
Updated the static mesh property("RootProxy") in UGeometryCollection to be a FGeometryCollectionProxyMeshData which currently contains an array of static meshes.
Deprecated the old RootProxy property in UGeometryCollection. Old data will still work.

#rb cedric.caillaud
#preflight 63ed6ac996073a3e191d8b6d

[CL 24265247 by bryan sefcik in ue5-main branch]
2023-02-16 14:21:21 -05:00
jeremy moore
1cae9c2d97 Move all immutable geometry collection rendering data into the geometry collection asset.
This is built as part of geometry collection DDC contents.
Reworked scene proxy to use this data. Some big changes there:
* Tidied up hit proxy code so that all hit proxy clients use the same path.
* Removing of internal faces are now handled without an additional index buffer by always storing internal faces at the end of a section and providing different section descriptions for including internal faces.
* Dynamic geometry hiding in editor is now done by zeroing transforms instead of rebuilding the index buffer.
#rb cedric.caillaud
#preflight 63edc2e55c7bd278c11efe51

[CL 24261113 by jeremy moore in ue5-main branch]
2023-02-16 12:40:53 -05:00
bob tellez
dbae1e7125 [Backout] - CL24248607
[FYI] bryan.sefcik
Original CL Desc
-----------------------------------------------------------------
Updated the static mesh property("RootProxy") in UGeometryCollection to be a FGeometryCollectionProxyMeshData which currently contains an array of static meshes.
Deprecated the old RootProxy property in UGeometryCollection. Old data will still work.

#rb cedric.caillaud
#preflight 63ed6ac996073a3e191d8b6d

[CL 24253444 by bob tellez in ue5-main branch]
2023-02-16 04:18:45 -05:00
cedric caillaud
84e0a41fe9 Geometry collection : make sure Resttransform are in sync with RestCollection to avoid scrambled assets in previews
#rb trivial
#preflight none

[CL 24253436 by cedric caillaud in ue5-main branch]
2023-02-16 04:18:27 -05:00
bryan sefcik
93b6bde4c9 Updated the static mesh property("RootProxy") in UGeometryCollection to be a FGeometryCollectionProxyMeshData which currently contains an array of static meshes.
Deprecated the old RootProxy property in UGeometryCollection. Old data will still work.

#rb cedric.caillaud
#preflight 63ed6ac996073a3e191d8b6d

[CL 24253387 by bryan sefcik in ue5-main branch]
2023-02-16 04:16:21 -05:00
cedric caillaud
d57752d7f2 Geometry collection : add support for root proxy and leaf meshes to using ISM or HISM
- added cvar to control this
- updated ISMPool to take a pereferHISM option when registering a mesh

#rb jeremy.moore
#preflight 63ec1631f36e1a5ece8b9064

[CL 24225362 by cedric caillaud in ue5-main branch]
2023-02-14 20:54:11 -05:00
cedric caillaud
b37451d0c3 Fix crash when simulating physics with a geometry collection with no rest collection assigned
#rb brice.criswell, michael.lentine
#jira UE-171743
#preflight 63ea64f48e7e896ad280d51e

[CL 24179994 by cedric caillaud in ue5-main branch]
2023-02-13 13:02:03 -05:00
jimmy andrews
92852cf5b1 rework how internal faces are tracked and assigned materials in geometry collections:
- add explicit tracking of internal surfaces in fracture geometry, and remove concept of 'internal-only' materials in odd-numbered slots.
- add tooling to set internal materials, and to set default internal materials to be assigned on fracture
- add option to preserve internal face data via odd material numbers in ToMesh tool + option to re-import these ToMesh outputs w/ internal material IDs set

#rb cedric.caillaud
#rb david.hill
#preflight 63e66867de74ffbae51e5dc7
#jira UE-165320

[CL 24136970 by jimmy andrews in ue5-main branch]
2023-02-11 12:37:57 -05:00
vincent robert
a7dc3bb763 Decrease Constant Data memory
#rb cedric.caillaud
#preflight 63e5190683340ac6cbf0b1ff

[CL 24106141 by vincent robert in ue5-main branch]
2023-02-09 16:18:01 -05:00
cedric caillaud
7fb487a175 Add cvar (p.Chaos.GC.ForceAutoAssignISMPool) to force auto assigning ISMPool to GC components - false by default
#rb none
#preflight none

[CL 24067014 by cedric caillaud in ue5-main branch]
2023-02-08 00:25:53 -05:00
cedric caillaud
80746b8afe geometry collection : fix potential crash when physics state is created while rest collection is not set yet
may happem when adding geometry collection component to a BP while having it open for edit in the editor

#rb trivial
#preflight none

[CL 24040927 by cedric caillaud in ue5-main branch]
2023-02-06 18:22:40 -05:00
michael bao
b190d1654f remove commented line in geometry collection component
#preflight skip

[CL 24040413 by michael bao in ue5-main branch]
2023-02-06 18:06:29 -05:00
michael bao
7bfae7b114 reduce the amount of async physics ticking geometry collections do.
- Server: only update rep data when the physics sync is called (i.e. when the physics proxy is dirty)
- Client: only process rep data when we get notified the rep data is changed. plus let the tick stick around for a bit so long as the tick is active.

#preflight 63e14d63244dc45a20e29543
#rb cedric.caillaud
[FYI] steven.barnett

[CL 24040412 by michael bao in ue5-main branch]
2023-02-06 18:06:23 -05:00
jimmy andrews
000eda2356 move geometry collection bone selected material out of the user-exposed materials array for new geometry collections
#rb cedric.caillaud
#preflight 63e131114d25c400b7119455

[CL 24040296 by jimmy andrews in ue5-main branch]
2023-02-06 18:02:08 -05:00
cedric caillaud
1a2086a540 Geometry collection : fix code to support removal of geometry, vertex and face groups when nott using nanite ( to properly support StripOnCook for ISMPool )
- Better support for bounds computation using transform bounding box attribute ( this code path can now use ISPC )
- make sure that using ISMPool is equivalent to having visible geometry in the TickComponent method

#rb benn.gallagher
#preflight 63dcc0fcc2257e56f4919a6a

[CL 24009697 by cedric caillaud in ue5-main branch]
2023-02-04 00:32:04 -05:00
michael bao
df1d2a5373 add ability to set collision profiles per level on the geometry collection
#preflight 63dc5ddf07207b257024782d
#rb cedric.caillaud

[CL 24007088 by michael bao in ue5-main branch]
2023-02-03 22:41:22 -05:00
steven barnett
412a81e4b5 Use velocity-matching to replicate geometry collection clusters.
- Disable with `p.bGeometryCollectionRepUseClusterVelocityMatch 0`
- Debug draw with `p.Chaos.DebugDraw.GeometryCollectionReplication 1`

#swarm https://p4-swarm.epicgames.net/reviews/23918942
#rb benn.gallagher, cedric.caillaud, michael.bao
#preflight 23876783

[CL 23984069 by steven barnett in ue5-main branch]
2023-02-02 18:43:25 -05:00
michael bao
dbb40daacf potentially fix an issue where the geometry collection async physics tick was being called in the editor on PostLoad incorrectly
#preflight 63d950348505ea6b1fa2e3fa
[FYI] rhys.harwell

[CL 23938829 by michael bao in ue5-main branch]
2023-01-31 17:05:12 -05:00
cedric caillaud
dab0969263 Geometry collection : Add ISM pool subsystem to allow auto assignment of ISMPool
- ISMPool subsystem creates the ISMPool actor and return it when asked for
- Fix root proxy mesh not being properly loaded before sent to the ISM Pool
- Fix visiblity of the geometry component being overriden if ISMPool is not being used

#rb benn.gallagher
#preflight 63d8cb6367116074a84abdd2

[CL 23934984 by cedric caillaud in ue5-main branch]
2023-01-31 14:46:14 -05:00