Commit Graph

316 Commits

Author SHA1 Message Date
jimmy andrews
1bbe184b61 add option for convex hull dataflow to compute the volume of the union of the hulls, so that overlapping regions are not double-counted
#rb rinat.abdrashitov

[CL 25972127 by jimmy andrews in ue5-main branch]
2023-06-13 23:59:49 -04:00
jimmy andrews
7ca84cf8c5 Add a new hull merge node for reducing the hulls used on convex decompositions
+ minor cleanup/fixes of hull merging algorithms
(v2 with compile/link fixes)

[CL 25964124 by jimmy andrews in ue5-main branch]
2023-06-13 17:18:13 -04:00
jimmy andrews
98cc9bc6be [Backout] - CL25959112
[FYI] Jimmy.Andrews
Original CL Desc
-----------------------------------------------------------------
Add a new hull merge node for reducing the hulls used on convex decompositions
+ minor cleanup/fixes of hull merging algorithms

[CL 25960651 by jimmy andrews in ue5-main branch]
2023-06-13 15:37:18 -04:00
jimmy andrews
59daad6f82 Add a new hull merge node for reducing the hulls used on convex decompositions
+ minor cleanup/fixes of hull merging algorithms

[CL 25959212 by jimmy andrews in ue5-main branch]
2023-06-13 14:52:04 -04:00
cedric caillaud
3bcfbf87a7 Fix uninitialized variable in FMeshToOBJStringDebugDataflowNode
#jira UE-188118
#rb trivial
[FYI] jimmy.andrews

[CL 25878066 by cedric caillaud in ue5-main branch]
2023-06-08 14:45:09 -04:00
gustav melich
b874950826 Dataflow:
- implemented Duplicate for nodes and comments
- bug fixes

#rb Brice.Criswell, Cedric.Caillaud
[FYI] Jack.Oakman

[CL 25860911 by gustav melich in ue5-main branch]
2023-06-07 18:31:30 -04:00
jimmy andrews
9535b87fc1 Add additional convex simplification option based on an angle threshold; can give more intuitive results in some cases
#rb rinat.abdrashitov

[CL 25849093 by jimmy andrews in ue5-main branch]
2023-06-07 12:53:57 -04:00
jimmy andrews
d134bb21e4 add geometry collection debug nodes to support saving OBJ files of meshes, and converting convex hulls and sphere coverings to meshes
+ add sphere covering as an output for the 'generate cluster convex hull' nodes, so it can be visualized
 + fix convex hull meshes missing some triangles due to non-manifold mesh data (which occurs due to the aggressive MergeFaces routine in the physics convex hull build)

[CL 25820874 by jimmy andrews in ue5-main branch]
2023-06-06 13:17:03 -04:00
gustav melich
66aaf12f9c Dataflow:
- Added FloatArrayComputeStatistics node to compute Min/Max/Mean/Median/Mode/Sum values of a FloatArray (leaf size)
- Added RemoveFloatArrayElementDataflowNode node
- Updated FGetNumArrayElementsDataflowNode to handle float and int arrays as well

#rb Brice.Criswell, Cedric.Caillaud, Jimmy.Andrews
[FYI] Jack.Oakman
#preflight 646e4c561b241f0748485d11

[CL 25630916 by gustav melich in ue5-main branch]
2023-05-25 17:53:57 -04:00
jimmy andrews
a88d570315 add convex decomposition options to leaf node convex hull dataflow node
+ add a 'max hulls' option to convex decomposition, which functions like 'target num hulls' but can still cap the number of hulls when an error tolerance is specified (target num hulls is ignored when error tolerance is set)

#rb rinat.abdrashitov
#preflight 646d1033f85111e06c3a8fb7

[CL 25593250 by jimmy andrews in ue5-main branch]
2023-05-23 18:33:43 -04:00
gustav melich
6e6b15419a Dataflow:
- Updated GetDefaultValue() to handle int32, float special cases

#rb Brice.Criswell, Cedric.Caillaud
#preflight 6464f64afa4cf4165143b76d

[CL 25515090 by gustav melich in ue5-main branch]
2023-05-17 16:03:25 -04:00
jimmy andrews
082be5d855 Add a default value for FGetConvexHullVolumeDataflowNode::Volume
#jira UE-186107
#preflight skip
#rb trivial

[CL 25514961 by jimmy andrews in ue5-main branch]
2023-05-17 15:59:18 -04:00
jimmy andrews
2ea6695cbf add dataflow node to get the sum of convex hull volumes for a given selection
#rb tyson.brochu, cedric.caillaud
#preflight 6462bc8ed1563ab43c748450

[CL 25494804 by jimmy andrews in ue5-main branch]
2023-05-16 15:23:57 -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
jimmy andrews
ebda1b4a81 add FSphereCover as an optional volume representation to protect negative space in convex decomposition's merge algorithm
+ expose this to dataflow
+ make cluster-convex-from-children algorithm use depth-first node ordering, to get more consistent results

#rb cedric.caillaud
#preflight 645e73ccaa3c584c0bb0b17a

[CL 25458948 by jimmy andrews in ue5-main branch]
2023-05-12 16:15:24 -04:00
bryan sefcik
91c57d395e Removed redundant module includes.
#preflight 645d4bf3aa3c584c0b5b3a67

[CL 25435653 by bryan sefcik in ue5-main branch]
2023-05-11 16:48:21 -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
jimmy andrews
964fbdeb39 Add option for cluster-convex-from-leaf dataflow node to ignore proximity when merging hulls
+ clean up settings parameters for cluster-convex functions to use a struct, so adding new options is easier

#rb rinat.abdrashitov
#preflight 645b08b74c3ec54e6e929b2d

[CL 25417475 by jimmy andrews in ue5-main branch]
2023-05-10 17:30:19 -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
73fa3b59ba Dataflow : fix flatten geometry collection node crash
- also fix the logic to properly use the root index instead of 0

#rb none
#preflight none

[CL 25365382 by cedric caillaud in ue5-main branch]
2023-05-06 02:09:07 -04:00
jimmy andrews
8137e27564 add dataflow node to simplify existing convex hulls on a collection
#rb cedric.caillaud
#preflight 645576e76c35ad81e686a9ab

[CL 25365381 by jimmy andrews in ue5-main branch]
2023-05-06 02:09:02 -04:00
cedric caillaud
da4e15359d dataflow : make convex generation node to be not likely crash if the collection is not plugged while a selection is
#rb none
#preflight 64540ba4d02ea5289f84d571

[CL 25343973 by cedric caillaud in ue5-main branch]
2023-05-04 18:12:35 -04:00
jimmy andrews
ebc8c10324 Make parameter display names and ordering for FCreateNonOverlappingConvexHullsDataflowNode better match the fracture mode convex tool
#preflight 645280b7d863ba2621248686
#rb rinat.abdrashitov

[CL 25325203 by jimmy andrews in ue5-main branch]
2023-05-03 16:28:32 -04:00
jimmy andrews
5d1a8053b3 [Backout] - CL25306477
[FYI] keaton.stewart
Original CL Desc
-----------------------------------------------------------------
[Backout] - CL25304464
[FYI] Jimmy.Andrews
Original CL Desc
-----------------------------------------------------------------
add DataFlow node for creating leaf convex hulls, with controls for whether to compute from geometry, convert from External/imported collision shapes, or take an intersection of both.
 + expose convex hull intersection algorithm in the convex hull utils

#rb cedric.caillaud
#preflight 644ff6cd805eff7b44948abb
#preflight 64516bd9d863ba2621dd9fa0

[CL 25311978 by jimmy andrews in ue5-main branch]
2023-05-02 21:47:08 -04:00
keaton stewart
0b2949a46b [Backout] - CL25304464
[FYI] Jimmy.Andrews
Original CL Desc
-----------------------------------------------------------------
add DataFlow node for creating leaf convex hulls, with controls for whether to compute from geometry, convert from External/imported collision shapes, or take an intersection of both.
 + expose convex hull intersection algorithm in the convex hull utils

#rb cedric.caillaud
#preflight 644ff6cd805eff7b44948abb

[CL 25309613 by keaton stewart in ue5-main branch]
2023-05-02 18:23:56 -04:00