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.32 Bug Reporting thread
    Solutions and more information may already be available.

Load and scale a .jpeg within the game

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by siranto, Sep 3, 2019.

  1. siranto

    siranto
    Expand Collapse

    Joined:
    Aug 9, 2019
    Messages:
    16
    Good Morning, i've already done a similar question but i'm still confused, I would load within the editor a jpeg and use it as terrain, after that I would scale it as it is possible to do in Google Maps, is it possible?
     

    Attached Files:

    • maptoload.png
  2. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,686
    It's not recommended to use these formats (.PNG /.JPG / etc) as textures, as they are not memory friendly.
    Please always prefer .DDS for textures.

    And yes, if you use that texture as a 'Terrain Paint' texture, you can adjust the scale within the "Terrain Material" menu.
    https://torque-3d.readthedocs.io/en/latest/world/terrainpainter.html
     
  3. siranto

    siranto
    Expand Collapse

    Joined:
    Aug 9, 2019
    Messages:
    16
    Thank you so much, I'll try to do that!
    --- Post updated ---
    Ok, i tried to import the jpg but i obtain a blank texture, that I wish to do is something as in the ortophoto, using it as background
     

    Attached Files:

    • Immagine.png
  4. siranto

    siranto
    Expand Collapse

    Joined:
    Aug 9, 2019
    Messages:
    16
    Ok, I've got a terrain as I wanted through replacing the .dds in art folder of the map and modifying the main.material.json (detail map), now, how to set the scale of map?

    I've got the terrain also substituting the color map in the main folder of the map, I've seen that in the .json file there is an option that speaks about scale, is what I'm searching for?
     
  5. siranto

    siranto
    Expand Collapse

    Joined:
    Aug 9, 2019
    Messages:
    16
    Hi, i've managed to substitute the terrain of the groundplane and set my .jpg, now i want to set the scale, what ScaleU and ScaleV talk about of?
     

    Attached Files:

    • domandascala.png
  6. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,686
    That's the UVMap scale.
    Ie. how the texture is mapped to your plane.

    Scale of 1 means the UVMap will match the groundplane scale (ie. texture will be stretched to the plane size)
    Scale of 4 means the UVMap is 4 times bigger (ie. the texture will be repeated 4 times on the plane size)

    And so on
     
  7. siranto

    siranto
    Expand Collapse

    Joined:
    Aug 9, 2019
    Messages:
    16
    Perfect, it's what i wanted to know. Thank you so much.
    Now i had another problem, when I create the terrain, and then i reload the map, the car falls down until it crash on the terrain, how can i set the position? I've tried to set Z to 0 but the terrain that i've got is up the groundplane. I want that GroundPlane and Terrain fit together.
     
    #7 siranto, Sep 16, 2019
    Last edited: Sep 16, 2019
  8. siranto

    siranto
    Expand Collapse

    Joined:
    Aug 9, 2019
    Messages:
    16
    I've solved! Thanks anyway! I've modified the maxHeight and the Z parameter of the terrain, the first must be0.25, the second -0.25. The settings like that works.
     
  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