Commit Graph

10 Commits

Author SHA1 Message Date
Jimmy Andrews
6c6bdccb2c Add a smoothed curvature attribute option to the fracture AutoUV tool (replaces less useful Z percent attribute)
#rb lonnie.li
#preflight 608b20ce9b87540001792880

[CL 16162788 by Jimmy Andrews in ue5-main branch]
2021-04-29 18:01:32 -04:00
Ryan Schmidt
6fddf37b78 GeometryProcessing updates for new MergeActors method:
- Add ECorrespondenceStrategy enum/setting to FMeshImageBakingCache to allow for different lowpoly/highpoly mapping polices, and implement those various policies. Add  FindSamplingHoles() to allow for image postprocessing to repair sampling failures.
- Add TImateBuilder::ContainsPixel()
- Add TMathUtil::Tan() function wrapper
- Add support for "Build Scale" in FMeshDescriptionTriangleMeshAdapter. StaticMesh MeshDescriptions can have an arbitrary scaling factor applied, this allows incorporating that scaling without having to make a mesh copy (at cost of a multiply for each vertex access). Add Vectortype-templated GetTriVertices() function.
- Add FWindingNumberBasedSolidify variant of TImplicitSolidify that supports an external Winding-Number-Like function, and does not have an explicit Mesh/AABBTree dependency. This allows us to mesh the winding number an arbitrary assembly of objects.
#rb david.hill
#rnx
#jira none

[CL 16133947 by Ryan Schmidt in ue5-main branch]
2021-04-27 18:23:26 -04:00
Jimmy Andrews
276d205643 change MeshImageBakingCache ParallelFor iteration to be over rows instead of over pixels, b/c ParallelFor doesn't support int64 indices
#rb ryan.schmidt
#rnx
#preflight 607795491fa99900011dc3bf

[CL 16016004 by Jimmy Andrews in ue5-main branch]
2021-04-14 22:03:51 -04:00
lonnie li
ded81b4807 ModelingTools: Add background compute for BakeMeshAttributeMapsTool.
#rb Jimmy.Andrews Ryan.Schmidt
#jira none
#rnx
#preflight 6074ac5aff56130001e2f253

[CL 15983648 by lonnie li in ue5-main branch]
2021-04-12 17:10:46 -04:00
lonnie li
249b61914e GeometryProcessing: Fix inverted parallel flag for MeshImageBakingCache.
#rb trivial
#jira none
#rnx

#ROBOMERGE-SOURCE: CL 15895727 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v786-15839533)

[CL 15895739 by lonnie li in ue5-main branch]
2021-04-01 16:26:24 -04:00
Ryan Schmidt
196be0f6d1 GeometryProcessing: replace UE::Geometry::FVector3d/FVector3f with UE Core versions based on TVector<T>. FVector3<T> is now an extension of TVector<T>. Update all affected call sites.
#rb none
#rnx
#jira none

[CL 15870068 by Ryan Schmidt in ue5-main branch]
2021-03-30 21:25:22 -04:00
Ryan Schmidt
6db97af132 GeometryProcessing: FVector2/3/4 refactoring. Move various member functions to standalone functions in UE::Geometry:: namespace, to simplify upcoming conversion to core vector types. Update all call sites.
#rb tyson.brochu, semion.piskarev
#rnx
#jira none

[CL 15732208 by Ryan Schmidt in ue5-main branch]
2021-03-17 19:32:44 -04:00
Ryan Schmidt
ffe3b401cd GeometryProcessing: move all public types in GeometryProcessing plugin into UE::Geometry:: namespace, as well as some code in MeshModelingToolset. Fix fallout in Water, Paint Mode, ChaosEditor, DataPrep, Text3D, Unit Tests, internal projects.
#rb jimmy.andrews, semion.piskarev
#jira none

[CL 15661651 by Ryan Schmidt in ue5-main branch]
2021-03-09 19:33:56 -04:00
Ryan Schmidt
31317aefbd GeometryProcessing improvements/additions
- new correspondence-finding strategy in FMeshImageBakingCache. Added a global Thickness parameter, and now preferentially uses the ray-hit found by casting inwards from Point+Thickness*Normal. This handles the cases where a greeble/etc is just layered on top of base mesh. These kind of mesh elements are only intended to show up in the normal map, so they aren't stitched in.
  - expose Thickness and World-Space options in BakeMeshAttributeMapsTool
  - initialize image in Normal and ResampleImage Bakers, otherwise initial value is garbage
- add TSampledScalarField2::BilinearSampleGradientClamped and fix typo in BilinearSampleClamped() that resulted in incorrect interpolation
- add Texture2DUtil, contains functions for reading a TImageBuilder from a UTexture2D. Can read from source data if available.
- ColorConstants now returns white for group 0
- add double version of FMeshDescriptionToDynamicMesh::CopyTangents()
- add support for computing on subset of vertiecs in FMeshConvexHull
- fix up template export in TMeshTangents
- make mesh const in TImplicitMorphology, TImplicitSolidify
- accessor/etc additions in TDenseGrid2, TImageBuilder, TSampledScalarField2, TIndexedWeightMap
- add source UStaticMesh reference in FPhysicsDataCollection, function to initialize from a UStaticMesh
  - update Tools affected by above changes
- add TSampleSetStatisticBuilder::ComputeMultiPass() helper function to compute stats for iterable collections in one line
- remove dead code in UVLayoutOp.cpp

#rb tyson.brochu
#rnx
#jira none

[CL 14769759 by Ryan Schmidt in ue5-main branch]
2020-11-17 22:32:38 -04:00
Marc Audy
7379fa99c5 Merging //UE5/Release-Engine-Staging to Main (//UE5/Main) @ 14229157
[CL 14233282 by Marc Audy in ue5-main branch]
2020-09-01 14:07:48 -04:00