Commit Graph

931 Commits

Author SHA1 Message Date
benn gallagher
4b20d00c15 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 32111645 by benn gallagher in ue5-main branch]
2024-03-07 21:09:02 -05:00
michael bao
45d778c795 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 32058239 by michael bao in ue5-main branch]
2024-03-06 12:31:36 -05:00
benn gallagher
87a37bc5b4 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 32009262 by benn gallagher in ue5-main branch]
2024-03-04 21:05:37 -05:00
jeremy moore
c8886e0f4c #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 31960698 by jeremy moore in ue5-main branch]
2024-03-01 18:08:42 -05:00
cedric caillaud
b790594ad8 Add cvar to disable root proxy component creation
[FYI] jack.oakman, jeremy.moore

[CL 31918622 by cedric caillaud in ue5-main branch]
2024-02-29 14:31:56 -05:00
cedric caillaud
24e1a4a3fc 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 31898734 by cedric caillaud in ue5-main branch]
2024-02-28 22:21:54 -05:00
cedric caillaud
a1c5c9f2fc 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 31864780 by cedric caillaud in ue5-main branch]
2024-02-27 23:32:02 -05:00
cedric caillaud
9d76931132 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 31864602 by cedric caillaud in ue5-main branch]
2024-02-27 23:05:17 -05:00
tiago costa
03f7f8f626 Call FRayTracingGeometry::IsValid() instead of just checking that RayTracingGeometryRHI is not null
[FYI] aleksander.netzel

[CL 31840561 by tiago costa in ue5-main branch]
2024-02-27 10:26:42 -05:00
cedric caillaud
b12f0786c4 Geometry Collection : static mesh root proxies component now updates with root transform and broken state
#rb Jeremy.Moore

[CL 31821545 by cedric caillaud in ue5-main branch]
2024-02-26 18:19:17 -05:00
cedric caillaud
8c2e5d4aba Fix geometry collection not showing destruction
Fallout from 31782118

[FYI] jeremy.moore, benn.gallagher
#rb shaun.kime, aidan.mcdu

[CL 31795816 by cedric caillaud in ue5-main branch]
2024-02-26 00:54:41 -05:00
cedric caillaud
21395df069 Fix crash with geometry collection component trying to create their static mesh component for root proxies while not having a an owner yet
[CL 31794446 by cedric caillaud in ue5-main branch]
2024-02-25 17:03:11 -05:00
cedric caillaud
9c986f33b9 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 31788798 by cedric caillaud in ue5-main branch]
2024-02-23 22:27:38 -05:00
jeremy moore
0132f1037a 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 31782941 by jeremy moore in ue5-main branch]
2024-02-23 18:25:55 -05:00
cedric caillaud
19dbf8c4e7 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 31744435 by cedric caillaud in ue5-main branch]
2024-02-22 19:18:24 -05:00
benoit deschenes
18fc66834a [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 31714814 by benoit deschenes in ue5-main branch]
2024-02-21 23:07:04 -05:00
shaun kime
a39e29500d Filtering out geometry collection editor data from memory calculations
#rb cedric.caillaud, benn.gallagher

[CL 31696127 by shaun kime in ue5-main branch]
2024-02-21 15:57:23 -05:00
aidan mcdu
47cc773acf [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 31671610 by aidan mcdu in ue5-main branch]
2024-02-20 21:24:20 -05:00
jeremy moore
a5e85b59f6 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 31643010 by jeremy moore in ue5-main branch]
2024-02-20 08:48:42 -05:00
steve robb
f8d47335a4 Replaced RemoveAt(N, 1, EAllowShrinking::*) with RemoveAt(N, EAllowShrinking::*).
[CL 31626444 by steve robb in ue5-main branch]
2024-02-19 16:51:58 -05:00
cedric caillaud
81ed0d764e Fix crash in FillAutoInstanceMeshesInstancesIfNeeded if the AutoInstanceMeshIndex is missing while there's auto instanced mnesh assign to the asset
#jira UE-207298

[CL 31604478 by cedric caillaud in ue5-main branch]
2024-02-17 21:38:07 -05:00
chris caulfield
b4488c2f8b 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 31588117 by chris caulfield in ue5-main branch]
2024-02-16 19:01:12 -05:00
cedric caillaud
a1b4c43ebf 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 31536693 by cedric caillaud in ue5-main branch]
2024-02-15 16:43:53 -05:00
jeremy moore
db683f9d64 Defensive check against null RestCollection in PSO Precache.
#rnx
#rb cedric.caillaud

[CL 31497666 by jeremy moore in ue5-main branch]
2024-02-14 18:00:34 -05:00
cedric caillaud
4d6701bef8 Geometry collection : fix removed piecers failing to shrink when the feature is enabled
- the issue was a consequence of the component space transforms computation optimization
- the code responsible to update the scale of the pieces now properly mark the component space transforms dirty  so the rendering reads the updated ones

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

[CL 31485535 by cedric caillaud in ue5-main branch]
2024-02-14 13:54:17 -05:00