296 Commits

Author SHA1 Message Date
henrik karlsson
562dc45ab9 [Engine]
* Moved dllexport from type to methods/staticvar in all Engine runtime code. This improves compile times, memory and performance in dll builds

[CL 26082288 by henrik karlsson in 5.3 branch]
2023-06-17 18:14:12 -04:00
henrik karlsson
2b09e81ebe [Engine]
* Changed type dllexport to method/staticvar dll export. Various changes for code that upgrade script get wrong

[CL 26082078 by henrik karlsson in 5.3 branch]
2023-06-17 16:59:11 -04:00
vincent robert
0912835bba In the Geometry Collection Component the async tick had to block Game Thread and Physics Thread to apply the replicate data. Now all the replication code is copied and executed on the Physics thread. This allow not to block both thread at the same time.
#rb cedric.caillaud

[CL 26061003 by vincent robert in 5.3 branch]
2023-06-16 13:49:45 -04:00
robomerge
2e34b6a655 Make geometry collection convert vertex colors to sRGB when converting from FLinearColor to the render buffer FColor for new geometry collections.
For old geometry collections, keep the old behavior so that vertex colors are not changed unexpectedly on existing assets.  Add a bool on the UGeometryCollection asset object to let user control whether the conversion is performed.

#rb brice.criswell

[CL 25934820 by robomerge in ue5-main branch]
2023-06-12 15:24:20 -04:00
jeremy moore
a0faa29fa4 Add tag support to ISMPool.
ISMPool uses serialized version of the default primitive custom data to allow us to copy paste ISMPools for debugging.
ISMPool uses fast version of hash combine.
Expose ISMPool actors getter from ISMPool subsystem.

[CL 25886022 by jeremy moore in ue5-main branch]
2023-06-08 19:39:06 -04:00
vincent robert
1dbafd35dd AncientGame fails to compile, Fix breaking API
FBreakChaosEvent was created in Engine to replaced FChaosBreakEvent event which was in CHAOSSOLVER_API and so no accessible in Engine for circular dependency issue. But in order to backward compatibility with blueprint delegate, and code the only easy way was to keep the same name. This CL is changing back those names to FChaosBreakEvent.
Same apply for Removal and Crumbling events.
#jira UE-187555
#preflight 6478df285d23eca37d9f4ab4
#rb cedric.caillaud

[CL 25736541 by vincent robert in ue5-main branch]
2023-06-01 15:22:19 -04:00
jimmy andrews
fe746a8526 fix issue with fracture dynamic collection not matching rest collection, causing an ensure on fracture reset: change defaults to update dynamic collection, and make sure the dynamic is also reset if the rest is updated so they do not go out of sync
#preflight 64779bd10848b7126de26d80
#rb cedric.caillaud

[CL 25720427 by jimmy andrews in ue5-main branch]
2023-06-01 00:40:28 -04:00
vincent robert
794de23f2e Clean up : Remove Break, Removal and Crumbling Events from CHAOSSOLVERENGINE_API, those events are now in ENGINE_API
#preflight 647778fd1c5c2b3fa2c4172d
#rb cedric.caillaud

[CL 25711914 by vincent robert in ue5-main branch]
2023-05-31 16:02:01 -04:00
cedric caillaud
d1caeada52 Geometry collection rendering optimization
- Optimize the ISM Pool to use the instance static mesh array API for passing transform , avoiding local array allocation
- avoid sorting the removal indices twice by using the new instance static mesh view

#rb jeremy.moore, benn.gallagher
#preflight 646eccdc4422ba05f44bb942

[CL 25633600 by cedric caillaud in ue5-main branch]
2023-05-25 18:53:40 -04:00
cedric caillaud
68d1685dda Optimize removal update code to avoid evaluating Gettransform at each step of the loop
also remove the overse transform if scaling is not enabled

#rb benn.gallagher, michael.bao
#preflight 646cded9576becd7b5e28cb2

[CL 25592280 by cedric caillaud in ue5-main branch]
2023-05-23 18:14:19 -04:00
vincent robert
1e3d8014a8 Global Event Relay for Collision, Removal and Crumbling events.
#preflight 646cb99d1417daba1e475ff2
#rb cedric.caillaud

[CL 25583398 by vincent robert in ue5-main branch]
2023-05-23 11:15:22 -04:00
cedric caillaud
09a017b797 Geometry collection : expose component DamageModel property to blueporints
#rb trivial
#preflight none

[CL 25553536 by cedric caillaud in ue5-main branch]
2023-05-19 17:58:10 -04:00
cedric caillaud
173be81199 Geometry collection : Expose Damage model property to blueprints
#rb trivial
#preflight none

[CL 25549123 by cedric caillaud in ue5-main branch]
2023-05-19 14:44:02 -04:00
jimmy andrews
9848393f1d fix crash on fracture due to out of sync geometry collection components: make FGeometryCollectionEdit propagate update info to all components w/ the same rest collection by default
+ add an extra guard so we will ensure instead of crash if we do get into the bad/mismatched state that this bug was causing

#rb cedric.caillaud
#preflight 64655b96063e77985cdfca49

[CL 25521416 by jimmy andrews in ue5-main branch]
2023-05-17 23:53:14 -04:00
vincent robert
50590a6f16 EventRelay is created for break events.
It is allowing to iterate through all events from one function from a blueprint library.
We can also registered to the relay to be able to group or filter events out.
This is allowing to have a better control on the received events according to their component, tags, location, velocity...etc
#rb cedric.caillaud
#preflight 6464269e317ee2d9d1e87782

[CL 25505840 by vincent robert in ue5-main branch]
2023-05-17 09:22:10 -04:00
steven barnett
c4a61b2792 Replicate anchored state of GemoetryCollection's root particle
#rb cedric.caillaud, michael.bao, jon.sourbeer
#preflight https://horde.devtools.epicgames.com/job/6462bca6f760fe87e9134615

[CL 25494843 by steven barnett in ue5-main branch]
2023-05-16 15:24:53 -04:00
kirill zorin
de8db5ff76 Converting ARO-facing raw pointers to TObjectPtr ahead of raw pointer ARO API deprecation.
#rb zousar.shaker
#rb markus.breyer
#rb robert.manuszewski

#preflight 646391406b1406b54ab15460

[CL 25489627 by kirill zorin in ue5-main branch]
2023-05-16 10:52:49 -04:00
michael bao
ea85d3b0cb add ability to set collision profile per particle to geometry collections
#preflight 64626002592448f08bc9089c

[CL 25477154 by michael bao in ue5-main branch]
2023-05-15 14:09:57 -04:00
cedric caillaud
81bb5ab492 Geometry collection optimization : Change GlobalMatrices array of FMatrix to ComponentSpaceTransforms array of FTransform
- This reduces the number of back and forth conversion between FTransform and FMatrix

[FYI] jeremy.moore
#rb benn.gallagher, michael.bao, chris.caulfield, vincent.robert
#preflight 645c9285ea1c7ba4d67d0fbc

[CL 25438640 by cedric caillaud in ue5-main branch]
2023-05-11 19:37:23 -04:00
cedric caillaud
538112ae9e Dataflow : add extra outputs to override nodes
- Add IsOverriden and typed Default value
- Expose Geometry collection Overrides map to blueprint
- Change display name of a Overrides map to DataFlow Overrides

[FYI] jack,oakman, gustav.melich
#rb gustav.melich, brice.criswell
#preflight 645bfbbcaa3c584c0bf86746

[CL 25420151 by cedric caillaud in ue5-main branch]
2023-05-10 20:28:16 -04:00
robert millar
d9b4700aa0 Markup up native serializers for object ref archives
#rb none

[CL 25415965 by robert millar in ue5-main branch]
2023-05-10 16:34:18 -04:00
cedric caillaud
2e6a07c611 Dataflow (Submitted on behalf of gustav.melich)
- Added GetFloatOverrideFromAsset, GetIntOverrideFromAsset, GetBoolOverrideFromAsset, GetStringOverrideFromAsset nodes
- Added 'Overrides' property to GC asset
- Added override node invalidation when 'Overrides' property gets changed on the asset
- bug fixes

[FYI] gustav.melich, jack.oakman
#rb Brice.Criswell, Cedric.Caillaud
#preflight 645aecf59f4768296389997d

[CL 25399653 by cedric caillaud in ue5-main branch]
2023-05-10 01:08:51 -04:00
cedric caillaud
f535dbceb1 Add material based damage model using strain system
#rb michael.bao, jon.sourbeer
#preflight 64558dadd77a82d6a7999438

[CL 25365534 by cedric caillaud in ue5-main branch]
2023-05-06 02:23:36 -04:00
jeremy moore
609018f743 Add support for custom primitive data to ISM Pool
#preflight 64553f1bed7ffaa0f5cd919b

[CL 25365376 by jeremy moore in ue5-main branch]
2023-05-06 02:08:34 -04:00
cedric caillaud
a9a47fc148 Add ways to get and set the rest transform on a geometry collection
#rb none
#preflight 6452e5800722d4f6a211a0a7

[CL 25329773 by cedric caillaud in ue5-main branch]
2023-05-03 20:27:58 -04:00