Commit Graph

9 Commits

Author SHA1 Message Date
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
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
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
Brice Criswell
6a84bdf9b6 GeometryCollection - Skeleton Import
- Added utility function to import a skeleton into a FTransformCollection
#rb none
#fyi cedric.caillaud, jimmy.andrews
#preflight 632b2d0bd747fe52c8dc963f

[CL 22114552 by Brice Criswell in ue5-main branch]
2022-09-21 11:52:44 -04:00
Brice Criswell
a9c8158731 GeometryCollection : AppendSkeletalMesh
Made GeometryCollection::AppendSkeletalMesh more generic so it can take just a FManagedArrayCollection.
- Added a static version of FGeometryCollection::UpdateBoundingBox
- Added a static version of FGeometryCollection::ReindexMaterials
- Added Interface for standard attribute creation
#rb none
#preflight 632500d18c3def91aab79974
#preflight 632508ba743614651496822c

[CL 22063294 by Brice Criswell in ue5-main branch]
2022-09-16 19:43:53 -04:00
Jimmy Andrews
4acfad1f33 add options on geometry collection creation
- make material duplication for internal materials optional
 - ask if user wants to split the mesh by connected component

+ implement the connected component split on the mesh description as part of the conversion, so we can do it before we've thrown out the mesh topology (geometry collection is a rendering rep that can't represent mesh topology; it splits at every UV seam and sharp edge)

#preflight 62fe8062f7404b55a3010ac6

[CL 21448521 by Jimmy Andrews in ue5-main branch]
2022-08-18 15:37:22 -04:00
Jimmy Andrews
d42b54726c fix duplicate materials on new/reset of a geometry collection
#rb trivial
#preflight 62f559e4fb0cb69a5a171751

[CL 21344203 by Jimmy Andrews in ue5-main branch]
2022-08-11 16:23:50 -04:00
Jimmy Andrews
a0a2371b27 Refactor GeometryCollectionEngineConversion functions to optionally have core FGeometryCollection conversion called separately from material-related conversion that requires the UObject/Component
#rb Brice.Criswell
#preflight 62b4cf8eb822fb9c117bd548

[CL 20801937 by Jimmy Andrews in ue5-main branch]
2022-06-23 17:00:03 -04:00
Brice Criswell
ed37b71c02 GeometryCollection : Structure change
- Moved AppendStaticMesh and AppendSkeletalMesh to the Engine level
- Moved the Node implementation into GeometryCollectionNodes within the plugin.
#rb trivial
#preflight 6298120a216be32a7627a7e0

[CL 20464135 by Brice Criswell in ue5-main branch]
2022-06-01 21:41:57 -04:00