Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

texture of a curving road?

Discussion in 'General Graphics' started by thehappyunicorn, Jan 3, 2015.

  1. thehappyunicorn

    thehappyunicorn

    Joined:
    Jan 3, 2015
    Posts:
    8
    Hello,
    i'm making a horse racing game, the problem is that the texture of the tracks has lanes and when the curve of the track comes, the lanes do not turn along with the track, instead they keep going straight. I think the problem is that it is all one piece, but even with multiple pieces how can i make it curve... The mesh of the track was made with blender.

    Any help would be appreciated :D
    upload_2015-1-3_0-23-58.png
    This is an image of the issue.
     
    Last edited: Jan 3, 2015
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,398
    You'd need to UV map the track pieces properly. If you're not familiar with UV mapping, there's like a million tutorials that will help get you started.

    --Eric
     
  3. thehappyunicorn

    thehappyunicorn

    Joined:
    Jan 3, 2015
    Posts:
    8
    is there any other solution to do this, i have never used blender before other than for this track, and my attempts at uv mapping it didnt go so great.
     
  4. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,398
    No other solution; you just need to learn how to UV map objects if you're going to do 3D.

    --Eric
     
  5. theANMATOR2b

    theANMATOR2b

    Joined:
    Jul 12, 2014
    Posts:
    7,790

    This is actually the most basic kind of UV mapping also. It will be a planar map which projects the texture you have as a plane. You should be able to do this to the entire track as one piece or if you want to have the track modular planar map the straight sections then planar map the other sections as curved pieces. Eric5h5 is correct about the number of tutorials online - this is an hour task for a beginner from start to finish.

    Post another picture once you've got it.
     
  6. mdyusuf

    mdyusuf

    Joined:
    Dec 18, 2014
    Posts:
    8
    At first you curved UV mapping. When you start that looking good. Listen, I'm also a beginner, but I am making a one game.