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

    Joined:
    Jul 10, 2020
    Messages:
    4,312
    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,296
    Could you attach the log? :)
     
  3. Agent_Y

    Agent_Y
    Expand Collapse

    Joined:
    Jul 10, 2020
    Messages:
    4,312
     

    Attached Files:

    • Like Like x 1
  4. Agent_Y

    Agent_Y
    Expand Collapse

    Joined:
    Jul 10, 2020
    Messages:
    4,312
    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,296
    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

    Joined:
    Jul 10, 2020
    Messages:
    4,312
    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,296
    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

    Joined:
    Jul 10, 2020
    Messages:
    4,312
    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,296
    No issue here.
    upload_2021-7-2_11-7-14.png
     
  10. Agent_Y

    Agent_Y
    Expand Collapse

    Joined:
    Jul 10, 2020
    Messages:
    4,312
    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,786
    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,296
    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,786
    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:
    346
    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.
     
  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