road lines DECAL?

Discussion in 'Track Modding' started by PatientRF2fan, May 7, 2021.

  1. PatientRF2fan

    PatientRF2fan Registered

    Joined:
    Aug 30, 2020
    Messages:
    297
    Likes Received:
    513
    Sorry for posting so many questions lately. I do search and experiment first.

    I plan to use mario tools and spline road lines.
    I also want to feel them on the surface so drive and collision plus tdf will be accounted for.

    What does Decal do? How does it change anything when exporting?
     
  2. Woodee

    Woodee Registered

    Joined:
    Oct 4, 2010
    Messages:
    4,004
    Likes Received:
    1,058
    Decal just means you don't get any "z fighting" when the object is placed just above the road surface I believe.
     
  3. Alex Sawczuk

    Alex Sawczuk Administrator Staff Member

    Joined:
    Oct 4, 2010
    Messages:
    851
    Likes Received:
    971
    you don't need to use decal any more, z fighting shouldn't generally occur.
     
    PatientRF2fan, philrob and lagg like this.
  4. Woodee

    Woodee Registered

    Joined:
    Oct 4, 2010
    Messages:
    4,004
    Likes Received:
    1,058
    Should lines be given real road shader? If they are placed 2 mm above road surface they should be ok as just a race surface?
     
  5. PatientRF2fan

    PatientRF2fan Registered

    Joined:
    Aug 30, 2020
    Messages:
    297
    Likes Received:
    513
    Good question, I often thought that. more mapping fun though! lol
     
  6. Coutie

    Coutie Moderator Staff Member

    Joined:
    Oct 5, 2010
    Messages:
    3,779
    Likes Received:
    2,241
    No, because you need the alpha channel for transparency. I guess if you don't need that then you can do it.
     
  7. Woodee

    Woodee Registered

    Joined:
    Oct 4, 2010
    Messages:
    4,004
    Likes Received:
    1,058
    So white lines would not collect rubber at all then?
     
    lagg likes this.
  8. Coutie

    Coutie Moderator Staff Member

    Joined:
    Oct 5, 2010
    Messages:
    3,779
    Likes Received:
    2,241
    No, but you could have a white line texture with rubber on it already that you could use in certain places.
     
    PatientRF2fan likes this.
  9. woochoo

    woochoo Registered

    Joined:
    Nov 3, 2010
    Messages:
    1,339
    Likes Received:
    3,112
    Matsusaka and Le Grand Circuit have real-road painted lines. As mentioned they don't have transparency, so the meshes are cut to size.
    They also get the wet reflections, as well as the rubber/marbles. I wish real-road paint was standard on all tracks, but there might be good reasons why it's not.
    Longford does have rr paint decals for the lines that aren't baked into the main textures (way old-style!)

    Interested to know how/why z-fighting shouldn't happen anymore. Sounds delightful!
     
    Last edited: May 10, 2021
  10. lagg

    lagg Registered

    Joined:
    Oct 1, 2012
    Messages:
    3,043
    Likes Received:
    1,958
    Could be that in the cases that the lines have real road, the lines aren't decals?
    IIRC, what we did in some ocasions was to cut the asphalt below the lines and put the lines at the same hight than the ground.
    And put the Realroad Shader and material to the lines, with a different grip in dry and wet, than the asphalt.
    Then, the rubber is shown on the lines
     
  11. woochoo

    woochoo Registered

    Joined:
    Nov 3, 2010
    Messages:
    1,339
    Likes Received:
    3,112
    Matsusaka and Le Grand Circuit are real-road decals, rather than cut road mesh. It works as expected, but without transparency ability. Matching tarmac tones in the paint texture does a good enough job to be able to do without transparency. Good enough for me if the upshot is rubber and wet effects. No info on performance difference.

    Some tracks have that thick paint that you might see on a highway, and some use spray which is a much thinner coat. So yeah, some lines you would feel, others not so much. Perhaps a negative tdf height offset could be used to simulate a thin spray line. Presumably the offset would be -0.002 if the decal's height from the surface was 0.002. Or an offset of -0.0015 or -0.001 etc if it's more satisfying to have the slight bump.
     
    lagg likes this.
  12. PatientRF2fan

    PatientRF2fan Registered

    Joined:
    Aug 30, 2020
    Messages:
    297
    Likes Received:
    513
    WHAT IS THE BEST WORKFLOW ORDER?
    Track and racesurface mapping is done
    Lines then bumps?
    I know I can group lines when making bumps so the somewhat move with the track
    Not sure I can conform the lines to the bumps after????
     
  13. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,345
    Likes Received:
    6,572
    Just an off-topic note for the attentive reader: the wet= tdf parameter is no longer used. Surface roughness determines wet grip (in theory).
     
    lagg likes this.
  14. lagg

    lagg Registered

    Joined:
    Oct 1, 2012
    Messages:
    3,043
    Likes Received:
    1,958
    Good to know. THX
     
  15. Coutie

    Coutie Moderator Staff Member

    Joined:
    Oct 5, 2010
    Messages:
    3,779
    Likes Received:
    2,241
    Bumps, then lines.
     
  16. PatientRF2fan

    PatientRF2fan Registered

    Joined:
    Aug 30, 2020
    Messages:
    297
    Likes Received:
    513
    Fantastic, thanks for responding. Figured out conforming lines last night with mmtools. I was stuck on that for a little while.
     

Share This Page