Commit Graph

58 Commits

Author SHA1 Message Date
vedang javdekar
1398c02100 Add support for importing .tx texture file format
- Added overloads for ImageWrappers to add meta information about sub images
- TX images are handled through libTIFF.
- TiffImageWrapper handles more than one directories in the TIFF file

#jira UE-177460
#rb JeanLuc.Corenthin, Julien.StJean

[CL 35836696 by vedang javdekar in ue5-main branch]
2024-08-27 16:34:49 -04:00
marc audy
04c9630365 Static Analysis fixes
[CL 35819311 by marc audy in ue5-main branch]
2024-08-27 01:20:27 -04:00
fabian giesen
f39903ff62 Add an EditorPerProjectUserSettings override for Texture import PNG infill setting
This is so UI artists can set that to "always" for UI work without affecting other users.

#rb Dan.Thompson

[CL 35400087 by fabian giesen in ue5-main branch]
2024-08-08 12:51:43 -04:00
charles bloom
46b4a56790 [resubmit] - 34055347
-----------------------------------------------------------------
Texture: fix many issues with Required Memory Estimate
was wrong for latlong cubes, astc, MaxTextureSize
factor out ComputeLongLatCubemapExtents to remove duplication of cube size logic
fix GetOutputMipInfo was wrong on latlong cubes with pow2 options
fix "VT has blocks with mismatched aspect ratios" warning could be thrown incorrectly on non-VT non-UDIM textures with "resize to specific" set

[CL 34055640 by charles bloom in ue5-main branch]
2024-06-01 13:50:31 -04:00
charles bloom
95f0221000 [Backout] - CL34055347
due to "Non-editor build cannot depend on non-redistributable modules"
Original CL Desc
-----------------------------------------------------------------
Texture: fix many issues with Required Memory Estimate
was wrong for latlong cubes, astc, MaxTextureSize
factor out ComputeLongLatCubemapExtents to remove duplication of cube size logic
fix GetOutputMipInfo was wrong on latlong cubes with pow2 options
fix "VT has blocks with mismatched aspect ratios" warning could be thrown incorrectly on non-VT non-UDIM textures with "resize to specific" set

[CL 34055403 by charles bloom in ue5-main branch]
2024-06-01 12:44:02 -04:00
charles bloom
997f000523 Texture: fix many issues with Required Memory Estimate
was wrong for latlong cubes, astc, MaxTextureSize
factor out ComputeLongLatCubemapExtents to remove duplication of cube size logic
fix GetOutputMipInfo was wrong on latlong cubes with pow2 options
fix "VT has blocks with mismatched aspect ratios" warning could be thrown incorrectly on non-VT non-UDIM textures with "resize to specific" set

[CL 34055348 by charles bloom in ue5-main branch]
2024-06-01 12:31:02 -04:00
charles bloom
16985b8cd1 Fix crash when a texture with layers is used in a project with VT disabled
add new functions to ask texture if VT is required to build
RequiresVirtualTexturing
IsVirtualTexturingEnabled
CanBuildPlatformData
use CanBuildPlatformData instead of Source.IsValid()

#jira UE-213604
[FYI] jeremy.moore

[CL 33783563 by charles bloom in ue5-main branch]
2024-05-20 19:19:10 -04:00
charles bloom
0e04222a8e [resubmit] TextureImportSettings AutoLimitDimension option to resize textures on import to limit texture source sizes
#rb dan.thompson

[CL 33518451 by charles bloom in ue5-main branch]
2024-05-08 13:11:44 -04:00
charles bloom
94a3c97753 [Backout] - CL33514434
[FYI] charles.bloom
Original CL Desc
-----------------------------------------------------------------
TextureImportSettings AutoLimitDimension option to resize textures on import to limit texture source sizes
#rb dan.thompson

[CL 33515162 by charles bloom in ue5-main branch]
2024-05-08 11:38:02 -04:00
charles bloom
fe12837fe8 TextureImportSettings AutoLimitDimension option to resize textures on import to limit texture source sizes
#rb dan.thompson

[CL 33514513 by charles bloom in ue5-main branch]
2024-05-08 11:21:06 -04:00
charles bloom
6dd790cfd6 Factoring out duplicated ShouldTextureBeVirtualByAutoImportSize logic in texture import code
#rb fabian.giesen

[CL 33215561 by charles bloom in ue5-main branch]
2024-04-24 18:10:48 -04:00
charles bloom
23b458558b undo copy-paste duplication of Texture IsImportResolutionValid
#rb fabian.giesen

[CL 33175138 by charles bloom in ue5-main branch]
2024-04-23 14:30:27 -04:00
charles bloom
bd1b778fc0 UDIM index Parser : fix previous restriction to max Y of 9 is too conservative, increase to max Y of 90
[CL 32003077 by charles bloom in ue5-main branch]
2024-03-04 17:32:59 -05:00
charles bloom
f1793df3f5 fix UDIM parser incorrectly treating large numbers like 4096 as UDIM which then led to hard crashes making VT with too many pixels
UDIM valid range is 1001 to 1100 only
#rb fabian.giesen, Julien.StJean

[CL 31813679 by charles bloom in ue5-main branch]
2024-02-26 14:57:44 -05:00
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