Author Topic: Applying lines to asphalt texture  (Read 1273 times)

2019-01-23, 00:14:09

John.McWaters

  • Active Users
  • **
  • Posts: 292
    • View Profile
    • JohnMcWaters.com
I have an asphalt texture that I applied to a road. I also have a white-line texture that I want to apply on top of the asphalt texture (I have an alpha mask for the white-line texture too). The white line texture map is long and skinny and a different proportion than the asphalt texture.

I would like to know the best way to do this. Before, I would cut a strip out of my mesh and apply the stripe texture to the strip, but I hope there's a clever way to use the Corona Layered Material to apply the stripe on top of the road.

As a bonus, if I only want to put stripes on the sides of the road, is there a way I can control the tiling so I don't have stripes where I don't want them?

2019-01-23, 08:01:05
Reply #1

Nejc Kilar

  • Corona Team
  • Active Users
  • ****
  • Posts: 1335
    • View Profile
    • My personal website
Use the layered material.

The base layer is the asphalt, the coat is the white line. Use a mask texture (you can probably derive it from the line texture) with a different ID Map value and then put another UVW Map modifier in the mesh modifier stack with a matching ID. You can then manipulate that UVW Map modifier to get the lines to be the right thickness and position by adjusting the gizmo and its settings.
Nejc Kilar | chaos-corona.com
Educational Content Creator | contact us

2019-01-23, 22:31:37
Reply #2

dj_buckley

  • Active Users
  • **
  • Posts: 1058
    • View Profile
I have an asphalt texture that I applied to a road. I also have a white-line texture that I want to apply on top of the asphalt texture (I have an alpha mask for the white-line texture too). The white line texture map is long and skinny and a different proportion than the asphalt texture.

I would like to know the best way to do this. Before, I would cut a strip out of my mesh and apply the stripe texture to the strip, but I hope there's a clever way to use the Corona Layered Material to apply the stripe on top of the road.

As a bonus, if I only want to put stripes on the sides of the road, is there a way I can control the tiling so I don't have stripes where I don't want them?

Here you go http://bertrand-benoit.com/blog/nakagin-photoreal-road-tutorial/