Commit Graph

486 Commits

Author SHA1 Message Date
henrik karlsson
6463430a14 * InterchangeActorHelper - Added include to solve compile error
* GeometryCollectionRenderLevelSetActor - Removed using namespace Chaos in global namespace

Attempt at fixing Mac build errors

#rb none
#jira none
#preflight skipped

[CL 22892779 by henrik karlsson in ue5-main branch]
2022-11-01 17:49:46 -04:00
cedric caillaud
fb3e9ff339 Chaos : enable support for root proxy mesh for geometry collection ( work only with ISM at the moment )
#rb brice.criswell, michael.bao
#preflight 6359d21b5d49a96f7b127ffa

[CL 22850795 by cedric caillaud in ue5-main branch]
2022-10-29 03:00:57 -04:00
cedric caillaud
ab5cd03a19 Chaos : expose ISM Pool so it can be edited in construction scripts
#rb trivial
#preflight none

[CL 22823601 by cedric caillaud in ue5-main branch]
2022-10-28 00:34:23 -04:00
cedric caillaud
45169b4d63 Chaos : fix geometry collection replication failing because the client side component has a authority local role when physics state is being created
#rb none
#preflight 635adaea944463bad46f163f

[CL 22823592 by cedric caillaud in ue5-main branch]
2022-10-28 00:33:43 -04:00
henrik karlsson
ed85af7728 Non unity/pch compile fixes
Cmdline: UnrealEditor Win64 debug -nodebuginfo -nolink -allcores -DisableUnity -CppStd=Cpp17 -allmodules -nopch

#rb none
#preflight skipped

[CL 22799084 by henrik karlsson in ue5-main branch]
2022-10-26 19:29:11 -04:00
cedric caillaud
dba9dd5ecb Chaos : Dataflow : add geometry collection asset specific nodes
#rb gustav.melich, brice.criswell
#preflight 6358159ce456a68082b43ba9

[CL 22798238 by cedric caillaud in ue5-main branch]
2022-10-26 19:04:47 -04:00
henrik karlsson
4a5e13525d Fixed non-unity non-pch compile errors
#preflight skipped
#rb none

[CL 22788359 by henrik karlsson in ue5-main branch]
2022-10-26 16:22:34 -04:00
henrik karlsson
b5b86c796c This change is a strategical submit for a coming change that removes lots of includes in headers that are included by many files. This change contains adding of includes in files that previously got those includes transitively from other inclkudes
#preflight 6355d4940313c24974b2107b
#rb none

[CL 22783162 by henrik karlsson in ue5-main branch]
2022-10-26 12:57:32 -04:00
Jimmy Andrews
e648a4cb5e Improved user control and visibility into proximity and connection graph generation for fracture:
- Added a Proximity tool to Fracture Mode to visualize and change generation settings for GeometryCollection bone proximity.
 - Added more user controls for how proximity is generated, including a "Convex Hull distance" method for deciding contact, which should help include connections that were missed by the default proximity detection method.
 - Made proximity settings live on the GeometryCollection as (non-cooked) attributes, so proximity re-generates with the desired method after further fracturing/clustering.
 - Added an option to automatically convert the proximity graph to a pre-computed connection graph used by simulation.
 - Reduce redundant proximity calculations: Be more consistent in relying on FGeometryCollectionEdit to update proximity as needed, and call 'RequireProximity' instead of 'UpdateProximity' in cases where we expect a valid proximity may already be present.

#rb cedric.caillaud
#preflight 6356d21b0313c24974eea2f8

[CL 22735429 by Jimmy Andrews in ue5-main branch]
2022-10-24 16:24:39 -04:00
graham wihlidal
5c05f4b3cd Rename FPrimitiveInstance to FInstanceSceneData and FPrimitiveInstanceDynamicData to FInstanceDynamicData (to match all the shader names, accessors/members, and resolving a number of outstanding TODOs)
#rb trivial
#preflight skip

[CL 22729202 by graham wihlidal in ue5-main branch]
2022-10-24 12:06:55 -04:00
henrik karlsson
d138aa6804 Fixed a bunch of non-unity non-pch compile errors (missing includes)
#rb none
#preflight skipped

[CL 22713063 by henrik karlsson in ue5-main branch]
2022-10-22 17:33:07 -04:00
cedric caillaud
5b28136c0a Chaos : fix potential crash with replication when physics state is destroyed
#rb brice.criswell.michael.forot
#jira UE-167938
#preflight 6352d8b63a547c3da385dcf3

[CL 22712152 by cedric caillaud in ue5-main branch]
2022-10-22 15:35:03 -04:00
cedric caillaud
a579d1c640 Chaos : fix non-unity build for ISMPool changes
#rb trivial
#preflight none

[CL 22705195 by cedric caillaud in ue5-main branch]
2022-10-21 19:52:03 -04:00
cedric caillaud
a59a81e2b9 Geometry collection : added support for ISMPools, it only works if an ISMPool actor is assigned to the GC instance
Limitations : Currently this requires the GC to be reset to recompute the list of instanciable meshes and their corresponding indices
Mitigation : this can be turned off using the following cvar : p.Chaos.GC.UseISMPool

#rb brice.criswell, Krzysztof.Narkowicz
#preflight 63519a8af92c325024c32137

[CL 22705192 by cedric caillaud in ue5-main branch]
2022-10-21 19:51:57 -04:00
cedric caillaud
97f3d8c718 Chaos : fix potential geometry collection replication crash
- Make sure CLustersToRep is reset when the physics state is destroyed
- Initialize the Physics proxy ReplicationMode when we create the proxy instead of during InitializeComponent ( because Destroy/Create physics state can be called after it )

#rb brice.criswell, michael.forot
#preflight 6350d4f82337adbf42b08788

[CL 22670734 by cedric caillaud in ue5-main branch]
2022-10-20 16:47:18 -04:00
cedric caillaud
f77439fae4 Chaos : remove the need to pass a parent for GC when adding particle to the island graph
This fixes crashes related  to GC replication where an island index inherited from a parent would remain set after the island has been removed

#rb chris.caulfield, brice.criswell, michael.forot
#preflight 6350824b8449f85a477815e4

[CL 22647574 by cedric caillaud in ue5-main branch]
2022-10-19 22:03:57 -04:00
cedric caillaud
7a43f6187a Chaos : temp fix for replication crash
- comment the disable of particles beyond the abandon level  on the server

#rb trivial
#jira
#preflight none

[CL 22647208 by cedric caillaud in ue5-main branch]
2022-10-19 21:51:21 -04:00
aleksander netzel
c07eb3fff0 Initial support for switching ray tracing on/off at runtime:
* Split IsRayTracingEnabled() into 2 parts: IsRayTracingEnabled() which can be changed at runtime and IsRayTracingAllowed() for checking if ray tracing can be enabled.
* r.Raytracing can now have following values: 0 - disabled, 1 - enabled all the time, 2 - enabled dynamic
* When ray tracing is dynamic, RayTracingGeometryManager will collect all FRayTracingGeometry and allocate/release RHI objects as needed depending on if ray tracing is enabled or not.
* Ray tracing can be switched on/off with r.Raytracing.Enable (default is 1).
* Add support to most features used in CitySample/Lyra for switching ray tracing at runtime.
* TODO: Hair geometries are not yet released.

#rb yuriy.odonnell
#preflight 634feac68176062ea7da933f

[CL 22622885 by aleksander netzel in ue5-main branch]
2022-10-19 09:00:41 -04:00
Brice Criswell
d520c6913a GeometryCollectionEditor: Persistent dataflow context with invalidation.
#rb none
#preflight 634f8fedac48fa11ed1ce358

[CL 22618684 by Brice Criswell in ue5-main branch]
2022-10-19 01:58:50 -04:00
henrik karlsson
223b7a0773 [GeometryCollectionEngine]
* Added missing include

#rb none
#preflight skipped

[CL 22546740 by henrik karlsson in ue5-main branch]
2022-10-14 22:20:58 -04:00
jimmy andrews
6bce842669 Correct the wording used to explain the Geometry Collection "Split Components" feature
#jira UE-166724
#preflight 6345d8c8f93be0f63418c1b2
#rb cedri.caillaud

[CL 22481690 by jimmy andrews in ue5-main branch]
2022-10-12 13:30:05 -04:00
rob mclaughlin
09e5fd7ab6 Checks to avoid access to an empty InitialLevels array in GeometryCollectionComponent
Submitting on behalf of Enrique due to preflight not submitting

[FYI] cedric.caillaud, peter.knepley, andrew.firth, enrique.garciaamezcu
#preflight https://horde.devtools.epicgames.com/job/6340545a62762f4a1baa3d9f
Preflight fail due to unrelated WorldPartition issue

[CL 22412822 by rob mclaughlin in ue5-main branch]
2022-10-07 19:45:55 -04:00
Brice Criswell
016bf1e5be Chaos : Animated Kinematics on deformables
#rb none
#preflight 633f81bf62762f4a1b7a1e13

[CL 22391487 by Brice Criswell in ue5-main branch]
2022-10-06 21:52:53 -04:00
james studdart
a2b98f1d31 Check to avoid access to an empty array.
[FYI] cedric.caillaud, peter.knepley, andrew.firth
#rb cedric.caillaud
#preflight 633ee67d7b2517bbaa0b4bcb

[CL 22391437 by james studdart in ue5-main branch]
2022-10-06 21:44:57 -04:00
cedric caillaud
c9b78adb96 Chaos : fix server crash when replicating geometry collections that are missing InitialLevel attribute
#rb trivial
#preflight 633dded6f171e4e68b3bf857

[CL 22387992 by cedric caillaud in ue5-main branch]
2022-10-06 19:49:04 -04:00