View Issue Details

IDProjectCategoryView StatusLast Update
0005757DarkRadiantGUIpublic28.10.2022 05:52
ReporterBrendonChung Assigned Togreebo  
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status closedResolutionfixed 
Product Version2.13.0 
Target Version3.0.0Fixed in Version3.0.0 
Summary0005757: Ability to center 3D camera on selected entity
DescriptionI think it would be helpful if there was a keybind to center the 3D camera on the currently-selected entity.

Currently, when the Entity List (J) is open and the player selects an entity in the Entity List, the 3D camera snaps to the entity's location. This works great, and I think it would be helpful if the 3D camera snap could be called on-demand.

Example:
1. Player selects an entity in the ortho window.
2. Player presses the camerafocus keybind, i.e. ctrl+F
3. The 3D camera snaps to the selected entity's location.
Additional InformationIf multiple entities are selected, I think it would work ok if the 3D camera either focused on the first entity in the selection set, or the midpoint of all the selected entities.
TagsNo tags attached.

Activities

Geep

Geep

12.10.2021 15:03

reporter   ~0014432

I have no opinion on the specific ctrl+F key proposed, but would also very much like this overall capability.
Geep

Geep

03.04.2022 18:38

reporter   ~0014793

Testing notes of this in 3.0.0 pre 1: Under Edit/Keyboard shortcuts, this is called "Focus Camera on Selection". No key bound by default, but Ctrl~F is likely available to edit/bind.

Seems to work. In terms of implementation, the camera is repositioned independently of where it originally was. Relative to the selected object's origin (or the group origin if multiple selections), the new camera origin has the same y, but larger and equal-offset values of x and z. It thus sees the object(s) from above at a 45 degree angle. Distance varies so that the object(s) are fully included with some surround.

Only problem seen (perhaps not exclusive or strictly related to this feature) is that the orthogonal "flying saucers" showing the viewpoint have view-angle lines that are often quite wrong.

Related Changesets

DarkRadiant: master 3faddffe

03.04.2022 08:24

greebo


Details Diff
0005757: Add FocusCameraOnSelection command, to put the current selection on screen Affected Issues
0005757
mod - libs/scenelib.h Diff File
mod - radiantcore/map/Map.cpp Diff File
mod - radiantcore/map/Map.h Diff File

Issue History

Date Modified Username Field Change
17.09.2021 20:13 BrendonChung New Issue
12.10.2021 15:03 Geep Note Added: 0014432
03.04.2022 08:17 greebo Assigned To => greebo
03.04.2022 08:17 greebo Status new => assigned
03.04.2022 08:17 greebo Target Version => 3.0.0
03.04.2022 08:26 greebo Changeset attached => DarkRadiant master 3faddffe
03.04.2022 08:27 greebo Status assigned => resolved
03.04.2022 08:27 greebo Resolution open => fixed
03.04.2022 08:27 greebo Fixed in Version => 3.0.0
03.04.2022 18:38 Geep Note Added: 0014793
28.10.2022 05:52 greebo Status resolved => closed