Texture Cooker (in-game PNG to DDS converter)

Discussion in 'Content Creation' started by Nadeox1, Apr 17, 2021.

  1. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,056
    Trying to cook a skin for the T-Series causes fatal GPU errors for me about 60% of the time I try this. The game crashes and sometimes it generates a working dds file and sometimes not. Only happens on the T-Series, no other vehicle. The H-Series takes like a minute but doesn't crash the game.
     
  2. Car_Killer

    Car_Killer
    Expand Collapse
    QA / Mod Support
    BeamNG Team

    Joined:
    Sep 24, 2013
    Messages:
    1,534
    Could you attach the log? :)
     
  3. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,056
     

    Attached Files:

    • Like Like x 1
  4. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,056
    The update hasn't solved the issue. Furthermore it now happens on the I-Series as well. Might have to do with the fact that it's cooking the same texture for 2 different parts (in case of the T-Series it's for the main body and sleeper cab, for I-Series it's body and race parts).
     
  5. Car_Killer

    Car_Killer
    Expand Collapse
    QA / Mod Support
    BeamNG Team

    Joined:
    Sep 24, 2013
    Messages:
    1,534
    So far we are unable to reproduce the issue, could you maybe DM me the textures / whole mod to test it on my side?
     
  6. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,056
    It's not possible to DM files I think, but I can attach the semi skin here, with the materials (not yet converted to PBR)
     

    Attached Files:

    • Like Like x 1
  7. Car_Killer

    Car_Killer
    Expand Collapse
    QA / Mod Support
    BeamNG Team

    Joined:
    Sep 24, 2013
    Messages:
    1,534
    This texture is a DDS file, and it doesn't need to be cooked? Are you sure you've attached proper files?
     
  8. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,056
    Oh right, wrong file, because I forgot the conversion ultimately succeeded and I changed it in the mod. Here is old version of the skin, could have the same issues, the new one I deleted. In the materials it should point to png but maybe I changed it later, I don't remember.
     

    Attached Files:

    • semi_skin_petrolhead.png
    • Like Like x 1
  9. Car_Killer

    Car_Killer
    Expand Collapse
    QA / Mod Support
    BeamNG Team

    Joined:
    Sep 24, 2013
    Messages:
    1,534
    No issue here.
    upload_2021-7-2_11-7-14.png
     
  10. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,056
    Then it just might be my trash GPU again. I might need a new one.
     
  11. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,782
    I export static object and PNG textures, cooker did make new textures when I imported object.

    After that I did add LOD and colmesh to mesh, created new additional png texture for lod mesh, however cooker is not creating DDS texture.
    I did create new material trough material editor as material was not automatically added.

    Is this same as with creating main.materials.json that it works only on 1st import and to be able to do it again?

    There is no way to tell cooker manually to do it again?
     
  12. Car_Killer

    Car_Killer
    Expand Collapse
    QA / Mod Support
    BeamNG Team

    Joined:
    Sep 24, 2013
    Messages:
    1,534
    Your description seems to be related to the issue that we have with our FS notification. Game often ignores changes to files and only workaround is restarting it for now.
     
  13. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,782
    Sadly even restarting is not making .dds version appear in temp, but maybe clearing associated files and folders from temp and removing main.materials.json would make it happen, might try that next.

    Also when creating material and assigning mapping, there still remains No material until restart of level, although better restart whole game as exiting to main menu and loading back to level I have managed to crash the game several times, required step is to add said static object and save level, so when level loads there is that new static object to be loaded, with one png texture as it was not converted to .dds.

    Something of that nature makes it crash, but haven't found exact way yet.

    It is great when asset reloading works like in Godot or in Unity, where indeed changes to assets are making re-import to happen. Like adding new .dae would then migrate new lines to main.materials.json of that folder, interesting to see what will be end result when issues are sorted out :)
     
  14. Artistterrymartin

    Artistterrymartin
    Expand Collapse

    Joined:
    May 5, 2019
    Messages:
    710
    I know for me my game would crash if I try to load a texture cooker dds converted png prior to this recent update in the material editor. I just manually create them in Gimp instead of fooling with it. Have not tried to see if it still does it since update.
     
  15. RiChuF

    RiChuF
    Expand Collapse

    Joined:
    Jan 21, 2022
    Messages:
    71
    hello
    just a quick question
    i am trying to change billboards to my own on west coast map
    but i dont know what setting to save the dds file as
    upload_2022-7-22_23-27-37.png
    or is it not as simple as replacing existing files
     
  16. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,056
    Did you not read the thread you posted in? You save them as PNG and the game converts them to DDS automatically
     
    • Agree Agree x 1
  17. RiChuF

    RiChuF
    Expand Collapse

    Joined:
    Jan 21, 2022
    Messages:
    71
    yeah i realised that after and forgot to delete my post
    sorry me big dumb dumb
     
    • Like Like x 1
  18. brunifdez

    brunifdez
    Expand Collapse

    Joined:
    Nov 8, 2023
    Messages:
    29
    Hey! I was just wondering if this feature is still viable and if we should keep using it or just keep using png image formats without converting them?
    Thanks in advance!
     
  19. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,056
    Yes you should keep using it. Please don't include png files in mods, only include the dds files created by this tool.
     
  20. brunifdez

    brunifdez
    Expand Collapse

    Joined:
    Nov 8, 2023
    Messages:
    29
    Oh I was just curious as in some maps like italy there are quite many png textures being used without the texture cooker naming
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice