Skip to content

Couple of things with classifySphere #17

@yonatan

Description

@yonatan

(and probably classifyRadius as well)

First, it returns INTERSECT immediately when it detects an intersection with any of the frustum planes, which seems wrong when the sphere is completely on the outside of some other frustum plane.

Second, there is a (literal) corner case, when a sphere intersects 3 of the frustum planes and is on the inside of the other 3, while still being completely outside the frustum volume. I have no idea how to fix that one.

Demo with a frustum extracted from the identity matrix (which I guess spans -1 and 1 on all axes):
http://wonderfl.net/c/eNu4
Click the buttons for values demonstrating both issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions