933 Commits

Author SHA1 Message Date
cedric caillaud
e6d8ceb890 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

#p4v-cherrypick 33519208

[CL 33534010 by cedric caillaud in 5.4 branch]
2024-05-08 19:10:02 -04:00
cedric caillaud
f9aee93e1e Fix remove on sleep not working properly anymore with geometry collection
- make sure the dynamic collection is mark dirty after updating the scaled transform
- make sure we only scale relative to the previouly scaled transform

#jira UE-202204, UE-208293
#rb vincent.robert

[CL 32588991 by cedric caillaud in 5.4 branch]
2024-03-28 15:18:45 -04:00
michael forot
7a8256b5e8 Boolean on the geometry collection to enable the convex optimization
#rb cedric.caillaud

[CL 32512523 by michael forot in 5.4 branch]
2024-03-26 12:24:35 -04:00
cedric caillaud
5a337253ca Dataflow:
- Implemented StaticMeshToCollection node

#rb cedric.caillaud, Jimmy.Andrews

#p4v-cherrypick 32265804
[FYI] gustav.melich

[CL 32500178 by cedric caillaud in 5.4 branch]
2024-03-26 02:54:15 -04:00
jeremy moore
2383a5ec70 Add custom depth support to nanite geometry collection.
#rb cedric.caillaud

[CL 32498553 by jeremy moore in 5.4 branch]
2024-03-26 01:57:55 -04:00
michael bao
636f97d338 add ability to rebase the geometry collection component space transforms off the new world transform and keep the particles' old world space transforms
#rb cedric.caillaud, chris.caulfield
[FYI] Simone.Lombardo

[CL 32497069 by michael bao in 5.4 branch]
2024-03-26 00:56:06 -04:00
cedric caillaud
7e106a9922 Add cvar to disable root proxy component creation
[FYI] jack.oakman, jeremy.moore

[CL 32491272 by cedric caillaud in 5.4 branch]
2024-03-25 19:08:39 -04:00
cedric caillaud
b0acbab6a7 Geometry collection Animation fixes
- fixed anim component to properly play animation in blueprint viewports
- fixed root proxy local transform using the parent space reference pose instead of component space ones

[FYI] jacob.buck

[CL 32490818 by cedric caillaud in 5.4 branch]
2024-03-25 19:00:00 -04:00
cedric caillaud
78bec73a27 Fix build issue related to CL 31864591
( virtual pure method was added on the engine side, but some builds do not sync the game code , causing abstract class allocation errors)

[FYI] jeremy.moore, benn.gallagher
preflight none

[CL 32490002 by cedric caillaud in 5.4 branch]
2024-03-25 18:45:47 -04:00
cedric caillaud
91480b8094 Add Anim Geometry Collection component
- This component allow binding a geometry collection with a skeletal mesh for animation fo the root proxy meshes

#rb Chris.Caulfield, benn.gallagher, jeremy.moore

[CL 32489996 by cedric caillaud in 5.4 branch]
2024-03-25 18:45:40 -04:00
cedric caillaud
008be9ebe8 Geometry Collection : static mesh root proxies component now updates with root transform and broken state
#rb Jeremy.Moore

[CL 32488873 by cedric caillaud in 5.4 branch]
2024-03-25 18:24:55 -04:00
cedric caillaud
bf1173c5a8 Geometry Collection : Fix potential crash in FillAutoInstanceMeshesInstancesIfNeeded if the index attribute is not fopund but the asset has auto instance meshes assigned
#jira UE-207298

[CL 32488040 by cedric caillaud in 5.4 branch]
2024-03-25 18:07:07 -04:00
benn gallagher
d42ee4a1ea Reduce severity of nav export warning in geoemtry collection. May be useful to enable when disagnosing nav issues but in editor modes the log messages are overly verbose and slow down movement of objects.
#rb michael.bao

[CL 32111523 by benn gallagher in 5.4 branch]
2024-03-07 21:07:03 -05:00
benn gallagher
d3ef04cead Expose fully decayed flag on geometry collection components
Gameplay systems may want to bind to the decayed event on a geometry collection, but if it's already fully decayed the event will never fire. In order to handle this we can expose the flag so gameplay can check first before binding to the event

#rb Shaun.Kime

[CL 32005132 by benn gallagher in 5.4 branch]
2024-03-04 18:47:59 -05:00
jeremy moore
3e5d8559d6 #jira UE-208710
Make SetCustomInstanceData() be part of generic IGeometryCollectionExternalRenderInterface.
It's not truly generic so might to move out to it's own interface?
Add geometry collection blueprint library with function to call this.
#rb Shaun.Kime

[CL 31960631 by jeremy moore in 5.4 branch]
2024-03-01 18:07:13 -05:00
cedric caillaud
81250ea830 Geometry collection component : Fix crash in CreateRootProxyComponentsIfNeeded for components that do not have an owner assigned
- crash can happen when resetting the RestCollection while having a geometry collection asset open ( with a dataflow assigned )

#jira UE-207948

[CL 31807948 by cedric caillaud in 5.4 branch]
2024-02-26 12:30:46 -05:00
cedric caillaud
fe98e9d96b Fix geometry collection not triggering destruction visually
Fallout from 31782118

#rb shaun.kime, benn.gallagher

[CL 31800880 by cedric caillaud in 5.4 branch]
2024-02-26 07:50:07 -05:00
jeremy moore
99c6d526bc Add OnActorVisibilityChanged virtual function for UActorComponent.
SetActorHiddenInGame() now ends up calling this.
Override on GeometryCollectionComponent to update any custom renderer.
#rb aidan.mcdu, cedric.caillaud

[CL 31782189 by jeremy moore in 5.4 branch]
2024-02-23 18:05:20 -05:00
cedric caillaud
5bdfe67f76 Enable rendering root proxy meshes in editor when available for geometry collections
- change back to normal rendering when asset is selected in fracture editor

#rb Jeremy.Moore, benoit.deschenes

[CL 31739459 by cedric caillaud in 5.4 branch]
2024-02-22 18:07:51 -05:00
benoit deschenes
156e909ee8 [Geometry Collection] Adding support for ISM custom data in UGeometryCollectionISMPoolRenderer.
[REVIEW] [at]cedric.caillaud
#rb cedric.caillaud, Shaun.Kime, Jeremy.Moore
#localization none
#tests Tested changes in PIE.
#preferred_allowlister shaun.kime

[CL 31714694 by benoit deschenes in 5.4 branch]
2024-02-21 23:01:04 -05:00
shaun kime
bf3f5828a0 Filtering out geometry collection editor data from memory calculations
#rb cedric.caillaud, benn.gallagher

[CL 31693987 by shaun kime in 5.4 branch]
2024-02-21 15:12:35 -05:00
aidan mcdu
3e33257544 [Lime]
Integrating code that allows for geometry collections to actually be hidden when you ask them to.
Modifying minor BP flow funcitonality so that we don't hide the Geometry Collection for no reason, and we clean up the tempororay static mesh component that we created in order to generate the SM previews.
#rb Cory.Kolek

[CL 31668753 by aidan mcdu in 5.4 branch]
2024-02-20 20:43:04 -05:00
jeremy moore
8f74296bbb GeometryCollectionComponents that have root proxies will now create root proxy static mesh components when there is no other render method enabled.
This deals with an edge case with geometry collection custom renderers. Custom renderers don't run in edition mode, and in editor we would expect to have mesh data available instead. But for UEFN editor with cooked data, the mesh data may already be removed (because it is not needed in cooked game).
#rb Shaun.Kime
[FYI] cedric.caillaud

[CL 31642958 by jeremy moore in 5.4 branch]
2024-02-20 08:47:32 -05:00
chris caulfield
9801fbd5f3 Chaos - add FBodyInstance::bUseMACD flag to enable Motion-Aware Collision Detection per particle
- flag is also used by GeomrteyCollections
- wire flag through to Chaos particles in the ControlFlags structure

NOTE: this flag isn't actually being used yet. It will be connected to the MACD feature in an upcoming change.

#rb Benn.Gallagher

[CL 31577246 by chris caulfield in 5.4 branch]
2024-02-16 15:22:54 -05:00
cedric caillaud
5d66b2a140 Geometry collection : remove unused DummyBodyInstance property
Can save up to 400 bytes per component ( maybe lower based on which memory pool the component ends up be allocated in  )

#rb vincent.robert, chris.caulfield, benn.gallagher

[CL 31532134 by cedric caillaud in 5.4 branch]
2024-02-15 15:13:35 -05:00