[MODKIT Issue] Cooking diffuse texture misses alpha – RED support welcome
Hey everyone,
So, I’m having a rather big issue with importing and then cooking & packing a simple diffuse texture using the newest version of ModKit.
The specific texture I’m using atm can be found at “Uncooked\fx\textures\smoke\smoke_03.xbm” and is a simple diffuse texture for which there exist no additional normal map or specular map.
Whenever I export to .tga, then import to .xbm and then cook and pack this original, completely unaltered texture, it seems to lose its alpha channel.
Please have a look at the following two short videos:
Also when comparing my imported .xbm with the original .xbm in the folder “…Uncooked\fx\textures\smoke\smoke_03.xbm” my imported one is almost 3,5 times the size of the “original .xbm” (1196 kB vs 344 kB).
This difference is further confirmed when comparing both .xbm files in the unofficial Mod Editor by fellow community member Sarcen (http://forums.cdprojektred.com/threads/58546-Mod-editor)
The "original .xbm" from the game's "Uncooked" folder is on the left and the one I imported from .tga to .xbm is on the right. Again the .tga has never been modified and not even been opened in any image processing software.
The most striking differences are certainly:
Also here are the steps in detail to reproduce this behavior using the most recent version of ModKit:
I’m really sort of lost now that even an unaltered, original texture poses such problems.
Could anyone provide me some assistance on this topic? Maybe (and hopefully) I just missed something and thus I would gladly take any advice.
Vinthir , you proved to be extremely helpful on mod related problems in the past. Do you have any ideas or thoughts about this?
Benzenzimmern , as a former modder and experienced in skybox assets for The Witcher 2 (loved your tutorial videos ), might you be able to help?
Marcin Momot , as being the community’s primary contact could you ask around?
Jose Teixeira, (sorry I don’t know your forum account name), you are one of the leading experts on particle development in The Witcher 3, if I’m not mistaken? Could you probably have any hints?
Obviously, if any of our fellow modders here have come across (and maybe solved?) a similar problem, I’d be glad for any advice. Maybe you, HalkHoganPL ?
Also, is there any additional info I could provide? Like, for example, my batch files, both .xbm files? (if it’s fine with legal regulations/copyright?) or ModKit logs? Anything else, that might help us in tracking down the root cause?
Finally, a question for our mods: Should I file a support ticket including all of this (and probably more?) info? If so, could you kindly provide me with a link/email address?
Thank you all for taking your time to read through all of this and I really hope we can solve this together!
Hey everyone,
So, I’m having a rather big issue with importing and then cooking & packing a simple diffuse texture using the newest version of ModKit.
The specific texture I’m using atm can be found at “Uncooked\fx\textures\smoke\smoke_03.xbm” and is a simple diffuse texture for which there exist no additional normal map or specular map.
Whenever I export to .tga, then import to .xbm and then cook and pack this original, completely unaltered texture, it seems to lose its alpha channel.
Please have a look at the following two short videos:
- Unmodded game, using original texture: [video]https://streamable.com/f9un[/video]
- Original, unaltered texture after exporting to .tga, importing to xbm and cooking and packing: [video]https://streamable.com/pysz[/video]
Also when comparing my imported .xbm with the original .xbm in the folder “…Uncooked\fx\textures\smoke\smoke_03.xbm” my imported one is almost 3,5 times the size of the “original .xbm” (1196 kB vs 344 kB).
This difference is further confirmed when comparing both .xbm files in the unofficial Mod Editor by fellow community member Sarcen (http://forums.cdprojektred.com/threads/58546-Mod-editor)
The "original .xbm" from the game's "Uncooked" folder is on the left and the one I imported from .tga to .xbm is on the right. Again the .tga has never been modified and not even been opened in any image processing software.
The most striking differences are certainly:
- My imported .xbm has a value of "compression = TCM_DXTNoAlpha" vs the original ""compression = TCM_DXTAlpha"" -> seems to confirm missing alpha info
- And "textureGroup = WorldDiffuse" for my imported .xbm, while for the original it is "textureGroup = Particles" which makes much more sense, as this is actually a texture for a particle effect.
- Furthermore there's the additional reference to a "CSourceTexture" which does not exist (?) for the "original .xbm"
Also here are the steps in detail to reproduce this behavior using the most recent version of ModKit:
- Export “Uncooked\fx\textures\smoke\smoke_03.xbm” to “…\MyMods\Smoke\Raw\smoke_03.tga”
- Import “…\MyMods\Smoke\Raw\smoke_03.tga” to “…MyMods\Smoke\Uncooked\fx\textures\smoke_03.x bm”
- Cook and pack
- Cook “…MyMods\Smoke\Uncooked\” to “…MyMods\Smoke\Cooked\” -> cook.db
- Buildcache textures using cook.db to “…MyMods\Smoke\Packed\modSmoke\content” -> texture.cache
- Pack from “…MyMods\Smoke\Cooked\” to “…MyMods\Smoke\Packed\modSmoke\content”
- Metadatabase store to “…MyMods\Smoke\Packed\modSmoke\content”
I’m really sort of lost now that even an unaltered, original texture poses such problems.
Could anyone provide me some assistance on this topic? Maybe (and hopefully) I just missed something and thus I would gladly take any advice.
Vinthir , you proved to be extremely helpful on mod related problems in the past. Do you have any ideas or thoughts about this?
Benzenzimmern , as a former modder and experienced in skybox assets for The Witcher 2 (loved your tutorial videos ), might you be able to help?
Marcin Momot , as being the community’s primary contact could you ask around?
Jose Teixeira, (sorry I don’t know your forum account name), you are one of the leading experts on particle development in The Witcher 3, if I’m not mistaken? Could you probably have any hints?
Obviously, if any of our fellow modders here have come across (and maybe solved?) a similar problem, I’d be glad for any advice. Maybe you, HalkHoganPL ?
Also, is there any additional info I could provide? Like, for example, my batch files, both .xbm files? (if it’s fine with legal regulations/copyright?) or ModKit logs? Anything else, that might help us in tracking down the root cause?
Finally, a question for our mods: Should I file a support ticket including all of this (and probably more?) info? If so, could you kindly provide me with a link/email address?
Thank you all for taking your time to read through all of this and I really hope we can solve this together!
Attachments
Last edited: