SHADER Skid marks material

Discussion in 'Modding' started by Luchian, Oct 24, 2014.

  1. Luchian

    Luchian Administrator Staff Member Concurent RLR

    Joined:
    Jun 3, 2014
    Messages:
    1,107
    Likes Received:
    279
    [justify]Let's say you'd like to add some realism or supplementary detail to your track's surface. You'll then need of course ... ? Yes, that's right, skid marks :). Here are some settings that give a nice blend for your skidmarks texture (preferably saved as DDS DXT5 with alpha channel). You can set the intensity by playing with the alpha value: 0=none to 0.x. The bigger the X, the more intense the marks will be. In the screen below: 0.8[/justify]
    View attachment skid_marks.png
     
  2. jarodyi

    jarodyi Guest

    how to make a skid marks texture?
     
  3. Luchian

    Luchian Administrator Staff Member Concurent RLR

    Joined:
    Jun 3, 2014
    Messages:
    1,107
    Likes Received:
    279
    [justify]There are probably more ways to do it, but one of them is:
    Create a new file (in Photoshop or Gimp), add an alpha layer to it, and draw your skid marks using a medium pressure brush. When done, save it as DDS, DXT5 with alpha.

    If you prefer, you can use the attached template (*.psd format). Just paint on the alpha layer with white brush whatever you'd wish to use as skid marks, or some other marks ;)[/justify]
     

    Attached Files:

  4. jarodyi

    jarodyi Guest

    thank u !
    so can I make wire in AC by texture in same way?
     
  5. Luchian

    Luchian Administrator Staff Member Concurent RLR

    Joined:
    Jun 3, 2014
    Messages:
    1,107
    Likes Received:
    279
    If by wire you mean this, you can also do it using ksPerPixelAT (or ksPerPixelAT_NM if you have a normal map).

    View attachment wire.png
     
    2 people like this.
  6. jarodyi

    jarodyi Guest

    nice look!

    why i use double side matieral in 3dsmax on trees . but only see one side it ac editor?
     
  7. Luchian

    Luchian Administrator Staff Member Concurent RLR

    Joined:
    Jun 3, 2014
    Messages:
    1,107
    Likes Received:
    279
    AC does not support double sided materials. You'll need to "mirror" your surfaces.
     
  8. jarodyi

    jarodyi Guest

    1 and can u share u wire.dds and 3ds file in pic with me?

    2 can u show me your trees setting in aceditor? i can`t get trees view right :(

    3 can u tell me how does the "Illumination" works for ? just see the time effect in editor but not set the sun position in game?

    thanks:)
     

    Attached Files:

  9. Luchian

    Luchian Administrator Staff Member Concurent RLR

    Joined:
    Jun 3, 2014
    Messages:
    1,107
    Likes Received:
    279
    [justify]1/ I would, but the screenshot is from a conversion. Even though I have the author's approval to convert the track, I don't know if he'd be ok with sharing assets, sorry. The texture is just a simple tile, with alpha channel (like shown for tyre marks), and the modeling is just basic geometry, like in the screenshot below. Just make some tests, I'm sure you'll figure it out easily :).

    View attachment 2014-11-04_210925.png [/justify]
     
    Last edited by a moderator: Nov 4, 2014
  10. jarodyi

    jarodyi Guest

    i found a skid mark.jpg, it looks good ,but it didn`t have the alpha chanel, can u do one for me?:(

    thanks! always trouble u:)
     

    Attached Files:

  11. Luchian

    Luchian Administrator Staff Member Concurent RLR

    Joined:
    Jun 3, 2014
    Messages:
    1,107
    Likes Received:
    279
    Sure. Here you go :).

    Also, if you want to learn how you could've done it yourself (30 seconds job):
    • Open Photoshop
    • Create a new document the same size as your image
    • Paint it black
    • Create a new alpha channel
    • Paste your image on alpha channel
    • Save as DDS DXT5 with alpha
    • Done.
    *to be able to save as dds in photoshop, you need to have the nvidia dds plugin installed.
     

    Attached Files:

    2 people like this.
  12. jarodyi

    jarodyi Guest

    thanks! it works well ;)
     

    Attached Files:

    1 person likes this.
  13. Luchian

    Luchian Administrator Staff Member Concurent RLR

    Joined:
    Jun 3, 2014
    Messages:
    1,107
    Likes Received:
    279
    Not bad ! Keep it up :)
     
  14. Mitja Bonca

    Mitja Bonca Guest

    How do I then include this skidmarks on the track surface? Do I need an additional layer on top of the track surface to assign to it?
     
  15. Luchian

    Luchian Administrator Staff Member Concurent RLR

    Joined:
    Jun 3, 2014
    Messages:
    1,107
    Likes Received:
    279
    Yes, it needs to be on an additional mesh that goes as close as possible to your track surface. But not exacly at the same height (like copy/paste) or you might experience flickering.
    Do note that being close to road is important because everything (wheels of cars) that will go "under" skid marks layer will become invisible in that area. (example Blackwood track where you can't see almost half of the wheels in the skid area).

    Sent from my Nexus 7 using Tapatalk
     
  16. Mitja Bonca

    Mitja Bonca Guest

    Ok, but pasted image should only have skidmarks (else all transparent), else alpha channel would not be useful, right? Or am I wrong? Can I paste the whole image after all?
     
  17. Luchian

    Luchian Administrator Staff Member Concurent RLR

    Joined:
    Jun 3, 2014
    Messages:
    1,107
    Likes Received:
    279
    [justify]Well, actually the alpha channel doesn't work with "transparency" per se; it only interprets white/black and in between and creates transparency accordingly. So, if you'd want one area of your texture to be transparent, just paint it black on alpha channel. Then, as you will gradually head towards white things will be come visible.
    Disclaimer: this is not intended as a "technical" description, but more a practical one on how things work :).[/justify]
     
    1 person likes this.
  18. jarodyi

    jarodyi Guest

    new question agian :D

    1\how you get the skid marks layer as close as the road?

    2\how to make the fence by loft?

    this is my track:p

    View attachment Screenshot_lotus_2_eleven_gt4_MiniCircuit_9-12-2014-23-48-16.jpg View attachment Screenshot_lotus_exos_125_MiniCircuit_10-12-2014-23-0-23.jpg
     
  19. Luchian

    Luchian Administrator Staff Member Concurent RLR

    Joined:
    Jun 3, 2014
    Messages:
    1,107
    Likes Received:
    279
    1/ since your track surface is already made, I would say best would be to just make a copy of the road, shift about 0.5-1cm up, and then keep only what you need from it :). Like an offset. This way, you'll get an uniform distance all over.

    2/I'm not sure I understand what you need. Could you maybe rephrase your question ?
     
  20. Mitja Bonca

    Mitja Bonca Guest

    Im interested into his 1st question as well: so creating a copy of the whole road (or only a copy of it on places skidmarks should be), and asign textures to it. Am I right?
     

Share This Page