Strange problem AI drive through a kerb not on the kerb

Discussion in 'Track Modding' started by Nibiru, Jun 17, 2018.

  1. Nibiru

    Nibiru Registered

    Joined:
    Dec 24, 2011
    Messages:
    1,200
    Likes Received:
    1,295
    Need some help

    I am doing some updates to Barbagallo and can't seem to fix the AI driving through the kerb not on the kerb.
    When a human drives on the kerb they drive up and on the kerb.

    I am using the material name "rmbl" it uses the real kerb shader and the name ends in _wet.

    I have made the mesh density match the road density.

    I haven't seen this before but maybe someone else has.

    AI driving through the kerb
    AI_driving_throu_kerb.jpg

    Human driver on the kerb
    Human_driving_on_kerb.jpg
     
  2. SPASKIS

    SPASKIS Registered

    Joined:
    Sep 7, 2011
    Messages:
    3,155
    Likes Received:
    1,426
    Did you include "HAT target" to the kerb instance in the scn?
     
  3. Nibiru

    Nibiru Registered

    Joined:
    Dec 24, 2011
    Messages:
    1,200
    Likes Received:
    1,295
    Yes I have
    Code:
    I
    Instance=racesurface_rmbln01a
    {
        MeshFile=racesurface_rmbln01a.gmt Deformable=True CollTarget=True HATTarget=True 
    }
    
     
  4. ADSTA

    ADSTA Registered

    Joined:
    Nov 19, 2011
    Messages:
    2,013
    Likes Received:
    1,369
    Get a decent concreter. :D
    Yeh yeh, I know.
    Sorry Nib but my job involves reo and concrete so it was too hard to pass up a cheap joke. :oops:
     
    Nibiru likes this.
  5. Nibiru

    Nibiru Registered

    Joined:
    Dec 24, 2011
    Messages:
    1,200
    Likes Received:
    1,295
    Thanks ADSTA :)
     
  6. Gilles Benoit

    Gilles Benoit Registered

    Joined:
    Aug 15, 2012
    Messages:
    56
    Likes Received:
    63
    Does your track surface extend under the kerb ? It seems so by the second screenshot.
     
  7. Nibiru

    Nibiru Registered

    Joined:
    Dec 24, 2011
    Messages:
    1,200
    Likes Received:
    1,295
    Yes it does.
    Its ok for the human but not the AI.
     
  8. Bernd

    Bernd Registered

    Joined:
    Jul 9, 2013
    Messages:
    1,509
    Likes Received:
    755
    What happens if you merge the curb mesh together with the road mesh as one mesh?
     
  9. Steve76

    Steve76 Registered

    Joined:
    Aug 19, 2015
    Messages:
    52
    Likes Received:
    83
    Kerb material in tdf?
     
    WiZPER likes this.
  10. Nibiru

    Nibiru Registered

    Joined:
    Dec 24, 2011
    Messages:
    1,200
    Likes Received:
    1,295
    I was trying to avoid that but will try it after work.
    Yes Im using the rmbl settings from Nola.
     
  11. Bernd

    Bernd Registered

    Joined:
    Jul 9, 2013
    Messages:
    1,509
    Likes Received:
    755
    I think it worths a try.
    I remember in rfactor 1, there where problems when 2 tdf linked materials in 2 different hattarget=true meshes where positioned over each other.
    And if merging don't solves it, you can try to remove the road under the curb, that the 2 materials aren't over each other anymore.
     
    Nibiru likes this.
  12. Nibiru

    Nibiru Registered

    Joined:
    Dec 24, 2011
    Messages:
    1,200
    Likes Received:
    1,295
    Ill definitely try it. Removing the mesh underneath is on my mind.
    What I find strange is. Every rf1 track that was made with BTB will have many places where 2 tdf materials sit on top of each other. So I would have thought all those tracks that have been converted to rf2 would have the problem as well. But this is the first time I have seen it.
    Thanks for the tips BTW.
     
  13. Nibiru

    Nibiru Registered

    Joined:
    Dec 24, 2011
    Messages:
    1,200
    Likes Received:
    1,295
    I can confirm that attaching the objects into 1 didn’t work. The AI still drove through the kerb.
    So I cut the kerb out of the road and removed the polys under the kerb and now the AI drive on the kerb.

    Thanks everyone for your help.
     
    Gilles Benoit and Bernd like this.
  14. Nibiru

    Nibiru Registered

    Joined:
    Dec 24, 2011
    Messages:
    1,200
    Likes Received:
    1,295
    What Im guessing is
    The issue was due to a height restraint or the height of this kerb exaggerated the problem.
    This is a big kerb with maybe 1/4 of a sedans height.
     
    Last edited: Jun 18, 2018
  15. Emery

    Emery Registered

    Joined:
    Oct 24, 2010
    Messages:
    3,035
    Likes Received:
    1,654
    They often exhibit the behavior when BTB paving overlaps. Good conversions are often edited to remove the offending polys. Plickbadger's tracks were the first ones I recall with this problem.
     
    Nibiru likes this.
  16. Bernd

    Bernd Registered

    Joined:
    Jul 9, 2013
    Messages:
    1,509
    Likes Received:
    755
    Have you lowered the height of the curb now?
    If not, it can not be the reason. ;)
    I still think, that the 2 over each other laying tdf linked materials have been the problem.
    But only a S397 member, who knows the code, can answer this finally.
    So we maybe will never know the reason. :)
     
  17. Nibiru

    Nibiru Registered

    Joined:
    Dec 24, 2011
    Messages:
    1,200
    Likes Received:
    1,295
    I deleted the polys under the kerb so all is good.
    I agree with the 2 tdf materials is the problem. What I was saying is due to the height of this kerb it highlighted the problem more.
    @C. Banger did some tests for me and noticed that some cars AI work and some didn't. So there must be a connection with the tyres as well.
     
  18. Bernd

    Bernd Registered

    Joined:
    Jul 9, 2013
    Messages:
    1,509
    Likes Received:
    755
    Yes, sometimes the reasons for problems are hard to identify, because there are too many things having influence on each other.
     

Share This Page