mojira.dev
MC-30845

Camera is glitching through tall grass, sea grass, and kelp in F5 (third-person) mode

The bug

When a player walks through a block which is transparent or translucent in some way, the third-person camera forces the viewport to not exceed the internal boundary of the object, blocking the view until the player leaves the block which encases their head. This visibly affects all tall plants, the Nether portal block, and presumably anything else which is a non-opaque block but doesn't fully block the player's motion. This would make sense if the blocks were physically solid, but you can easily walk through sugar cane or grass.

Steps to reproduce

  1. Switch view to third-person

  2. Walk into a certain block (such as tall grass)
    → Notice what happens to the camera

  3. Walk out of the block
    → Notice how the camera is now at the maximum viewing position again

Video

Fix proposal

A simple fix for this would be to make F5 ignore blocks with no bounding box. Currently the method EntityRenderer.orientCamera(partialTicks) calls the method World.rayTraceBlocks(Vec3d, Vec3d) to find the surrounding blocks. World also has the method rayTraceBlocks(Vec3d, Vec3d, stopOnLiquid, ignoreBlocksWithoutBoundingBox, returnLastUncollidableBlocks) that could be used instead.

Linked issues

MC-32162 F5 and double tall grass Resolved MC-34023 Bug with a camera and grass Resolved MC-38978 F5 and tall grass Resolved MC-55862 Vines block 3rd person camera Resolved MC-73890 When 3rd person view in tripwire zooms into player Resolved

Comments 17

Confirmed.

I just noticed it myself.

Still a concern in 1.7.4/5 and 14w08a

Confirmed for 1.8pre2. Also affects sugar cane and all double-tall plants.

[Mod] redstonehelper

Confirmed for 1.8. Happens with any block that doesn't have a collision box, but does have a hitbox: Torches, regular tall grass, flowers, signs, likely even pressure plates - and many more!

7 more comments

Can confirm for MC 1.12.1.

PLEASE fix this, happens on 1.12.2

Confirmed for 1.13.1.

Confirmed for 1.13.2 and 18w43a-b.

isn't this a feature though for grass at least. Because your view is obscured by the grass so f5 is also obscured

Patrick Koelewijn

Nathan Adams

Confirmed

double-plant, third-person

Minecraft 13w36b, Minecraft 13w37a, Minecraft 13w37b, Minecraft 13w38a, Minecraft 13w38b, ..., Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w43a, Minecraft 18w43b, Minecraft 19w03c

Minecraft 19w11a

Retrieved