Commit Graph

52 Commits

Author SHA1 Message Date
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
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