Commit Graph

12 Commits

Author SHA1 Message Date
lonnie li
f941773eaf 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 via CL 18099175
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Test -> Main) (v889-18060218)

[CL 18099176 by lonnie li in ue5-main branch]
2021-11-08 21:55:30 -05:00
Ryan Schmidt
fb80769bfd AutoLOD:
- add support for a Settings Preset, as an explicit Asset type. UStaticMeshLODGenerationSettings contains a copy of the GenerateProcess Settings, UStaticMeshLODGenerationSettingsFactory allows this UObject to be used as an Asset in the Editor.  UGenerateStaticMeshLODAssetTool now has a Preset slot, and action buttons to Read/Write to the currently-selected Settings Asset. New Settings Asset can be created via the Asset Picker popup in the Tool, currently creating via the New Asset menu is disabled via UStaticMeshLODGenerationSettingsFactory::GetMenuCategories()
- UGenerateStaticMeshLODProcess now automatically ignores input textures that have a constant value
- UGenerateStaticMeshLODProcess now skips writing output NormalMap and MultiTexture if they are not referenced by any output Materials
- UGenerateStaticMeshLODProcess now supports configuring whether a Texture or Material will be considered for Baking. If disabled, then the source Texture/Material is used (currently the Textures are still baked, they are just ignored while configuring/writing the outputs).
- UGenerateStaticMeshLODAssetTool now exposes lists of source Texture and Materials with option to skip baking (used to configure the above options)
- wrote header comments for UGenerateStaticMeshLODProcess
- overall cleanup in  UGenerateStaticMeshLODAssetTool, ie category names, organization, etc

- add TImageBuilder::IsConstantValue(), checks if all pixels of image are the same value

#rb tyson.brochu
#rnx
#jira none
#preflight 6137ae4fd9c85a00013838c1

[CL 17449788 by Ryan Schmidt in ue5-main branch]
2021-09-07 16:48:57 -04:00
Ryan Schmidt
3c194796e4 GeometryProcessing: clean up TVector4 and usage in preparation for LWC conversion
#rb none
#rnx
#jira none
#preflight 6126abe6250579000172095f

[CL 17316245 by Ryan Schmidt in ue5-main branch]
2021-08-26 08:29:57 -04:00
lonnie li
20329aff8f GeometryProcessingUnitTests: Added unit tests for FMeshMapBaker.
#rb jimmy.andrews michael.balzer
#rnx
#jira UETOOL-4057
#preflight 6112a4c99c7bb1000195412a

[CL 17120103 by lonnie li in ue5-main branch]
2021-08-10 13:54:37 -04:00
lonnie li
cb1356fe7f ModelingTools: Add texture filtering support to BakeTexture.
#rb michael.balzer
#rnx
#jira UETOOL-3818
#preflight 610da9df6c6eb00001b677c3

[CL 17102582 by lonnie li in ue5-main branch]
2021-08-09 10:49:45 -04:00
lonnie li
35b36087ad GeometryCore: Fix gutter list entries for samples outside search space in ImageOccupancyMap.
#rb trivial
#rnx

[CL 17085504 by lonnie li in ue5-main branch]
2021-08-06 13:48:15 -04:00
halfdan ingvarsson
2042577b4c Fixed a build break in debug builds.
#fyi lonnie.li
#rnx

[CL 16933967 by halfdan ingvarsson in ue5-main branch]
2021-07-22 22:40:00 -04:00
lonnie li
a20cefcf80 ModelingTools: Refactored ImageTile out of ImageDimensions
- Inlined MeshMapBaker::BakePixel().
- Fixed gutter texels when multisampling.

#rb michael.balzer
#rnx
#jira UETOOL-3818
#preflight 60f9f06de885f200011f33b3

[CL 16932816 by lonnie li in ue5-main branch]
2021-07-22 19:47:54 -04:00
tyson brochu
671f2ea697 Optimize occupancy map construction for large textures by removing lock
#rnx
#rb ryan.schmidt lonnie.li
#pf 60ca206d4ce02c0001885e5f


#ROBOMERGE-SOURCE: CL 16690851
#ROBOMERGE-BOT: (v835-16672529)

[CL 16690858 by tyson brochu in ue5-main branch]
2021-06-16 13:00:13 -04:00
ryan schmidt
2fab582c78 GeometryProcessing:
- extend FImageAdapter to support reading
ModelingComponents::
- Add AssetUtils::ForceVirtualTexturePrefetch(), ::SaveDebugImage() variants to Texture2DUtil
- Add support for debug image writing to WorldRenderCapture and SceneCapturePhotoSet
- FWorldRenderCapture now computes more accurate bounds (visible Components instead of Actors), and does an explicit VirtualTexture prefetch before doing render capture
- FStaticMeshAssetOptions now exposes Nanite settings to allow UStaticMeshes to be created with Nanite already enabled (currently NaniteSettings.PositionPrecision defaults to max)
ApproximateActors:
- IGeometryProcessing_ApproximateActors::FOptions now has settings for enabling Nanite on generated meshes
- ApproximateActorsImpl applies these settings, also enables VT on generated textures if necessary
- FMeshApproximationSettings/FMeshApproximationTool updated w/ new Nanite settings
#rb none
#rnx
#jira none
[FYI] sebastien.lussier
#preflight 60b08323f51cd90001775b98

#ROBOMERGE-OWNER: ryan.schmidt
#ROBOMERGE-AUTHOR: ryan.schmidt
#ROBOMERGE-SOURCE: CL 16499613 in //UE5/Private-Frosty/...
#ROBOMERGE-BOT: STARSHIP (Private-Frosty -> Main) (v823-16466674)
#ROBOMERGE-CONFLICT from-shelf

[CL 16499647 by ryan schmidt in ue5-main branch]
2021-05-28 02:46:59 -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
Ryan Schmidt
623e4f96fe GeometryCore: create new GeometryCore Module. Move GeometricObjects code from GeometryProcessing plugin to this new module, as well as core FDynamicMesh3 classes (attributes, aabbtree/octree, change tracking). Update module Build.cs files that reference GeometricObjects.
#rb none
#rnx
#jira none
#preflight 60a713700569f300014a064a

[CL 16415082 by Ryan Schmidt in ue5-main branch]
2021-05-21 01:04:38 -04:00