Upliner / CharMorph

Other
305 stars 14 forks source link

UDIM Support #29

Open Hopefullyidontgetbanned opened 2 months ago

Hopefullyidontgetbanned commented 2 months ago

Currently Charmorph only imports the first tile of each UDIM texture set adding the rest should be as simple as the code that @Sirmaxim provided on Discord: bpy.data.images["basecolor0001.png"].source = 'TILED' Considering that UDIM has been VFX Industry Standard for over a decade and is starting be used in Video Games, I believe support is necessary, especially as Vitruvian is currently using it.

Upliner commented 1 month ago

OK, here is the initial support. I pushed experimental Antonia UDIM branch: https://github.com/Upliner/CharMorph-db/tree/antonia-udim In current implementation all UDIM textures must be explicitly specified in settings.yaml: https://github.com/Upliner/CharMorph-db/blob/antonia-udim/characters/antonia/textures/settings.yaml In general UDIMs are just like other textues: udim

Please let me know if it all works for you.

animate1978 commented 1 month ago

UDIM in Antonia does function as desired.

Well done!

Hopefullyidontgetbanned commented 1 month ago

In current implementation all UDIM textures must be explicitly specified in settings.yaml:

I can confirm it works but why is it required for UDIM? I was under the assumption that it only exists to configure color spaces for textures, but if you're doing everything with Linear textures that isn't really a concern since you can just use "*": Linear for non UDIM textures. Still it works so it's just more of an inconvenience than anything.