Is it Possible To Change Vehicle Colors yet?

Discussion in 'General Discussion' started by Quotation, Aug 4, 2013.

  1. Quotation

    Quotation
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    96
    I was looking through the menus but im not sure if you can change vehicle color. Can you?
     
  2. gabester

    gabester
    Expand Collapse
    Vehicle Director
    BeamNG Team

    Joined:
    Jun 6, 2012
    Messages:
    2,657
    For now the only way is to open the materials.cs in the vehicle's folder and edit diffuseColor[2] = "1 1 1 1" of the main vehicle's material (usually first in the file)

    It's RGBA, so "1 0 0 1" would be pure red.
     
  3. joman66

    joman66
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    47
    Lol, sorry for asking but what does the A in RGBA stand for? Is it something to do with the saturation of the color or something like that? Just wondering.
     
  4. Austin

    Austin
    Expand Collapse

    Joined:
    Aug 3, 2013
    Messages:
    211
    Alpha (transparency)
     
  5. joman66

    joman66
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    47
    Thanks man.
     
  6. Brother_Dave

    Brother_Dave
    Expand Collapse

    Joined:
    Aug 16, 2012
    Messages:
    1,423
    All-white Police version of the Grand Marshal, here i come!
     
  7. SEKCobra

    SEKCobra
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    5
    I hope we'll get proper lightbars with correct flash patterns, because otherwise this game would get it's first bad score ;)
     
  8. crashmaster

    crashmaster
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,673
    I played a lot with the colors and if you put 55 well its going to be bright so play around with 0 and one example 0.5
     
  9. SEKCobra

    SEKCobra
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    5
    Is there a way to reduce the reflectiveness? I played around with soem values, but nothing seemed to have an effect on the streaks the skybox was painting on the side of the car.
     
  10. FastestClassic

    FastestClassic
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    514
    Is there a way to make a colour darker? (E.G. dark red) I've been fiddling with it for a while, haven't found anything that makes it darker
     
  11. Fireboyd78

    Fireboyd78
    Expand Collapse

    Joined:
    Aug 5, 2013
    Messages:
    85
    Use Microsoft Paint or any other program that spits out RGB values, and divide the value by 255.

    A dark-red value I quickly picked out gave me RGB values of 119,0,3 - now divide each of these by 255 and here's your dark red in the proper format:

    0.4666666666666667,0,0.0117647058823529,1
     
  12. ScorpyX

    ScorpyX
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    34
    I found developer way for this - material editor works fine for editing car paint (Tint) (Editor generally great!)
    I tried to describe the process as easy as possible - for everyone to understand


    === So to change the painting of car do the following:
    - Backup (Copy\Save) folder of your car (just in case - if all fails you can return original files)
    (its mean - just copy folder of car like "Pickup" in "Vehicles" folder..)
    - load BeamNG_Drive and some level (for example "Grid") - image
    - (important step) move the car forward and stop (On random distance)
    - press F11 - this will open the editor - image
    - if you hold left mouse button and move it - you will see that it gives the selection (like on your desktop)
    Select center of your car - if you do it right - you will see that "1 object is selected" and some information will appear in window
    - Now press F4 of click "Material editor" Button - on the right you will see the material editor -
    if the car is selected - material editor displays Material settings of this car
    - Now select the desired part of the car - for example pickup "body"
    - then change "layer" of material - on "Layer 2"
    - and finaly - click on color square in "base texture map" section - and choose any color (Tint) you like
    kaBOOM Pink Buttstalion style is done - in real-time with visible color selector instead of numbers
    * if you want save it - then click save button
    (WARNING - if you remove the reflection then return it will be difficult)
    * you also can remove or change texture for reflection


    === Tips
    - Then you can change camera mode on "player camera" and press F11 for return to game - or restart BeamNG Drive
    - material will be saved forever - even after restart BeamNG Drive
    - Each car (model) has its own unique material
    - Dont change name of material - it loading with car by name
    - if you not move car from start point - it can be difficult for select - (you can move car in editor too)
    - if you accidentally broke stuff - you can recover files of original car (Remember the first step from the top? "Backup \ copy \ save")
    - also i think you can just spawn any car and change any material \
    also creat new copy of materials or cars (make your new own set(skin\model) of car)
    - and you can change "camera mode" for convenience - but do not forget change the mode back on "player camera" then all done
    change camera mode - click on human icon - then click on "free camera" mode - camera will move somewhere like this
    do not be afraid - press and hold down right button of the mouse on the screen - and together try to press A \ W \ S \ D buttons
    now try hold down right button and move mouse - so you can move the camera free
    you also can use mouse wheel fror "zoom" and middle mouse button for "pan"


    ps. hope it will be helpful
    and I hope in the future appears simple skin-manager for novice users \ players
    or just hot-key directly on material-editor with selected player car (it will be awesome in-game without loading editor)
     
    #12 ScorpyX, Aug 5, 2013
    Last edited: Aug 5, 2013
  13. lol111jj

    lol111jj
    Expand Collapse

    Joined:
    Aug 5, 2013
    Messages:
    16
    Thanks man, that helped me a lot. :)
     
  14. BjarkeDuDe

    BjarkeDuDe
    Expand Collapse

    Joined:
    Dec 10, 2012
    Messages:
    76
    ScorpyX!
    (I forgot to reply with a quote)

    This works for me with every other car than the Marshall. For some reason when i respawn it, it just changes back to it's default grey colour. And yes, i did save the material.
     
    #14 BjarkeDuDe, Aug 5, 2013
    Last edited: Aug 5, 2013
  15. ScorpyX

    ScorpyX
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    34
    yes its strange - i dont know why it load from material.cs file but don want save changes on "fullsize" material
    "police_decal" for example saved color change

    any way - you still can choose some color tint setting in layer 2 of "fullzise"
    just copy (RGB) number from color-picker
    then open "BeamNG DRIVE 0.3\vehicles\fullsize\materials.cs" materials file on this car
    and paste numbers in "fullsize material section - in diffuseColor[2] line" like this
    save this file - after this you already can just reset car in game - it will read script file of materials (with your settings)
    car will spawn with fresh seved settings - of course it will be.. FOREVEEEER khm khm..
     
  16. Nadeox1

    Nadeox1
    Expand Collapse
    Santa's Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,650
    The answer is in the post you quoted.
    RGBA
    Red Green Blue Alpha
    1 = full colour
    0 = no colour

    1 0 0 1 is pure red (1R 0G and B)
    To get darker try decimals.
    0,2 0 0 1 and you should get a darker red.

    That's how it works.

    EDIT - Oh well, replied to an "old" post..
     
  17. ScorpyX

    ScorpyX
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    34
    Nadeox1: its ok : ]
    also reflection cube-map (Textures) make car a little brighter and add some blue tint (if default sky reflection)
    for dark tone - possible change reflection preset on something like "gray sky" or "night sky"
    it add some nice reflection \ specular \ gloss feel
    but if you ever need to return the original preset - it must be replaced manually in script file (marerials.cs)
     
  18. CarbineCrazy

    CarbineCrazy
    Expand Collapse

    Joined:
    Dec 7, 2012
    Messages:
    112
    I REGRET NOTHING

    2013-08-05_00001.jpg
     
  19. thevidmaster

    thevidmaster
    Expand Collapse

    Joined:
    Aug 5, 2013
    Messages:
    202
    i think if this is going to be added in as an update there shouldnt be predetermined but you should include a palette somewhat like this: ColorBox.jpg the box area not the other parts
     
  20. duramax3500

    duramax3500
    Expand Collapse

    Joined:
    Jul 12, 2013
    Messages:
    16
    I can't even find that. Where is it at?
     
  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