Commit Graph

267 Commits

Author SHA1 Message Date
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
cedric caillaud
7d0c8a2c5d Geometry collection : add ability to set the gravity group index
#rb none
#preflight  63d47f565d0c0164ccc0bf14

[CL 23897652 by cedric caillaud in ue5-main branch]
2023-01-27 23:12:49 -05:00
michael bao
473e92eda7 abandon after level on the geometry collection should make sure collision is removed from the server. add an option to make sure collision is removed from the client as well.
#preflight 63d0e060ef20a5272d7d7db0
#rb cedric.caillaud

[CL 23864808 by michael bao in ue5-main branch]
2023-01-26 02:26:52 -05:00
jimmy andrews
829a30210c rework how UVs are accessed in geometry collection: make each UV layer a separate attribute, so it is impossible to have an inconsistent number of UVs per vertex, and we do not allocate so many small arrays. Provide a variety of helper functions to make the transition as easy as possible.
#rb cedric.caillaud
#rb brice.criswell
#preflight 63d074be976daa618cdcd957

[CL 23844522 by jimmy andrews in ue5-main branch]
2023-01-25 01:36:28 -05:00
cedric caillaud
ffe4fbdea7 Geometry collection : fix crash when blueprint set notification settings on a geo metryc collection that cause a unresolved callback to be evaluated after the proxy has been destroyed
- move setting of notification and other parameters to properly be set on the PT when GT to PT happens opn the proxy

#rb michael.bao
#preflight 63d0537594644f3e8e433164

[CL 23844500 by cedric caillaud in ue5-main branch]
2023-01-25 01:35:47 -05:00
vincent robert
b390dd5ed0 Clustering optimization
#rb cedric.caillaud
#preflight 63d039ba574ab9cae440e6df

[CL 23843574 by vincent robert in ue5-main branch]
2023-01-24 21:45:14 -05:00
frederic doll
f2dac08df1 Make sure CollisionChannel change is propagated to the PhysicProxy in GeometryCollectionComponent
#rb cedrix.caillaud
#preflight 63cae090fa290562c1b9c4a4

[CL 23815882 by frederic doll in ue5-main branch]
2023-01-23 12:48:24 -05:00
michael bao
27a33ddf60 make the geometry collection go net dormant if there are no clusters to update
#rb cedric.caillaud
#preflight 63c9dc61093a9da16d202629

[CL 23815864 by michael bao in ue5-main branch]
2023-01-23 12:47:44 -05:00
cedric caillaud
fef66c9a85 Geometry collection : Do not create render state when ISMPool is in use and not in Editor
#rb benn.gallagher, michael.bao
#preflight 63c84292ac35a0e9da0b589a

[CL 23804386 by cedric caillaud in ue5-main branch]
2023-01-21 19:00:44 -05:00
michael bao
31ca957aa6 add option to enable/disable adding strain to geometry collection clusters upon collisions
- also fixed issue where changing the SetNotifyX (break, crumbling, etc) on a geometry collection component wouldn't set the simulation parameter on the physics proxy.

#preflight 63c82b8f0225f00e142761e0
#rb cedric.caillaud

[CL 23804265 by michael bao in ue5-main branch]
2023-01-21 18:25:47 -05:00
cedric caillaud
8a4fa3f1b3 GeometryCollection runtime optimizations
- make sure we do properly reset the dirty flag on the dynamic collection when scene proxy is not set
- fix condition that could lead to run part of the Tick function too many time when the collection is not dirty

#rb benn.gallagher, vincent.robert
#preflight 63c77c7902024f93d89aa3fb

[CL 23757059 by cedric caillaud in ue5-main branch]
2023-01-18 11:28:41 -05:00