Commit Graph

316 Commits

Author SHA1 Message Date
cedric caillaud
9840827810 Fix potential crash when adding a GC to a sequecner and adding component as the track foollowed by adding a Geometry Collection track to it
#jira UE-174501
#preflight none
#fyi michael.forot

[CL 23812988 by cedric caillaud in ue5-main branch]
2023-01-23 11:07:19 -05:00
Andrew Rodham
4ff7bab147 Slate: Initial phase of FVector2D deprecation
- Expanded FDeprecateSlateVector2D to provide structs for parameters, return types and member variables that use FVector2f, while still allowing conversion to/from FVector2d with optional per-module deprecation mechanisms.
  - Many of the high-traffic SlateCore types like FSlateBrush, FGeometry and FSlateLayoutTransform have been converted to use these deprecation mechanisms.
  - Some legacy FGeometry::ToPaintGeometry and MakeChild overloads have been explicitly deprecated since they cause ambiguous overloads with FSlateLayoutTransform if it were to support implicit construction.
  - Deprecated ULocalPlayer::GetPixelBoundingBox and GetPixelPoint to prefer FVector2f for OptionalAllotedSize parameter since this parameter is expected to come from FGeometry
  - Exposed FVector2f members to blueprints

#jira none
#rb Andy.Davidson, Dave.Jones, Vincent.Gauthier, Patrick.Boutot
#preflight 63bc6fd068068a8bd6027c9f

[CL 23631073 by Andrew Rodham in ue5-main branch]
2023-01-10 14:46:43 -05:00
cedric caillaud
d48ae5324c Geometry collection : Fix thumbnaiol not properly rendering because of out of date bounds
#rb trivial
#preflight 63b90bfcc927e34482d95693

[CL 23608037 by cedric caillaud in ue5-main branch]
2023-01-07 17:13:53 -05:00
christopher waters
8fd10b0e13 Dependency cleanup around some Rendering headers.
#preflight 63b893e547321b9d895924b0

[CL 23605570 by christopher waters in ue5-main branch]
2023-01-06 18:57:09 -05:00
gustav melich
4949acf8e0 Dataflow:
- Added TransformCollection, TransformMesh, BakeTransformsInCollection, CollectionToMesh nodes
- Added rendering for FBox, FDynamicMesh3
- Bug fixes

#rb Brice.Criswell, Cedric.Caillaud
#preflight 63b5cab5592c1a9d7c9f2ffa

[CL 23581626 by gustav melich in ue5-main branch]
2023-01-04 16:49:30 -05:00
gustav melich
80350c4ca4 Dataflow:
- Moved ExplodedView Dataflow node to GeometryCollectionFracturingNodes
- Moved exploded view compute code to FractureEngine library
- Updated ExplodedView Dataflow node to use the library
- Added CollectionExplodedVector facade
- Updated DataflowEngine rendering factory to use CollectionExplodedVector facade
- Updated GeometryCollection rendering to use Visibility attribute if it exists
- Updated VoronoiFracture, PlaneCutter node to use TransformSelection
- Updated CreateNonOverlappingConvexHulls node
- Added Internal FacesGroup attribute creation to VoronoiFracture, it will be added to all nodes which do fracture
- Added VertexSelectionCustom, FaceSelectionCustom, FaceSelectionInvert, BoolArrayToFaceSelection nodes
- Renamed and removed some Dataflow nodes
- Fixed issue with FBox and FSphere not initialized properly (UE-172071)

#rb Brice.Criswell, Cedric.Caillaud, Harsha.Reddy
#jira UE-172071
#preflight 6395066e5c5308d18c91585c

[CL 23475588 by gustav melich in ue5-main branch]
2022-12-11 23:22:00 -05:00
jimmy andrews
42f0a32adb Add new 'contact threshold' concept to fracture proximity graph to filter out connections that have insufficient 'contact' + add an initial contact method that uses overlap of projection on major axes.
#rb gustav.melich
#rb cedric.caillaud
#preflight 63922a7167018b14b5992168

[CL 23454530 by jimmy andrews in ue5-main branch]
2022-12-08 15:48:38 -05:00
Ryan Kautzman
499dade665 Fix misspelling.
#rb: none
#fyi: none
#preflight 63911dc41776b8c21c419d34

[CL 23436973 by Ryan Kautzman in ue5-main branch]
2022-12-07 18:26:54 -05:00
gustav melich
c544b9bf4b Dataflow:
- Implemented FPruneInCollectionDataflowNode, FSetVisibilityInCollectionDataflowNode, FMergeInCollectionDataflowNode, FCollectionSetPivotDataflowNode,
                       FMakeSphereDataflowNode, FCollectionTransformSelectionInBoxDataflowNode, FCollectionTransformSelectionInSphereDataflowNode,
                       FCollectionTransformSelectionByFloatAttrDataflowNode, FCollectionTransformSelectionByIntAttrDataflowNode, FCollectionSelectionConvertDataflowNode,
                       FCollectionVertexSelectionCustomDataflowNode, FCollectionFaceSelectionCustomDataflowNode, FCollectionAddCustomAttributeDataflowNode
- Added CollectionTransformSelectionFacace
- Updated other facades
- Added FDataflowVertexSelection, FDataflowFaceSelection

#rb Brice.Criswell, Cedric.Caillaud, Harsha.Reddy, Jimmy.Andrews
#preflight 638d43a09242c01326e00043

[CL 23394645 by gustav melich in ue5-main branch]
2022-12-05 13:19:13 -05:00
cedric caillaud
b960e1ce31 geometry collection : fixed material consolidation and make sure instanced mesh array is properly generated when building a GC in dataflow
- Improved InitializeMaterials to be able to handle material list only made of external materials
- Added CollectionInstancedMeshFacade and update code using the attribute directly to use the facade instead
- Added new input / output to Geometry Collection Terminal node ( InstancedMeshes )
- Simplified FindOrAddAutoInstanceMesh methods

[FYI] jimmy.andrews
#rb none
#preflight 6389699c0e4613faeded4210

[CL 23370012 by cedric caillaud in ue5-main branch]
2022-12-02 00:40:18 -05:00
gustav melich
f0bbd7cdc2 Dataflow:
- Updated Selection nodes

[FYI] Brice.Criswell, Cedric.Caillaud, Harsha.Reddy
#preflight 637d3d0ffa348e8480f4fce7

[CL 23244685 by gustav melich in ue5-main branch]
2022-11-22 20:27:51 -05:00
cedric caillaud
0a631794df Add RemoveOnBreak facade
- Update code accessing the directa ttribute to use the facade
- Updated RemoveOnBreak dataflow node to use it too

#rb none
#preflight 637be8dae30d4388493b0d02

[CL 23229812 by cedric caillaud in ue5-main branch]
2022-11-21 18:58:53 -05:00
gustav melich
80d0fff6c7 Dataflow:
- Added GetBoundingBox() to CollectionBoundsFacade to compute BoundingBox for the whole collection and updated BoundingBox node to use it

#rb Brice.Criswell, Cedric.Caillaud, Harsha.Reddy
#preflight 637ae206e30d43884904696a

[CL 23223904 by gustav melich in ue5-main branch]
2022-11-21 12:58:02 -05:00
gustav melich
4b1e78f31b Dataflow:
- Moved GeometryCollection Dataflow nodes into separate implemetation files by category
- Changed Dataflow node category to "Terminal" on terminal nodes
- Added DataflowGeoemtryCollection, DataflowFlesh categories to nodes
- Addded black default color to terminal category and changed default color for non-specified categories to yellow
- Added comments to all GeometryCollection nodes
- Updated existing Dataflow nodes

#rb Brice.Criswell, Cedric.Caillaud, Harsha.Reddy
#preflight 6377d7d5e30d4388499a07c0

[CL 23206811 by gustav melich in ue5-main branch]
2022-11-18 17:11:01 -05:00
gustav melich
683272ae2b Dataflow:
- Fixed uninitialized property errors

#jira UE-170299
#preflight 6377a226f514e1ded9b12c68

[CL 23196648 by gustav melich in ue5-main branch]
2022-11-18 11:48:16 -05:00
brice criswell
1dc0cf0874 GeometryCollection : Facade API cleanup
#rb Cedric.Caillaud
#preflight 6376d4c0aa2fe2b05f6668e0

[CL 23194460 by brice criswell in ue5-main branch]
2022-11-18 10:22:38 -05:00
cedric caillaud
dbc897faa7 Dataflow : Fix slection and gc asset node
- fix crash in selection nodes
- optimize selection node initialization from another selection
- fix node for creating GC from geometry sources to make sure we have only one root and a level attribute

#rb gustav.melich
#preflight 63749d27953c19d435de782e

[CL 23157745 by cedric caillaud in ue5-main branch]
2022-11-16 13:23:03 -05:00
cedric caillaud
611aedd5ec Dataflow : fix geometry collection terminal node
#rb trivial
#preflight none

[CL 23148531 by cedric caillaud in ue5-main branch]
2022-11-15 19:54:03 -05:00
tim smith
e9a1c10632 Removed use of exponential notation since it isn't supported by C++ UHT.
#rb self
[FYI] gustav.melich
#preflight 6373a642232e3d12cbbef9c4

[CL 23148468 by tim smith in ue5-main branch]
2022-11-15 19:52:43 -05:00
gustav melich
c2dd4676f9 Dataflow:
- fix for Issue #235904: Compile errors in GeometryCollectionNodes.cpp and Module.GeometryCollectionNodes.cpp

#preflight none

[CL 23132952 by gustav melich in ue5-main branch]
2022-11-15 02:19:33 -05:00
henrik karlsson
23647e0ba6 [GeometryCollectionPlugin]
* Attempt at fixing compile error happening on non-editor platforms using this plugin.

#rb none
#preflight skipped
[FYI] Gustav.Melich

[CL 23132665 by henrik karlsson in ue5-main branch]
2022-11-15 01:07:36 -05:00
gustav melich
0cb27d8f52 Dataflow:
- Added TransformSelection data type
- Implemented these nodes: GetArrayElementDataflowNode, GetNumArrayElementsDataflowNode, GetCentroidsDataflowNode, PointsToMeshDataflowNode, BoxToMeshDataflowNode, MeshInfoDataflowNode,
                                           MeshToCollectionDataflowNode, StaticMeshToMeshDataflowNode, TransformDataflowNode, MeshAppendDataflowNode, MeshBooleanDataflowNode, MeshCopyToPointsDataflowNode,
                                           CompareIntDataflowNode, BranchDataflowNode, GetMeshDataDataflowNode, GetSchemaDataflowNode, CollectionTransformSelectionAllDataflowNode,
                                           CollectionTransformSelectionSetOperationDataflowNode, CollectionTransformSelectionInfoDataflowNode, CollectionTransformSelectionNoneDataflowNode,
                                           CollectionTransformSelectionInvertDataflowNode, CollectionTransformSelectionRandomDataflowNode, AutoClusterDataflowNode, CollectionTransformSelectionRootDataflowNode,
                                           CollectionTransformSelectionCustomDataflowNode, CollectionTransformSelectionParentDataflowNode, CollectionTransformSelectionByPercentageDataflowNode,
                                           CollectionTransformSelectionChildrenDataflowNode, CollectionTransformSelectionSiblingsDataflowNode, CollectionTransformSelectionLevelDataflowNode,
                                           CollectionTransformSelectionContactDataflowNode, CollectionTransformSelectionLeafDataflowNode, CollectionTransformSelectionClusterDataflowNode,
                                           CollectionTransformSelectionBySizeDataflowNode, CollectionTransformSelectionByVolumeDataflowNode, SetAnchorStateDataflowNode, FProximityDataflowNode
- Renamed Passthrough metadata tag to DataflowPassthrough
- Added Tooltip display for nodes (both for hovering over the node and hovering over the node name in Action menu) and for pins, the tooltip gets build from the /** ... */ comments from the header file

#rb Brice.Criswell, Jimmy.Andrews, Cedric.Caillaud, Harsha.Reddy

#ushell-cherrypick of 22280306 by Gustav.Melich
#preflight 6372b085ee4d25f90adf68b1

[CL 23131415 by gustav melich in ue5-main branch]
2022-11-14 20:42:57 -05:00
cedric caillaud
9fc08afba5 Optimize geaometry collection creation from geometry sources
- Only call reindexMaterial once
- Make sure reindexMaterial  skips validation when calling RemoveElements

#rb brice.criswell, jimmy.andrews
#preflight 63726910b6636838286b850d

[CL 23124875 by cedric caillaud in ue5-main branch]
2022-11-14 15:56:50 -05:00
brice criswell
937b6bd45a Dataflow : Remove unused toolkits
#rb none
#preflight 636c0458a550a2a759100149

[CL 23071865 by brice criswell in ue5-main branch]
2022-11-10 01:10:24 -05:00
cedric caillaud
14057397b6 Dataflow : make remove on break properties editable in thedetail panel
[FYI] harsha.reddy
#rb trivial
#preflight none

[CL 23071796 by cedric caillaud in ue5-main branch]
2022-11-10 01:07:35 -05:00