Unsolved Troubles making custom terrain texture

Discussion in 'Mod Support' started by gigawert, Jan 4, 2017.

  1. gigawert

    gigawert
    Expand Collapse

    Joined:
    Sep 6, 2015
    Messages:
    2,028
    upload_2017-1-3_19-36-43.png
    I tried to make a custom terrain texture using the attached DDS, but it looks like the above. Here is my materials.cs entry
    Code:
    new TerrainMaterial()
    {
        internalName = "grass_3";
        diffuseMap = "grass_3.dds";
        diffuseSize = "2";
    };
    
    
    Why can't it just display the texture on the terrain? What is keeping it from doing so?
     

    Attached Files:

  2. Iro

    Iro
    Expand Collapse
    Banned

    Joined:
    Sep 20, 2015
    Messages:
    2,049
    its not there
     
  3. gigawert

    gigawert
    Expand Collapse

    Joined:
    Sep 6, 2015
    Messages:
    2,028
    It's there now.
     
  4. gigawert

    gigawert
    Expand Collapse

    Joined:
    Sep 6, 2015
    Messages:
    2,028
    Does anybody know how to fix this? The default grass texture isn't quite what I want.
     
  5. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,697
    Try messing with this:

    diffuseSize = "2";

    It controls the scale of your texture.
    It looks like it's either too large or too small.
     
    • Informative Informative x 1
  6. gigawert

    gigawert
    Expand Collapse

    Joined:
    Sep 6, 2015
    Messages:
    2,028
    With a diffuse size of 2, nothing's changed. :(

    And if I paint it over a huge area, even with zooming in it's pretty much one big solid color.
     
  7. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,697
    I meant to try other values rather than 2.

    IIRC, 1 is the whole texture having the same size as your terrain (so extra streched).
    Try higher values (512 / 1024 / 2048 etc.
     
  8. gigawert

    gigawert
    Expand Collapse

    Joined:
    Sep 6, 2015
    Messages:
    2,028
    With a diffuse size of 512 now. :confused:

    upload_2017-1-14_15-12-56.png
     
  9. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,697
    Maybe send the whole thing directly?
     
  10. gigawert

    gigawert
    Expand Collapse

    Joined:
    Sep 6, 2015
    Messages:
    2,028
  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