Skip to content

[Bug] Line Duplication Due To Line-Plane Intersection #126

Description

@AhmedLilah

When drawing a line and a plane that intersect each other, the line might show up as two lines. especially when there is a high contrast between the colors.

Image

This is probably due to the method used to draw lines (i.e., two triangles to make a quad) and planes being the same.

Somehow, while sorting the triangles by the ZBuffer, we suspect that the sorting algorithm doesn't take into consideration the order in which lines or planes were created, leading to a reordering of the triangle that makes part of the plane be drawn between the line quad.

or,

That is because the line quad is always being drawn perpendicular to the camera, the plane is not at the same angle has parts that cross the line plane.

Image

The part with the difference in Z-axis value from the camera would show in the middle of the line quad.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

prio:highHigh prioritystatus:reviewThe task is under reviewtype:fixSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions