Commit Graph

38 Commits

Author SHA1 Message Date
matija kecman
c5bc05a109 Render Capture Baking: Add a method exposing the evaluator data layout
This will be useful for the (upcoming) RenderCaptureMapEvaluator as it allows a pointer to the FMeshMapEvaluator base class to be statically cast to the right type even though that Evaluator must be a template class. Without this method we can't cast the base class pointer since we don't know the template parameter, but we want the template so that EvaluateSample can be branch free which is desirable since its called in hot loops

#rb lonnie.li
#rnx
#jira none
#preflight 629f2e39f73a9b013d9e9eb0

[CL 20538179 by matija kecman in ue5-main branch]
2022-06-07 10:50:05 -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
jason walter
e8e7d051e5 Remove unnecessary pragma once
#jira UE-150255
#fyi matija.kecman, lonnie.li, kriss.gossart
#rb none
#preflight none

[CL 19942195 by jason walter in ue5-main branch]
2022-04-27 12:54:25 -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
Jimmy Andrews
ef32c0bb0f return the default normal/occlusion for occlusion baker samples that have a degenerate normal
#rb lonnie.li
#preflight 626373236c1ac14c70790253

[CL 19886120 by Jimmy Andrews in ue5-main branch]
2022-04-22 23:46: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
c23aaf9684 ModelingTools: Fixed MaterialID bake to overwrite rather than accumulate.
#rb none
#jira none
#preflight 62573215667d4516641e5a93

[CL 19747026 by lonnie li in ue5-main branch]
2022-04-13 18:28:48 -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
bd1ff96e3e Render Capture Baking: Use new baking framework
#rb lonnie.li
#rnx
#jira none
#preflight 6255d700ed176258e5e26227

[CL 19727518 by matija kecman in ue5-main branch]
2022-04-12 16:02:24 -04:00
matija kecman
e596e5d459 Modeling Tools Baking/Approximate Actors: Minor refactoring of MeshGenericWorldPositionBaker
#rb lonnie.li
#rnx
#jira none
#preflight 6255d2ff3f5641db59091ee7

[CL 19727436 by matija kecman in ue5-main branch]
2022-04-12 15:59:24 -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
52797a98be ModelingTools: Add support for Object space source normal maps to BakeTexture.
#rb jimmy.andrews matija.kecman
#jira none
#preflight 620ffdc64d39023e82a40fa2

[CL 19056004 by lonnie li in ue5-main branch]
2022-02-18 15:34:48 -05:00
fred kimberley
7fbfaf57c8 Require explicit constructors/casts when converting between FVector, FVector3d, and FVector3f.
#jira UE-122078
#rb Andrew.Davidson, Colin.McGinley
#preflight standard build

#ROBOMERGE-AUTHOR: fred.kimberley
#ROBOMERGE-SOURCE: CL 18817999 in //UE5/Release-5.0/... via CL 18818012 via CL 18822871
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v910-18824042)

[CL 18824721 by fred kimberley in ue5-main branch]
2022-02-02 07:59:31 -05: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
lonnie li
18bf5bd184 ModelingTools: Minor Bake tools rename pass.
#rb trivial
#rnx
#jira none
#preflight 619ed10b801b361978d28665

#ROBOMERGE-AUTHOR: lonnie.li
#ROBOMERGE-SOURCE: CL 18290923 in //UE5/Release-5.0/... via CL 18290931
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469)

[CL 18290938 by lonnie li in ue5-release-engine-test branch]
2021-11-24 19:19:10 -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
0d69345b4a ModelingTools: Add cancel support to BakeVertex background eval.
Update BakeVertex tile size to 1024.
Improve BakeVertex sampling robustness.

#rb trivial
#rnx

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

[CL 18045218 by lonnie li in ue5-release-engine-test branch]
2021-11-03 21:57:11 -04:00
lonnie li
5abfa622a6 ModelingTools: Add analytics to BakeVtx.
#rb matija.kecman
#rnx
#jira none
#preflight 6181660efc786a0001494c4a

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

[CL 18022393 by lonnie li in ue5-release-engine-test branch]
2021-11-02 13:59:11 -04:00