Skip to content

Does not cull block entities adjacent to a wall #213

@LTCatt

Description

@LTCatt

Place chests against a wall.
Image

Then walk to the other side of the wall, and you'll notice that no block entities are culled.
Image

You need to place an additional wall, then SOME of the chests get culled.
Image

You have to get very close to the second wall to cull all 9 chests.
Image
Image


I looked into the code, and there might be two issues causing these problems.

https://github.com/LogisticsCraft/OcclusionCulling/blob/7a346eabc5edcfdef31df3c21202c3c1473fb506/src/main/java/com/logisticscraft/occlusionculling/OcclusionCullingInstance.java#L58
Using floor here instead of ceil might cause all AABBs to extend one block further than intended.

https://github.com/LogisticsCraft/OcclusionCulling/blob/7a346eabc5edcfdef31df3c21202c3c1473fb506/src/main/java/com/logisticscraft/occlusionculling/OcclusionCullingInstance.java#L397
The allowWallClipping check here likely prevents culling of block entities adjacent to a wall.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions