1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.35 Bug Reporting thread
    Solutions and more information may already be available.

Texture problem returning even after cache clearing

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by Murokmakto, Dec 24, 2023.

  1. Murokmakto

    Murokmakto
    Expand Collapse

    Joined:
    Dec 24, 2023
    Messages:
    238
    Hello, the following problem keeps returning to my game:
    20231224203948_1.jpg
    Happens to a lot of objects made from metal, roofs, walls etc... When I deep clean the cache and start the game, the problem is gone. However... after 1 or 2 restarts it creeps back?! I removed all mods, so this can be ruled out. What could be the problem? Or should I just reinstall the game and hope that fixes it?
     
  2. SSRG

    SSRG
    Expand Collapse

    Joined:
    Jun 17, 2023
    Messages:
    4,332
    Does this problem happen in Safe Mode?
     
  3. Murokmakto

    Murokmakto
    Expand Collapse

    Joined:
    Dec 24, 2023
    Messages:
    238
    No in Safe Mode the texture is fine ...

    So apparently it must have something to do with the fact that I copied all assets from the Vanilla Industrial map over to a custom map I am trying to make. When I start the game and open up the Vanilla map, the textures are fine, when I open my map project and then return to the vanilla map, the textures look like above. However I did not change a thing to the Vanilla map (which also wouldn´t make any sense since the textures are working fine when starting the map first).
     
  4. ltntai

    ltntai
    Expand Collapse

    Joined:
    Mar 18, 2017
    Messages:
    664
    • Like Like x 1
  5. Murokmakto

    Murokmakto
    Expand Collapse

    Joined:
    Dec 24, 2023
    Messages:
    238
  6. Murokmakto

    Murokmakto
    Expand Collapse

    Joined:
    Dec 24, 2023
    Messages:
    238
    This problem still haunts all my custom maps. I found something but I don´t understand it, maybe someone knows better...?

    This is how it looks like when I start my game and open up a custom map:
    20240605113226_1.jpg

    When I change the Reflection mode setting to "none" it is fixed. But only for the session.
    20240605113233_1.jpg

    When I restart the game the setting is back to "Cubemap" even though I saved the material.

    Does anyone have an idea what could be done?
     
  7. AlexKidd71

    AlexKidd71
    Expand Collapse

    Joined:
    Mar 16, 2022
    Messages:
    492
    Perhaps you should copy the cube map textures too? I can have a look if I have them from older versions of the game. Before an BeamNG update I copy all the old level files to a backup folder.
     
    • Like Like x 1
  8. Murokmakto

    Murokmakto
    Expand Collapse

    Joined:
    Dec 24, 2023
    Messages:
    238
    The main.materials.json file the "si_metal_roof" texture relates to is not located in folder of my custom map but is located at ProgramFiles(x86)>Steam>Steamapps>common>BeamNGdrive>content>art_shapes.zip . This is default for the material on all maps (vanilla and custom) and cannot be changed afaik. Also I cannot change the json file the material relates to since the material has the same name.

    My initial idea was to create a new material for the affected assets to replace this. But I think this is not possible since the material names are somehow baked into the .dae file and cannot really be changed afterwards (or am I wrong with this assumption?)

    Another thing is that within the said art_shapes.zip>main.materials.json, this is the text of the affected material:

    "si_metal_roof": {
    "name": "si_metal_roof",
    "mapTo": "si_metal_roof",
    "class": "Material",
    "persistentId": "a7736816-5090-4656-846b-64d134bc88d9",
    "Stages": [
    {
    "colorMap": "/art/shapes/objects/si_metal_roof_d.color.png",
    "diffuseColor": [
    0.988235354,
    0.988235354,
    0.988235354,
    1
    ],
    "normalMap": "/art/shapes/objects/si_metal_roof_nm.normal.png",
    "overlayMap": "/art/shapes/objects/utah_breakup_texture.dds",
    "pixelSpecular": true,
    "roughnessFactor": 0.407999992,
    "specularMap": "/art/shapes/objects/si_metal_roof_s.color.png",
    "useAnisotropic": true,
    "vertColor": true

    Nowhere there it says anything about the cubemap or reflectionmode. Is this stored somewhere else?


    I´d like to tell my game that the si_metal_roof material relates to a different .json file than the one outside of my map folder. I don´t know how to do that since when I change it and restart my game its back to default again and the changes are forgotten...
     
    #8 Murokmakto, Jun 5, 2024
    Last edited: Jun 5, 2024
  9. AlexKidd71

    AlexKidd71
    Expand Collapse

    Joined:
    Mar 16, 2022
    Messages:
    492
    You can either replace the material name in the dae with find and replace in a text editor or load it in blender and change the material name there. DAE is just a XML file.

    don’t forget to restart BeamNG after changing materials.
     
    • Like Like x 1
  10. Murokmakto

    Murokmakto
    Expand Collapse

    Joined:
    Dec 24, 2023
    Messages:
    238
    good idea, that actually worked. I created a new material and replaced all si_metal_roof with the new material. Problem solved.

    I still wonder why it happens. On some maps it does not exist although I used the exact same workflow to copy assets from other maps.
     
    • Like Like x 1
  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