View Issue Details

IDProjectCategoryView StatusLast Update
0006331The Dark ModCodingpublic23.01.2024 18:48
ReporterDaft Mugi Assigned ToDaft Mugi  
PrioritynormalSeveritynormalReproducibilityN/A
Status resolvedResolutionfixed 
Product VersionSVN 
Target VersionTDM 2.12Fixed in VersionTDM 2.12 
Summary0006331: Add viewpos to player HUD and screenshot
DescriptionDuring testing and troubleshooting, it is quite useful to have the viewpos displayed on the player HUD and embedded on the screenshot.


Current issues to be addressed:

1. No way to show viewpos on the HUD.

2. The screenshot filename includes "getviewpos", which is quite useful, but some players change the filename and some websites rename the files (e.g. removing spaces between the coordinates or other changes). That makes it hard to know where the player was when an issue was found.

3. To get the viewpos embedded on a screenshot, a trick has to be used, such as binding a key like so:
    bind "F11" "con_noprint 0;wait;wait;wait;getviewpos;wait;wait;wait;screenshot;con_noprint 1"
But that can show other console lines in the screenshot and "con_noprint 1" might not be the desired final value.

4. Mappers often have a hard time seeing what the player is trying to capture in a screenshot, because their gamma is set too low. Some mappers request that players increase their gamma or brightness when taking a screenshot. This should be simple. As a workaround, a trick can be used, such as binding a key like so:
    bind "F10" "r_ambientGamma 1.3;con_noprint 0;wait;wait;wait;getviewpos;wait;wait;wait;screenshot;con_noprint 1;r_ambientGamma 1"
But the player's desired gamma setting might be different for each map, so they would have to update their binding.


Solution:

* Add a new cvar "tdm_show_viewpos" to show the viewpos on the player's HUD.
    - Have two font color options: gray (easy on the eyes) and cyan (good for screenshots).
* Add a new command "screenshot_viewpos" to embed the viewpos on the player's HUD during the screenshot.
    - Have "screenshot_viewpos <gamma>" to adjust the "r_ambientGamma" during the screenshot. A mapper can tell players to bind a key to "screenshot_viewpos 1.3", for example.
    - Enforce cyan font color for best legibility for viewpos against a variety of backgrounds.
TagsHUD

Relationships

related to 0005819 resolvedObsttorte Feature request - add location to screenshot filename 

Activities

Daft Mugi

Daft Mugi

30.10.2023 21:54

developer   ~0016158

Committed as code rev 10484.
Daft Mugi

Daft Mugi

04.12.2023 03:29

developer   ~0016207

Committed code rev r10532.

Hide console on 'screenshot_viewpos'.
Daft Mugi

Daft Mugi

23.01.2024 18:04

developer   ~0016419

Last edited: 23.01.2024 18:48

Committed code rev 10628.

Fix viewpos not displaying during a screenshot sometimes.

See also:
  https://forums.thedarkmod.com/index.php?/topic/22310-212-viewpos-on-player-hud-and-screenshots/&do=findComment&comment=491202

Issue History

Date Modified Username Field Change
30.10.2023 21:40 Daft Mugi New Issue
30.10.2023 21:40 Daft Mugi Status new => assigned
30.10.2023 21:40 Daft Mugi Assigned To => Daft Mugi
30.10.2023 21:54 Daft Mugi Note Added: 0016158
30.10.2023 21:55 Daft Mugi Status assigned => feedback
30.10.2023 23:22 Daft Mugi Relationship added related to 0005819
04.12.2023 03:29 Daft Mugi Note Added: 0016207
05.12.2023 01:33 nbohr1more Status feedback => resolved
05.12.2023 01:33 nbohr1more Resolution open => fixed
05.12.2023 01:33 nbohr1more Fixed in Version => TDM 2.12
30.12.2023 20:21 Fiver Tag Attached: HUD
23.01.2024 18:04 Daft Mugi Note Added: 0016419
23.01.2024 18:41 Daft Mugi Note Edited: 0016419
23.01.2024 18:48 Daft Mugi Note Edited: 0016419