Move the camera back with a narrower FOV so aiming rotates the view less #71

Closed
opened 2026-11-12 06:22:18 +00:00 by claude · 1 comment
Member

From Eric's play-test of v0.2.0 (Season VI thread, post 6): the camera rotation when aiming at blocks feels odd; "maybe zoom back".

A free cursor is blocked on the engine (#7). What can be done on 5.10:

  • The pan needed to aim at the edge of reach is atan((REACH + CAMERA_MAX_OFFSET) / CAMERA_DIST). At CAMERA_DIST = 22 that is about 22°. Doubling the distance to 44 and narrowing the FOV (52° → about 27°) keeps the same visible area and brings it to about 11°, with less perspective distortion.
  • Costs to check: the shadow slab and POINT_RANGE grow with the distance; more map blocks sit between the camera and the plane (strata.view_area, send_view_blocks, mapgen z range); sounds are heard from further away (SOUND_HEAR_DISTANCE).
  • Make the distance and FOV one pair of constants (or a setting) so it can be tuned by hand in the client.

Needs a hands-on check after it lands, because feel can't be judged headless.

From Eric's play-test of v0.2.0 ([Season VI thread, post 6](https://discourse.eom.dev/t/luanti-season-vi/820/6)): the camera rotation when aiming at blocks feels odd; "maybe zoom back". A free cursor is blocked on the engine (#7). What can be done on 5.10: - The pan needed to aim at the edge of reach is `atan((REACH + CAMERA_MAX_OFFSET) / CAMERA_DIST)`. At `CAMERA_DIST = 22` that is about 22°. Doubling the distance to 44 and narrowing the FOV (52° → about 27°) keeps the same visible area and brings it to about 11°, with less perspective distortion. - Costs to check: the shadow slab and `POINT_RANGE` grow with the distance; more map blocks sit between the camera and the plane (`strata.view_area`, `send_view_blocks`, mapgen z range); sounds are heard from further away (`SOUND_HEAR_DISTANCE`). - Make the distance and FOV one pair of constants (or a setting) so it can be tuned by hand in the client. Needs a hands-on check after it lands, because feel can't be judged headless.
claude added this to the v0.3 World & Biomes milestone 2026-11-12 06:22:18 +00:00
claude added the area/camera-controls
type
feature
priority
high
labels 2026-11-12 06:22:18 +00:00
eric closed this issue 2026-11-14 06:34:56 +00:00
Author
Member

Done in 82433b2.

What changed

  • strata.CAMERA_DIST comes from the new setting strata_camera_distance: default 44 (was 22), clamped to 16–80, server-side, restart to apply.
  • strata.CAMERA_FOV is derived from the distance so the plane always shows VIEW_HEIGHT = 21.5 nodes from top to bottom. That works out to about 28° at 44 and the old 52° at 22, so the setting is the single knob for tuning.
  • Aiming at the edge of reach now turns the view about 11°, down from 22°.
  • SOUND_HEAR_DISTANCE follows the distance (CAMERA_DIST + 18). The shadow slab, POINT_RANGE, strata.view_area and the test area were already derived from it.

Costs checked

  • The deeper shadow slab means more mapblocks between the camera and the plane. The deep-area emerge in tests went from 8 s to 18 s locally, and the full suite from 46 s to 57 s.
  • The camera's mapblock is now 3 blocks in front of the plane's. With the default active_block_range of 4, mobs and timers stay active about ±40 nodes either side, which is still wider than the screen.

Tests: the existing camera and view-area cases are derived from the constants and pass. 94/94 pass.

@eric, when you next play: does 44 feel better than 22? If it's too far or too close, try strata_camera_distance (for example 32 or 60) and tell me the number you like, and I'll make it the default.

Done in 82433b2. **What changed** - `strata.CAMERA_DIST` comes from the new setting `strata_camera_distance`: default **44** (was 22), clamped to 16–80, server-side, restart to apply. - `strata.CAMERA_FOV` is derived from the distance so the plane always shows `VIEW_HEIGHT` = 21.5 nodes from top to bottom. That works out to about 28° at 44 and the old 52° at 22, so the setting is the single knob for tuning. - Aiming at the edge of reach now turns the view about **11°**, down from 22°. - `SOUND_HEAR_DISTANCE` follows the distance (`CAMERA_DIST + 18`). The shadow slab, `POINT_RANGE`, `strata.view_area` and the test area were already derived from it. **Costs checked** - The deeper shadow slab means more mapblocks between the camera and the plane. The deep-area emerge in tests went from 8 s to 18 s locally, and the full suite from 46 s to 57 s. - The camera's mapblock is now 3 blocks in front of the plane's. With the default `active_block_range` of 4, mobs and timers stay active about ±40 nodes either side, which is still wider than the screen. **Tests:** the existing camera and view-area cases are derived from the constants and pass. 94/94 pass. @eric, when you next play: does 44 feel better than 22? If it's too far or too close, try `strata_camera_distance` (for example 32 or 60) and tell me the number you like, and I'll make it the default.
Sign in to join this conversation.