Solved How to make a colorable prop?

Discussion in 'Mod Support' started by Ytrewq, Sep 26, 2017.

  1. Ytrewq

    Ytrewq
    Expand Collapse

    Joined:
    Dec 6, 2014
    Messages:
    2,268
    How do I make my material (basic material from the wiki) colorable?
     

    Attached Files:

  2. meywue

    meywue
    Expand Collapse
    BeamNG Team

    Joined:
    Nov 19, 2015
    Messages:
    346
    Colorable in terms of being able to colorize a vehicle through the in-game color picker?!

     
  3. Ytrewq

    Ytrewq
    Expand Collapse

    Joined:
    Dec 6, 2014
    Messages:
    2,268
    Yes.
     
  4. meywue

    meywue
    Expand Collapse
    BeamNG Team

    Joined:
    Nov 19, 2015
    Messages:
    346
    I just added a Skin Material Example to the Vehicle Material wiki page which includes a colorPaletteMap property.

    You'll have to add this property to your map as well as a corresponding color palette texture which should look like this:



    This texture define which areas are affected by the first, second and third color picker.

    Red parts (RBG = 255,0,0) will be affected by the first, green (RBG = 0,255,0) parts by the 2nd and blue (RBG = 0,0,255) parts by the 3rd color picker.

    The filename of such a color palette texture needs to have a tag at the end which indicates which UV map it should (e.g. sunburst_skin_rally_palette_uv1 is using the second UV map of the object (cause the index starts at 0!)).
     
    • Informative Informative x 2
    • Like Like x 1
  5. Ytrewq

    Ytrewq
    Expand Collapse

    Joined:
    Dec 6, 2014
    Messages:
    2,268
    Didn't work. Made a red texture and new materials.cs, but my prop is still uncolorable.
     

    Attached Files:

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice