44 Commits

Author SHA1 Message Date
danny kabrane
e809238ed9 [Backout] - CL30567677
[FYI] Danny.Kabrane, Dan.Thompson, Charles.Bloom
Original CL Desc
-----------------------------------------------------------------
Fixing MaterialX imports texture with wrong colors, correctly detect gray scale textures in the Texture Pipeline, not in the Translator wrapper.

#jira UE-192576
#rb Alexis.Matte

[CL 30588609 by danny kabrane in ue5-main branch]
2024-01-12 03:14:57 -05:00
charles bloom
bdf080ed23 TextureSourceDataUtils add AdditionalSourceSizeLimit
#rnx

[CL 30575043 by charles bloom in ue5-main branch]
2024-01-11 14:54:52 -05:00
charles bloom
8f6ea6f59b TextureSourceDataUtils nop comments only
[CL 30572240 by charles bloom in ue5-main branch]
2024-01-11 13:11:54 -05:00
danny kabrane
a2afea68f3 Fixing MaterialX imports texture with wrong colors, correctly detect gray scale textures in the Texture Pipeline, not in the Translator wrapper.
#jira UE-192576
#rb Alexis.Matte

[CL 30567724 by danny kabrane in ue5-main branch]
2024-01-11 09:49:11 -05:00
charles bloom
995e627555 Remove some calls to FTextureCompilingManager::Get().FinishCompilation
use BlockOnAnyAsyncBuild instead
wrap Texture changes in PreEdit/PostEdit and don't manually call things like Modify and UpdateResource

#rnx

[CL 30332713 by charles bloom in ue5-main branch]
2023-12-14 17:09:25 -05:00
charles bloom
12f93d9fc8 NormalMapIdentification : fix normal map identification that was broken by previous commit
normal map pixels should be interpreted as linear gamma

#rnx

[CL 30325060 by charles bloom in ue5-main branch]
2023-12-14 13:09:01 -05:00
dan thompson
36d57fc3b2 Update normal map detection on import to use a view instead of locking the mips directly.
#jira UE-175149
#rb charles.bloom, fabian.giesen

[CL 30272670 by dan thompson in ue5-main branch]
2023-12-12 14:45:28 -05:00
charles bloom
247df3dd4f Texture add APIs SetModernSettingsForNewOrChangedTexture and BlockOnAnyAsyncBuild
SetModernSettingsForNewOrChangedTexture should be used on newly made or changed textures
BlockOnAnyAsyncBuild instead of directly calling to TextureCompilingManager or Modify
TextureRenderTarget::GetRenderTargetTextureClass
make TextureSource::Init do UseHashAsGuid so it behaves the same as Lock/Unlock

#rb dan.thompson

[CL 30266851 by charles bloom in ue5-main branch]
2023-12-12 12:23:17 -05:00
charles bloom
119e20200d Texture Source resizing followups
ResizeImage support wrap/clamp edge mode on X and Y
ResizeImage fix Pow22 source is SRGB dest
TextureSource resizer detect cases that are poorly handled by TextureCompressorModule and use ResizeImage instead (eg. latlong, stretch)

#rb fabian.giesen

[CL 29923273 by charles bloom in ue5-main branch]
2023-11-24 14:55:47 -05:00
charles bloom
7c4efc11ac TextureAssetAction new action : resize to nearest power of two
#rb fabian.giesen

[CL 29901088 by charles bloom in ue5-main branch]
2023-11-22 18:08:33 -05:00
marc audy
763a611985 Fix C4072 warnings
#rnx

[CL 29852844 by marc audy in ue5-main branch]
2023-11-20 17:26:53 -05:00
charles bloom
40b8177bef TextureAssetActions compress with JPEG action
#rnx

[CL 29833495 by charles bloom in ue5-main branch]
2023-11-18 17:08:36 -05:00
charles bloom
a889cf442a TextureAssetActions UI improvements
fix TextureCube icon being used but doesn't exist
TextureSourceDataUtils no need to use the complicated bulkdata init api, just init from image
verify that Compress is called as expected

#rnx

[CL 29832763 by charles bloom in ue5-main branch]
2023-11-18 14:03:24 -05:00
charles bloom
6973a3f126 TextureAssetActions : fix VT UDIM sizing inconsistency; resize to fit total udim size in threshold
TextureEditor : show udim info in imported size
also treat these actions as a reimport (bump oodle sdk to latest)

#rnx

#rb fabian.giesen

[CL 29816581 by charles bloom in ue5-main branch]
2023-11-17 14:29:41 -05:00
charles bloom
b55836bd5e TextureAssetAction to convert texture source to 8 bit
#jira UE-181912
#rnx
#rb fabian.giesen

[CL 29788580 by charles bloom in ue5-main branch]
2023-11-16 15:36:39 -05:00
charles bloom
4ca0e6ee70 TextureSourceDataUtils : remove unused resizer OneByOne and fix cube map size inconsistency
#rnx

[CL 29600366 by charles bloom in ue5-main branch]
2023-11-09 12:14:53 -05:00
charles bloom
f39cfa239a TextureAssetActions followup cleanups and fixes + enable for cubemaps
Fix some Texture.h functions that should be const

#rb dan.thompson
#rnx

[CL 29577837 by charles bloom in ue5-main branch]
2023-11-08 17:58:55 -05:00
charles bloom
3979c11d90 Asset Action to resize texture sources
shrinks sources above threshold size to make uassets smaller
tries to change LODBias to keep output size the same, but that is in no way guaranteed

#rb dan.thompson
#rnx

[CL 29527423 by charles bloom in ue5-main branch]
2023-11-07 13:52:43 -05:00
charles bloom
e6b557b2d6 fix default texture SRGB setting at import time should be set primarily by TC and only secondarily by the import image SRGB
fixes U16 images coming in with SRGB off, also mixed format udims
SRGB flag on the texture primarily controls the output encoding, which we want to be SRGB for Color

#jira UE-189062
#rnx
#rb fabian.giesen

[CL 29369893 by charles bloom in ue5-main branch]
2023-11-02 12:45:24 -04:00
henrik karlsson
5db685f97d [Engine]
* Moved dllexport from type to methods/staticvar in all Engine runtime code. This improves compile times, memory and performance in dll builds

[CL 26082269 by henrik karlsson in ue5-main branch]
2023-06-17 18:13:06 -04:00
dan thompson
d296cd66f7 PNGDataFill bounds check fix
#jira UE-172834
#rb charles.bloom
#preflight 646d0be01134ffac703c3fce

[CL 25592395 by dan thompson in ue5-main branch]
2023-05-23 18:17:17 -04:00
Chris Babcock
a0bf526232 Fix non-unity issue with TextureImportSettings
#jira none
#review @Charles.Bloom
#rb Charles.Bloom

#preflight

[CL 25507257 by Chris Babcock in ue5-main branch]
2023-05-17 10:45:10 -04:00
charles bloom
0806a94287 TextureImportSettings attempt fix UnrealGame compile
#preflight none
#rb none
#rnx

[CL 25502225 by charles bloom in ue5-main branch]
2023-05-16 21:51:08 -04:00
charles bloom
f260e6f946 ETextureImportPNGInfill option to control when transparent RGB is filled from neighbors
set to Always to get fill into transparent for non-binary transparency case
legacy config setting still respected, but new config supercedes
legacy behavior was to Infill only for binary transparency

#preflight https://horde.devtools.epicgames.com/job/6463e74dd62884a78fd7dad6
#rb jared.adkins,fabian.giesen
#rnx

[CL 25502194 by charles bloom in ue5-main branch]
2023-05-16 21:49:29 -04:00
bryan sefcik
da92084a12 Optimized out more private modules includes and dependencies.
#preflight 64627c382965f6ea8ea83bd6

[CL 25479683 by bryan sefcik in ue5-main branch]
2023-05-15 16:26:12 -04:00