Commit Graph

17 Commits

Author SHA1 Message Date
Ryan Schmidt
e196c256e4 GeometryProcessing: remove forwarding headers used in GeometryCore transition, and update all affected includes.
#rb none
#rnx
#jira none
#preflight 60c52c5db9446100014da02d

[CL 16653115 by Ryan Schmidt in ue5-main branch]
2021-06-13 00:35:22 -04:00
lonnie li
450820cda6 ModelingTools: Fix synchronization issues in BakeTexture when modifying bake targets during a background compute.
#rb michael.balzer
#rnx
#jira none
#preflight 60c1280079a7fe0001317aaa

[CL 16614097 by lonnie li in ue5-main branch]
2021-06-09 18:10:23 -04:00
lonnie li
04eedbdd12 ModelingTools: Refactor new bake path to bake evaluators.
Add support for variable float size and bake results per evaluator.

#rb jimmy.andrews michael.balzer
#rnx
#jira UETOOL-3397
#preflight 60aea5a35f6905000159e87b

[CL 16475935 by lonnie li in ue5-main branch]
2021-05-26 17:14:57 -04:00
lonnie li
bbab3ea643 ModelingTools: 1st pass Mesh Texture bake refactor w/ multisampling support.
#rb tyson.brochu jimmy.andrews semion.piskarev michael.balzer
#rnx
#jira UETOOL-3397
#preflight 60a2b8b7292e3200011a6bf1

[CL 16357743 by lonnie li in ue5-main branch]
2021-05-17 16:01:01 -04:00
tyson brochu
ec50f02f98 Adding a multi-texture bake mode to the texture bake tool. User can bake a different texture per material region. Defaults to trying to find an Albedo texture for each material on the input mesh, but the textures to bake can be specified by the user.
Also adding a mode to bake MaterialIDs as colors.

#jira UETOOL-3071
#rb ryan.schmidt lonnie.li

[CL 16173135 by tyson brochu in ue5-main branch]
2021-04-30 17:04:37 -04:00
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
80a4dcfb0d GeometryProcessing: add basic ImageInfilling implementation and World-Position-Based Color/Normal Bakers
#rb none
#rnx
#jira none

[CL 16157857 by Ryan Schmidt in ue5-main branch]
2021-04-29 11:43:08 -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
lonnie li
20086414b0 GeometryProcessing: Add selective occlusion map type support in OcclusionMapBaker.
#rb Jimmy.Andrews
#jira none
#rnx
#preflight 607899244af1c70001840dba

[CL 16026031 by lonnie li in ue5-main branch]
2021-04-15 16:40:58 -04:00
Jimmy Andrews
ea56c80239 Minor fixes for AO map baker: Clear uninitialized data from AO textures before writing them + only get tangents if needed and check that they are there
#rb david.hill lonnie.li
#rnx
#preflight 6075feb73b972d0001d9a14d

[CL 15995028 by Jimmy Andrews in ue5-main branch]
2021-04-13 17:11:31 -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
Marc Audy
01b7c9f4f5 Merge UE5/RES @ 15958325 to UE5/Main
This represents UE4/Main @ 15913390 and Dev-PerfTest @ 15913304

[CL 15958515 by Marc Audy in ue5-main branch]
2021-04-08 14:32:07 -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
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
Marc Audy
11f5b21210 Merging //UE5/Release-Engine-Staging @ 13752110 to Main (//UE5/Main)
#rnx

[CL 13753156 by Marc Audy in ue5-main branch]
2020-06-23 18:40:00 -04:00