TTLG|Thief|Bioshock|System Shock|Deus Ex|Mobile
Results 1 to 12 of 12

Thread: Double Doors pathfinding fix

  1. #1
    Member
    Registered: May 2002
    Location: Texas

    Double Doors pathfinding fix

    Lately I have been getting broken pathfinding at various sets of double doors so I thought I would experiment and find a reasonable solution. I tried several ideas, but I think I found the best solution by using a single marker. I remember in the past dromed would automatically add a marker in between the double doors but it doesn't seem to do that anymore. A single marker with Block Pathfinding works sometimes but isn't reliable. I found that if I resize the marker to be the same height and depth of my doorway then it blocks the area sufficiently to generate a cleaner pathfinding.


    This is one of my doorways with broken pathfinding just outside the door and very complicated pathfinding at the door.


    This is with the marker placed in the center. Note that the doors have to be side by side and not overlapping, and the marker has to be right in between the two doors for the pathfinding to be be clean on both sides.

    Since I have started this method the AIs do not have any problem going through the double doors nor do they twist and turn at the door while trying to get through.

    Sorry about the bad jpgs but irfanview is generating bad images after screen capture.

  2. #2
    Member
    Registered: Sep 1999
    Location: Austin, TX
    Thank you this is very helpful!

  3. #3
    Member
    Registered: Jan 2006
    Location: On the tip of your tongue.
    This might be an embarrassing question for someone with 10+ released missions, but what's the command for displaying pathfinding?

  4. #4
    Member
    Registered: May 2002
    Location: Texas
    It's ok. I still have to research some things that I haven't used in a while.

    In Dromed click on View and then select AI Path Links.

  5. #5
    Desperately Dodgy Moderator
    Registered: Nov 2001
    Location: Dragonsreach
    Drawing links is also very useful for AIPatrol links, as it shows you patrol routes.

  6. #6
    ZylonBane
    Registered: Sep 2000
    Location: ZylonBane
    Uh, how is DromEd generating path links through a marker that blocks pathfinding?

  7. #7
    Member
    Registered: May 2002
    Location: Texas
    Its doesn't. The marker blocks the midpoint between the two doors where a lot of links are crisscrossing and making the AI confused while in the doorway. Usually the AI are able to locomote past the midpoint without issue, but I have seen them twist and turn in the doorway while they are trying to traverse the complicated path. In the second snapshot you can see the pathfinding is a lot cleaner through each door.

  8. #8
    Member
    Registered: Jan 2001
    Location: Formby, NW England
    The engine automatically creates a path blocking marker between double doors when they open, but it may rely on the link we usually add between them. There are nevertheless moments when the AI has trouble, so maybe this method will be better.

  9. #9
    Member
    Registered: May 2002
    Location: Texas
    Initially I tried using a default size marker but the pathfinding was blocked only in an area equal to the size of the marker. I believe that might be happening with the marker that is created when opening double doors.

  10. #10
    ZylonBane
    Registered: Sep 2000
    Location: ZylonBane
    Quote Originally Posted by john9818a View Post
    In the second snapshot you can see the pathfinding is a lot cleaner through each door.
    Barely, because you left ALL THE LAYERS turned on for that screenshot.

    Interestingly, the first screenshot resembles the pathfinding for pretty much every door in SS2, because SS2 doors almost always have a door niche and door track texture, which blows up the cell count in doorways compared to Thief, where 90% of the doorways are just an air brush punched through a wall.

  11. #11
    Member
    Registered: May 2002
    Location: Texas
    So SS2 doors are typically horizontally translating? What happens if you block pathfinding in the door niche?

  12. #12
    ZylonBane
    Registered: Sep 2000
    Location: ZylonBane
    Barely anything, because the niches are too small to pathfind anyway.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •