Bad textures on segments with multiple lanes

Issue #142 resolved
Agustin Alba Chicar created an issue

Found on Darpa sample, as it has segments with multiple lanes. When we load the complete example we get one behavior and when loading only roads that have the problem we get something different.

Full sample:

FullSample.png

Isolated sample:

IsolatedSample.png

Probably related to: #140

Comments (11)

  1. Agustin Alba Chicar reporter

    The problem is the following. The driveable_bounds of each lane are the complete extent of asphalt that belongs to the segment, and the lane_bounds are the extents of the lane in that segment. So, we should define lane_bounds in terms of the width of the lane and the driveable_bounds in terms of all the lanes that belong to that segment. So we need to pre-compute the extents of the driveable_bounds when defining the lanes that belong to the segment.

  2. Agustin Alba Chicar reporter

    Partially solved, but got an issue in RNDF segments that have lanes that have different directions:

    Progress.png

    The RNDF segment that goes from the left side to the right side have two lanes that have different directions. Bug detected there. This makes the code explode since lane partitioning is based on the idea that lanes share the same direction.

  3. Agustin Alba Chicar reporter

    Got some improvements but there are still other child issues.

    Now lanes that have different directions are swapped to match the direction:

    SegmentsAndLanes.png

  4. Log in to comment