Solved Weird shading on the D-series hood after adding a hood scoop.

Discussion in 'Mod Support' started by Ai'Torror, Jan 15, 2018.

  1. Ai'Torror

    Ai'Torror
    Expand Collapse
    QA, Mod Support, Vehicle Physics
    BeamNG Team

    Joined:
    Aug 29, 2015
    Messages:
    1,572


    This is basically my problem...

    The hood's model is located in the common/ pickup section while the hood jbeam itself is in the v10 cab jbeam(standard one) which is located in vehicles/pickup.
    For some reason making a hole in the hood and fitting a Barstow's Scoop in it makes the shading go all wonky on the unmodified part of the hood.
    + what do I have to do to make the hood scoop skinnable?
     

    Attached Files:

  2. SushiPro

    SushiPro
    Expand Collapse

    Joined:
    Dec 21, 2015
    Messages:
    258
    In blender, you have to add an edge split modifier. Before you do that, remove doubles.
     
  3. Ai'Torror

    Ai'Torror
    Expand Collapse
    QA, Mod Support, Vehicle Physics
    BeamNG Team

    Joined:
    Aug 29, 2015
    Messages:
    1,572
    What is does the edge split midifier and what do you mean by doubles? ( this my first body part made in blender so I'm basically going into it like blind)
     
  4. SushiPro

    SushiPro
    Expand Collapse

    Joined:
    Dec 21, 2015
    Messages:
    258
    The game engine cannot detect edges. The way the shading works, as long as a surface is contiguous, it will shade smooth. Edge split separates edges so that they don't get shaded as a smooth surface. Remove doubles removes vertexes that occupy the same location. In your case, this will integrate the Barstow mesh into the hood so that it shades the transition between the scoop and the hood smoothly.
     
  5. Ai'Torror

    Ai'Torror
    Expand Collapse
    QA, Mod Support, Vehicle Physics
    BeamNG Team

    Joined:
    Aug 29, 2015
    Messages:
    1,572
    Thanks! I'll try it later
     
  6. Ai'Torror

    Ai'Torror
    Expand Collapse
    QA, Mod Support, Vehicle Physics
    BeamNG Team

    Joined:
    Aug 29, 2015
    Messages:
    1,572

    I did what you said and now the hood itself is fine, but the scoop for whatever reason has changed colour
    --- Post updated ---
    For whatever dumb reason, now the hoodscoop seems to use the 2nd colour... Even though it is on the same spot as the normal hood center would be on the UVs...
    --- Post updated ---
    Okay, it works normally with no skin selected, but for some reason none of the skins wants to work with it... Is there something that I'm doing wrong?
    --- Post updated ---
    So... I've found out that what is happening is:
    When I select a multi colour skin (like the 2 tone and so on) the 2 selected paints sort of merge with each other...
    Is there a way of making it use only the paint that is meant for that part of the hood?
     
  7. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,697
    Does your hood also have a proper secondary UVMap?
    Becase that's what the game uses when you select one of those skins.
     
  8. Ai'Torror

    Ai'Torror
    Expand Collapse
    QA, Mod Support, Vehicle Physics
    BeamNG Team

    Joined:
    Aug 29, 2015
    Messages:
    1,572
    I didn't know that they were a thing! Thank you! I'll try to mess with them after coming back from hospital :/
     
  9. Ai'Torror

    Ai'Torror
    Expand Collapse
    QA, Mod Support, Vehicle Physics
    BeamNG Team

    Joined:
    Aug 29, 2015
    Messages:
    1,572
    Hi, Is there a way of just copying the position of the faces in the UV1 to the UV2 map?

    Also, this model for some reason seems to have 4 UV maps (2 additional ones are for the merged object, should I remove them If I've added the merged object to the UV1 already?
     
  10. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,697
    The game only uses the first two UV maps.
    I don't recall any method to copy UV from UV1 to UV2. You more likely need to do it manually.
     
  11. Ai'Torror

    Ai'Torror
    Expand Collapse
    QA, Mod Support, Vehicle Physics
    BeamNG Team

    Joined:
    Aug 29, 2015
    Messages:
    1,572
    Okay, Thanks! I've fixed it!


    UVs aren't placed perfectly, so the skins a bit messed up but it will do for now.
     
  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