Home Technical Talk

Racing track texruring for gaming

polycounter lvl 12
Offline / Send Message
shapeupanim polycounter lvl 12
Hi,

I am doing a car racing game (using Unity game engine for iOS), in which i am using 'Decal' shader (having 2 channels -- Base and Decal), to achieve an effect of skid marks on the race track.

But what i am getting is that the skid marks are appearing all over the track instead of certain desirable sections of road.

What do I require?
I am looking for an effect of skid marks randomly appearing especially at turns.

Please help me with proper shader if 'Decal' is not the right one for my case.

Reference images:
1. Effect achieved:

achieved.jpg

2. Effect required:

58067830461b506a2a96b.jpg

Replies

  • gsokol
    Offline / Send Message
    gsokol polycounter lvl 14
    You could do a few things.

    You could use multiple materials that are set up the same way, but with varying amounts of skidmarks....just have turning sections use skidmarks with more tire marks and less on straight paths. However, it will probably still be somewhat noticable that it tiles a lot.

    Another thing you can do is just make decal planes with opacity, and make seperate geo for skidmarks and just place them right on top of the road. This will allow for a lot more flexibility for placement, but you'll spend a little bit more time placing them.
Sign In or Register to comment.