EntityCulling icon indicating copy to clipboard operation
EntityCulling copied to clipboard

Entities incorrectly culled at certain third person perspectives

Open SPINZ1 opened this issue 2 years ago • 6 comments
trafficstars

When the player is positioned in front of blocks, entities are culled at certain third person camera angles despite being otherwise visible on screen

1.20.1 Fabric All mods: image https://github.com/tr7zw/EntityCulling/assets/145732023/b3cd7c1e-dd4c-4684-acdb-5c35e00b1cf4

SPINZ1 avatar Sep 22 '23 01:09 SPINZ1

Nothing I can do without an example.

tr7zw avatar Sep 22 '23 01:09 tr7zw

Also, perhaps a duplicate of this (is the camera hitting a wall/ceiling)?

tr7zw avatar Sep 22 '23 01:09 tr7zw

Yes

SPINZ1 avatar Sep 22 '23 01:09 SPINZ1

https://github.com/tr7zw/EntityCulling/assets/145732023/b3cd7c1e-dd4c-4684-acdb-5c35e00b1cf4

SPINZ1 avatar Sep 22 '23 01:09 SPINZ1

I've got an exact setup where i reproduced the issue

  1. Create a world with seed -5397288099815253827
  2. Do /tp @s -101.5 69.0 -37.5 0.0 0.0
  3. Press F5 twice

you should get this result https://youtu.be/dVzwpJ4Ezao

Julienraptor01 avatar Jan 09 '24 22:01 Julienraptor01

Yea I noticed that too recently on the latest version. From what I can tell the F5 camera slightly clips into the block, causing this behavior. I will fix that next update by probably making rays starting inside blocks being allowed to pass blocks till it's out once. It should also fix spectator mode hopefully.

tr7zw avatar Jan 09 '24 22:01 tr7zw

Fixed in 1.6.4

tr7zw avatar Mar 24 '24 17:03 tr7zw