How hard would it be to make the glass on automation cars be one way?

Discussion in 'Content Creation' started by Acrain7, Jul 15, 2018.

  1. Acrain7

    Acrain7
    Expand Collapse

    Joined:
    Sep 7, 2015
    Messages:
    3,506
    Basically, i was messing around with one of my exports when i noticed that my sunroofs were one way glass, in essence:

    Outside:
    185.png

    Inside:
    188.png

    see how it's invisible on the inside? how hard would it be to make all of the glass on automation cars that way, so i can sortof drive them from the interior camera? (also is this the right place to put this, form wise, i presume so?)

    Thanks, have a nice day!
    -Acrain7 :D
     
  2. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,782
    In materials CS of your vehicle change doubleSided = "1"; to doubleSided = "0"; or omit the line for the window material, for one of my vehicles that is material3.

    singleton Material(material_3_country_deluxe_gt_country_deluxe_gt_body0)
    {
    mapTo = "material_3_country_deluxe_gt_country_deluxe_gt_body0";
    diffuseMap[0] = "vehicles/common/null.dds";
    specularMap[0] = "vehicles/common/null.dds";
    specularPower[0] = "255";
    specularStrength[0] = "1";
    castShadows = "1";
    doubleSided = "1"; //////////////////////////////////////////// Change this to 0
    reflectivityMap[0] = "vehicles/common/glass_base.dds";
    diffuseColor[0] = "0.14902 0.145098 0.168627 1";
    dynamicCubemap = true;
    translucent = "0";
    translucentBlendOp = "None";
    alphaTest = "0";
    alphaRef = "1";
    materialTag0 = "beamng";
    };

    Not sure if material numbers vary vehicle by vehicle, material names are unique for the vehicle in question.

    That should make windows transparent and should keep body two sided.
     
    • Informative Informative x 3
    • Like Like x 1
    • Agree Agree x 1
  3. Acrain7

    Acrain7
    Expand Collapse

    Joined:
    Sep 7, 2015
    Messages:
    3,506
    how i figure out which material is for the windows?
     
  4. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,782
    Import DAE in Blender, right click body to select it tab key to edit mode, right click face that is located in window, then look which material it shows in material selector.

    Less reliable way would be searching glass_base.dds and which material has that texture, but does not have double sided enabled might be it.
     
    • Informative Informative x 1
  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