Texture issue.

Discussion in 'Car Modding' started by SharD, Oct 6, 2021.

  1. SharD

    SharD Registered

    Joined:
    Apr 17, 2019
    Messages:
    374
    Likes Received:
    437
    I got an issue with a car that I converted. This car is a McLaren from rFactor 1 and while the car looks normal at the start of the race, it gets some odd black texture after it is hit or drives into something:

    Before:


    GRAB_170.JPG

    And after a collision, this happens:
    GRAB_169.JPG

    Does anyone know what causes this, and how it can be fixed?

    Thanks in advance.
     
  2. philrob

    philrob Registered

    Joined:
    Jan 12, 2012
    Messages:
    572
    Likes Received:
    1,204
    Did you lose some body panels in the collision and perhaps the car is now showing the collision object, often a roughly car shaped object, that is not usually rendered.
     
  3. SharD

    SharD Registered

    Joined:
    Apr 17, 2019
    Messages:
    374
    Likes Received:
    437
    The car hasn't lost any parts. Only the front wing and the rear wing can come off.

    I assume this collision object is rendered, and it can be disabled in the car's .gen file?
     
  4. philrob

    philrob Registered

    Joined:
    Jan 12, 2012
    Messages:
    572
    Likes Received:
    1,204
    yes i think so, Render=False CollTarget=True from memory
     
  5. Alexandr Meshkov

    Alexandr Meshkov Registered

    Joined:
    Jun 20, 2017
    Messages:
    214
    Likes Received:
    92
    Go to material editor and check Carbody Shader settings for damage. Probably it have black texture for damaged parts
     
    SharD likes this.
  6. SharD

    SharD Registered

    Joined:
    Apr 17, 2019
    Messages:
    374
    Likes Received:
    437
    I will try that, thank you.
     
  7. SharD

    SharD Registered

    Joined:
    Apr 17, 2019
    Messages:
    374
    Likes Received:
    437
    Hm, I still don't know how to fix this. It happens when the car collides with another car, so it is probably some kind of triggered bug.
     
  8. dimaone

    dimaone Registered

    Joined:
    Aug 15, 2019
    Messages:
    14
    Likes Received:
    5
    проверь эти текстуры[​IMG][​IMG]
     

    Attached Files:

  9. Arnaud Plume

    Arnaud Plume Registered

    Joined:
    Jul 5, 2019
    Messages:
    178
    Likes Received:
    1,099
    What's the shader associated with the body? Is there a damage map?
    Check also the UV Mapping of the channel associated to the damage map if any.
     
  10. SharD

    SharD Registered

    Joined:
    Apr 17, 2019
    Messages:
    374
    Likes Received:
    437
    It looks like this.

    What do I need to change? The car does not have the black parts when the race starts. It shows up when the car collides with something - either another car or the catch fence. The black parts are graphically tied to the suspension, too. They use the same material.

    car1.png
     
    Last edited: Oct 11, 2021
  11. Arnaud Plume

    Arnaud Plume Registered

    Joined:
    Jul 5, 2019
    Messages:
    178
    Likes Received:
    1,099
    Cause n°1: Your 9x_body_damage.dds is a real texture with scratches or only black?
    Cause n°2: Click on the "Edit Channel Textures Coordinates" icon on Material Edit menu - then "Scale UV" - then "Scale/Offset UV Channel 1" and then check if Scale U & Scale V are already with 1.0 value. If not put 1.0
     
    SharD likes this.
  12. SharD

    SharD Registered

    Joined:
    Apr 17, 2019
    Messages:
    374
    Likes Received:
    437
    I tried both, but neither fixed the problem. The "9x_body_damage.dds" is a texture with scratches. Thanks for the tips, though.
     
  13. dimaone

    dimaone Registered

    Joined:
    Aug 15, 2019
    Messages:
    14
    Likes Received:
    5
    попробуй заменить 32-32flatn на 9xbody_s
     
  14. Arnaud Plume

    Arnaud Plume Registered

    Joined:
    Jul 5, 2019
    Messages:
    178
    Likes Received:
    1,099
    Yes your Channel 3 is full black, a bit strange I guess, try maybe something grey.

    If it's still doesn't work, maybe try the shader "Car body paint + damage + rain"
     
  15. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    3,958
    Likes Received:
    2,808
    @SharD On your Screenshot, i see the Texture 32x32flatn.dds in Channel 3.
    Is that maybe a Bump Map?
    If yes, replace it it with a spec Map.
    I would suggest to use the Set of Textures from another Car, where it works properly and check if that works for your Car too then.
    If yes, you can replace Texture by Texture, to find out where exactly the Problem is.
    I hope that helps.
     

Share This Page