Solved mixing properties of different terrain material types

Discussion in 'Mod Support' started by 0rangeGhost, Jun 13, 2019.

  1. 0rangeGhost

    0rangeGhost
    Expand Collapse

    Joined:
    Oct 17, 2014
    Messages:
    112
    hello! i'm making a map with a figure-8-like race track that supposed to be driven by AI, i just like to spectate how AI drives around and crashes on intersections. i want it look like it's grass/dirt, but AI can't drive a bit powerful RWD cars on grass terrain, they are veering their ass on whole width of road even if it's stright, and often they spun. and as more powerful the car, as worse situation becomes. AI just can't get decent speed before intersection to crash into another car that can't get speed too.
    so, here is the thing that i want - make terrain look like grass and have a grip like a tarmac, also i want particles thrown from wheels to be dirt. is it possible to make?
    i don't want it to be realistic, i want it to be fun and spectacular
     
  2. Gamergull

    Gamergull
    Expand Collapse
    BeamNG Team

    Joined:
    Jun 3, 2018
    Messages:
    460
    You can add custom groundmodels to make this work; see this thread: https://www.beamng.com/threads/groundmodel-properties.24270/

    In your myGroundModels.json, the name (or one of the aliases) should match the texture that you're trying to modify; open art/textures/materials.cs in your map files, and edit the internalName of the texture that you want so it matches the name or alias in myGroundModels.json. If I'm not mistaken, "collisiontype": "DIRT", will give you the dirt effect. I actually haven't tried all this myself, but it sounds right.
     
  3. 0rangeGhost

    0rangeGhost
    Expand Collapse

    Joined:
    Oct 17, 2014
    Messages:
    112
    i don't have MyGroundModels.json, nor folder called textures, i can't find them even in other maps default or mod. the example file you gave me a link has only "goo" properties, where i can find other terrain properties and collisiontypes?

    i created a folder and put that myGroundModels.json in it, so now i have a terrain with "goo" properties, and if i change "aliases" - it will have texture of that terrain.

    also the particles part question is still here. i meant to say i want particles to be from mud.
     
  4. Gamergull

    Gamergull
    Expand Collapse
    BeamNG Team

    Joined:
    Jun 3, 2018
    Messages:
    460
    Oops, mistake. It's art/terrains/materials.cs; I got the words confused. As for myGroundModels.json, make sure it gets saved in levels/yourLevel/groundmodels. You can modify it by copying info from the main groundmodels.json file, found in C:/Program Files/Steam/steamapps/common/BeamNG.drive/gameengine.zip/art (yes, it's in the zipped archive; copy and paste out that file if you want to).

    Also, it looks like "collisiontype": "MUD", is possible, so if you piece it all together, it should work.
     
  5. 0rangeGhost

    0rangeGhost
    Expand Collapse

    Joined:
    Oct 17, 2014
    Messages:
    112
    thank you very much, that's exactly what i need
     
    #5 0rangeGhost, Jun 17, 2019
    Last edited: Jun 18, 2019
  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