46 Commits

Author SHA1 Message Date
marc audy
19e84555b3 Silence PVS warnings
[CL 30653812 by marc audy in ue5-main branch]
2024-01-17 01:34:02 -05: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
jimmy andrews
8c1fc919a2 Add PolyGroupID option to the Bake Textures and Bake Vertex Colors tools
#rb lonnie.li
#preflight 63fe754eef1b24bf9431ef91

[CL 24454581 by jimmy andrews in ue5-main branch]
2023-02-28 18:39:53 -05:00
tyson brochu
51ea46ee6d BakeVtx: fix per-channel baking of curvature/ambient occlusion
#rb lonnie.li
#preflight 63ee76da81646f1f24f10dc2

[CL 24268890 by tyson brochu in ue5-main branch]
2023-02-16 16:39:22 -05:00
lonnie li
1b9bbb3599 BakeVertex: Fixed identity bakes w/ VertexColor output type returning black.
#rb none
#jira none
#preflight 62daf5c2bc175ec68cd16f08

[CL 21227905 by lonnie li in ue5-main branch]
2022-07-22 15:45:30 -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
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