29 Commits

Author SHA1 Message Date
lonnie li
ce2df4c489 ModelingTools: Fixed crash in MeshMapBaker.ComputeUVCharts for non-compact DynamicMeshes.
#rb David.Hill
#jira UE-224321

[CL 36300225 by lonnie li in 5.5 branch]
2024-09-16 09:17:01 -04:00
mr0ptimist
394ac65e99 PR #11705: Fixed redundant UV mesh spatial computation in modeling mode bake tools
#rb tyson.brochu
#jira UE-211209


#ushell-cherrypick of 32670342 by UnrealBot

[CL 34142726 by mr0ptimist in ue5-main branch]
2024-06-05 18:10:52 -04:00
lonnie li
b61dc7b9df ModelingTools: Fixed gap in gutter when baking MaterialID in the Bake Textures tool.
#rb jimmy.andrews
#jira UE-191491

[CL 26813067 by lonnie li in ue5-main branch]
2023-08-03 11:48:32 -04:00
matija kecman
440465a45e Fix speckles in border regions when creating textures using BakeTX tool
#jira UE-169350
#preflight 6422dd7f710ec8400fb9b138
#rb lonnie.li

[CL 24820937 by matija kecman in ue5-main branch]
2023-03-28 12:24:50 -04:00
matija kecman
144f7387ab Fix texture filter kernels used in Baking Tools
#rb lonnie.li
#jira UE-179574
#preflight 64197546bb1320be4103db9d

[CL 24730282 by matija kecman in ue5-main branch]
2023-03-21 08:03:20 -04:00
David Hill
656cf4df2c GeometryProcessing: Sampling - fix implicit type conversion warnings.
#preflight 62bb2a5f53044a14fa4b953f
#rb Jimmy.Andrews

[CL 20916790 by David Hill in ue5-main branch]
2022-07-01 13:21:54 -04:00
matija kecman
b47e74f1a8 Render Capture Baking: Move visibility raycast from evaluators to detail sampler
Benchmark configuration:
- Test scene with 4 meshes: a mossy stone nanite mesh, a beach ball, a ball with an emissive blue cross and a hut mesh
- Target mesh: 11.8k triangles mesh, created by voxel wrapping the meshes in the test scene elements
- 4096x4096 output texture with 16x multisampling baking BaseColor, Emissive, PackedMRS and Normal maps
- 4096x4096 photo capture resolution

Unreal Insights reports the following times for the Bake call:
- Before this change: 2 mins 45 seconds
- After this change: 55.9 seconds

Aside: (Unaffected by this change) In both cases the photo capture, which is done on the game thread, took about 1 min

#jira none
#rb
#rnx
#preflight 627e64e01748fbc85bb24a42

[CL 20221383 by matija kecman in ue5-main branch]
2022-05-16 05:13:25 -04:00
matija kecman
998174e108 Render Capture Baking: Reimplement infill in new baking framework using callbacks
#rb lonnie.li
#rnx
#preflight 627a5feffc07e0a9b4fda490
#jira none

[CL 20121863 by matija kecman in ue5-main branch]
2022-05-10 09:01:17 -04:00
matija kecman
929525effb Render Capture Baking: Support correspondence sample validity checking, use BSpline filtering and enable multisampling
#rb lonnie.li
#rnx
#jira none
#preflight 6262d4dbd558dfdec3934905

[CL 19899614 by matija kecman in ue5-main branch]
2022-04-25 05:41:52 -04:00
matija kecman
c0d9ee0a19 MeshMapBaker: Some refactoring/clarification
#rb lonnie.li
#rnx
#jira none
#preflight 625edf049c09ef439d98e141

[CL 19811589 by matija kecman in ue5-main branch]
2022-04-19 13:09:19 -04:00
matija kecman
6f5b380176 MeshMapBaker: Change criterion used to switch between computed and default values in overwrite mode evaluators when a sample filter function is used
This change means that if an overwrite mode evaluator (e.g., one computing Material IDs) used a default value for a given sample then all the add mode evaluators will have only added contributions from the evaluator default value for that sample too.

#rb lonnie.li
#rnx
#jira none
#preflight 625ed97b034d8924cdcc230f

[CL 19810706 by matija kecman in ue5-main branch]
2022-04-19 12:24:50 -04:00
lonnie li
6d9773bf8d ModelingTools: Add support for blending when evaluating SampleFilterMask in BakeTexture/BakeAll
#rb jimmy.andrews
#jira none
#preflight 62576e3e1543022eed57ee1c

[CL 19749341 by lonnie li in ue5-main branch]
2022-04-13 21:13:17 -04:00
lonnie li
4c27f65167 ModelingTools: Add SampleFilterMask support for BakeTexture/BakeAll.
#rb jimmy.andrews
#jira none
#preflight 6255f5b2c65e9671cf8ee811

[CL 19731154 by lonnie li in ue5-main branch]
2022-04-12 18:19:08 -04:00
matija kecman
f86b12aa0a Modeling Tools Baking: Remove superfluous FindConnectedTriangles call
#rb lonnie.li
#rnx
#jira none
#preflight 625586429a0f82a315181557

[CL 19721291 by matija kecman in ue5-main branch]
2022-04-12 10:58:47 -04:00
lonnie li
e13cc72e32 ModelingTools: Properly set identity correspondence strategy in baker when input meshes are the same.
#rb jimmy.andrews rinat.abdrashitov
#jira none
#preflight 623dfdb38330d27ee3738551

[CL 19515965 by lonnie li in ue5-main branch]
2022-03-25 13:52:51 -04:00
lonnie li
03f690f1b6 ModelingTools: Add additional early-exit points for cancelled Baker computes.
#rb none
#rnx
#jira UE-140474
#preflight 61f4727ce52a8a4a91ceff2e

#ROBOMERGE-AUTHOR: lonnie.li
#ROBOMERGE-SOURCE: CL 18793443 in //UE5/Release-5.0/... via CL 18793662 via CL 18794522
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)

[CL 18795012 by lonnie li in ue5-main branch]
2022-01-31 14:57:19 -05:00
lonnie li
8e197859df ModelingTools: Fix texture filtering into neighboring charts for tightly packed UV shells.
#rb jimmy.andrews michael.balzer
#rnx
#jira none
#preflight 61bbb2868a62de8385c38473

#ROBOMERGE-AUTHOR: lonnie.li
#ROBOMERGE-SOURCE: CL 18480102 in //UE5/Release-5.0/... via CL 18481553
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v899-18417669)

[CL 18481825 by lonnie li in ue5-release-engine-test branch]
2021-12-16 19:57:29 -05:00
Marc Audy
0c3be2b6ad Merge Release-Engine-Staging to Test @ CL# 18240298
[CL 18241953 by Marc Audy in ue5-release-engine-test branch]
2021-11-18 14:37:34 -05:00
michael balzer
b8a1c9b6cf GeometryCore: Remove ExplicitUseGeometryMathTypes.h
#ROBOMERGE-AUTHOR: michael.balzer
#ROBOMERGE-SOURCE: CL 18227685 in //UE5/Release-5.0/... via CL 18229350
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469)
#ROBOMERGE[STARSHIP]: UE5-Main

[CL 18231457 by michael balzer in ue5-release-engine-test branch]
2021-11-17 19:02:44 -05:00
lonnie li
db670aaffc ModelingTools: Add additional trace events to the Bake tools.
#rb trivial
#rnx
#jira none
#preflight 6189db370779df5c6a59f3e9

#ROBOMERGE-AUTHOR: lonnie.li
#ROBOMERGE-SOURCE: CL 18099121 in //UE5/Release-5.0/... via CL 18099168
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v889-18060218)
#ROBOMERGE[STARSHIP]: UE5-Main

[CL 18099175 by lonnie li in ue5-release-engine-test branch]
2021-11-08 21:54:53 -05:00
lonnie li
1a58daa8ac ModelingTools: Add analytics to BakeTx and BakeAll.
#rb michael.balzer
#rnx
#jira none
#preflight 618156394d1db700016f18b7

#ROBOMERGE-AUTHOR: lonnie.li
#ROBOMERGE-SOURCE: CL 18022043 in //UE5/Release-5.0/... via CL 18022262
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v885-17909292)
#ROBOMERGE[STARSHIP]: UE5-Main

[CL 18022377 by lonnie li in ue5-release-engine-test branch]
2021-11-02 13:58:07 -04:00
lonnie li
cb16983776 ModelingTools: Fix trace event names.
#rb trivial
#rnx

#ROBOMERGE-AUTHOR: lonnie.li
#ROBOMERGE-SOURCE: CL 17922046 in //UE5/Release-5.0/... via CL 17922825
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v885-17909292)
#ROBOMERGE[STARSHIP]: UE5-Main

[CL 17922851 by lonnie li in ue5-release-engine-test branch]
2021-10-26 09:29:13 -04:00
lonnie li
b9e683b2a7 ModelingTools: Fix crash in BakeVertex tool.
- Fix curvature settings in BakeVertex in per-channel mode.
- Fix erroneous ensure when in Identity correspondence mode.
- Remove remnants of previous Detail mesh system.
- Minor FMeshMapBaker interface updates.

#rb trivial
#rnx
#jira none
#preflight 6142689b3c7c670001add3ce

#ROBOMERGE-AUTHOR: lonnie.li
#ROBOMERGE-SOURCE: CL 17530703 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v870-17433530)

[CL 17530722 by lonnie li in ue5-release-engine-test branch]
2021-09-15 20:13:36 -04:00
lonnie li
90f5344d22 ModelingTools: Add N-to-1 detail mesh bake tool
- Added new FindNearestHitTriangle overload with bary coords.
- Refactored BakeMeshAttributeMapsTool into common base class with new MultiMesh (N-to-1) variant.
- Extended MeshDescriptionAdapter to support UVs.
- Added new queries on IMeshSpatialWrapper for mesh attributes.

#rb ryan.schmidt
#rnx
#jira UETOOL-3395
#preflight 613fb4c3a70fa0000131ff77

#ROBOMERGE-AUTHOR: lonnie.li
#ROBOMERGE-SOURCE: CL 17497155 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v870-17433530)

[CL 17497176 by lonnie li in ue5-release-engine-test branch]
2021-09-13 17:51:19 -04:00
lonnie li
7b0c2454ee ModelingTools: Bake tool detail mesh sampling abstraction
- Refactored direct detail mesh sampling queries into an abstract base interface for repurposing to alternative detail mesh constucts other than DynamicMesh3 (including N-to-1).
- Move IsTriangle tests out of evaluators and into the core bake loop.

#rb jimmy.andrews
#rnx
#jira UETOOL-3395
#preflight 6137d813d9c85a000150d95a

#ROBOMERGE-AUTHOR: lonnie.li
#ROBOMERGE-SOURCE: CL 17451759 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v870-17433530)

[CL 17451812 by lonnie li in ue5-release-engine-test branch]
2021-09-07 19:06:34 -04:00