Blender-style numpad camera views (front/back/side/top, orbit steps, view selected) with automatic orthographic #1223

Open
opened 2026-10-28 18:53:05 +00:00 by sky_line · 0 comments
Owner

Blender-style numpad view controls for the orthographic camera (#1206). We have numpad 5 = toggle orthographic / perspective; add the rest of Blender's numpad camera set:

Key View
Numpad 1 Front
Ctrl+Numpad 1 Back
Numpad 3 Right
Ctrl+Numpad 3 Left
Numpad 7 Top
Ctrl+Numpad 7 Bottom
Numpad 2 / 8 Orbit down / up by a step (15 deg)
Numpad 4 / 6 Orbit left / right by a step
Numpad 9 Flip to the opposite view
Numpad . Frame the selected object (centre the camera on it, Blender "View Selected")
Numpad 0 Back to the avatar camera

Behaviour

  • Pivot. Views snap around the current camera focus: the selected object in Build mode, else the avatar or the alt-cam focus point. They keep the current distance and orthographic zoom.
  • Axis views. Front, Right and Top are world axes, which suits builders lining up prims. Consider an option for avatar-relative axes.
  • Automatic orthographic. Snapping to an axis view switches to orthographic automatically, like Blender's auto-perspective. Orbiting away returns to perspective; the existing FSAutoPerspectiveOnCameraMove logic already does this.
  • Smooth. Animate the snap over about 150 ms (camera smoothing), with no hard cut. The temporal history is reset on the cut, as the ortho toggle already does.

Input

  • NumLock. Same issue as #1222. These must work regardless of NumLock without breaking typed digits and gesture keys:

    • only take the keypad while the camera is under user control (alt-cam / build / flycam focus), or
    • use NumLock-off bindings plus modifier alternatives.

    Decide this together with #1222.

  • Rebindable. All bindings appear in Preferences > Controls (key binding table rows). Bump the key bindings xml_version so saved files get the defaults (see the v2 migration in LLViewerInput::loadBindingsXML).

  • Discoverable. The camera floater gets a small view picker (Front / Right / Top / ...) for mouse users.

Not in VR

Refuse in a VR session, as ortho already does.

Blender-style numpad view controls for the orthographic camera (#1206). We have numpad 5 = toggle orthographic / perspective; add the rest of Blender's numpad camera set: | Key | View | |---|---| | Numpad 1 | Front | | Ctrl+Numpad 1 | Back | | Numpad 3 | Right | | Ctrl+Numpad 3 | Left | | Numpad 7 | Top | | Ctrl+Numpad 7 | Bottom | | Numpad 2 / 8 | Orbit down / up by a step (15 deg) | | Numpad 4 / 6 | Orbit left / right by a step | | Numpad 9 | Flip to the opposite view | | Numpad . | Frame the selected object (centre the camera on it, Blender "View Selected") | | Numpad 0 | Back to the avatar camera | ## Behaviour - **Pivot.** Views snap around the current camera focus: the selected object in Build mode, else the avatar or the alt-cam focus point. They keep the current distance and orthographic zoom. - **Axis views.** Front, Right and Top are world axes, which suits builders lining up prims. Consider an option for avatar-relative axes. - **Automatic orthographic.** Snapping to an axis view switches to orthographic automatically, like Blender's auto-perspective. Orbiting away returns to perspective; the existing `FSAutoPerspectiveOnCameraMove` logic already does this. - **Smooth.** Animate the snap over about 150 ms (camera smoothing), with no hard cut. The temporal history is reset on the cut, as the ortho toggle already does. ## Input - **NumLock.** Same issue as #1222. These must work regardless of NumLock without breaking typed digits and gesture keys: - only take the keypad while the camera is under user control (alt-cam / build / flycam focus), or - use NumLock-off bindings plus modifier alternatives. Decide this together with #1222. - **Rebindable.** All bindings appear in Preferences > Controls (key binding table rows). Bump the key bindings xml_version so saved files get the defaults (see the v2 migration in `LLViewerInput::loadBindingsXML`). - **Discoverable.** The camera floater gets a small view picker (Front / Right / Top / ...) for mouse users. ## Not in VR Refuse in a VR session, as ortho already does.
sky_line added this to the Slipstream project 2026-10-28 18:53:05 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sky_line/Slipstream#1223
No description provided.