Mojira Archive
MCM-1878

Camera distance Molang queries work incorrectly in splitscreen play

Partner Rank: 2 (Important)

Verification Builds: 1.21.50, 1.21.40

Regression Builds: -

Summary: Camera distance related Molang queries (camera_distance_range_lerp, distance_from_camera, lod_index) during splitscreen play always use distance to the 2nd player's camera for both screens, when the same entity is rendered for both players.

Affects currently Live Content: Yes

Impact: This issue affects splitscreen play on live content, there is no adequate workaround for it. It is particularly damaging for our Realistic Biomes add-on, as a lot of its functionality depends on per-player rendering and camera related queries.

Repro Steps:

  1. Create a world with attached add-on applied and enabled cheats
  2. Run /summon example:bug command in chat
  3. Activate splitscreen play and observe color of the entity, as each player is moving around

Observed Results: Entity changes color on both screens only when the 2nd player moves (see attached video)

Expected Results: Entity would change color only on the screen of the player that was moving

Screenshots/Videos attached: Yes, video is attached

Notes: -

Unresolved

Veka0

2024-10-25, 01:08 PM

2024-10-28, 05:50 PM

2

1

1.21

-