6629e9148862f

6629e91488a4c
1 Guest is here.
 

Topic: Properly setting the HUD size in NewDark Read 5015 times  

6629e914898ecgnartsch

6629e9148994e
Hey guys, I was always wondering how exactly to set the HUD size in NewDark properly.
As people pointed out already, the cam_ext.cfg has options for that.
But it just doesn't make much sense to me.

I would have imagined that this variant would provide a scaling factor:
d3d_disp_scaled_2d_overlay 2
But it does not accept floating point numbers as it should ?
I would like to use some factor like 1.6 or something, since that value scales too high for my taste.

Original settings (without any scaling) : way too small, can't read anything.
I am using the native 1680 x 1050 resolution of my TFT.
Image: http://www.gnartsch.de/Thief-FM/beta/SS2/Shock2%202013-04-28%2013-13-37-62.jpg

Code: [Select]
d3d_disp_scaled_2d_overlay 2 A bit too big and not everything fits onto the screen. And the monkey diagram seems misaligned.
Image: http://www.gnartsch.de/Thief-FM/beta/SS2/Shock2%202013-04-28%2013-15-12-32.jpg

The best solution seems to be fiddling with the second variant and play with the HEIGHT.

Code: [Select]
d3d_disp_scaled_2d_overlay 640 640Image: http://www.gnartsch.de/Thief-FM/beta/SS2/Shock2%202013-04-28%2013-14-26-73.jpg

I can not that 640 640 makes much sense to me (following the descriptions in cam_ext.cfg), but at least it works in a reasonable way.

Is that a bug in NewDark ?
Should the first variant allow floating point factors ?
At any rate I smell a bug in the code responsible for that.

Anyway, the bottom line is that tweeking the HEIGHT gives you the chance to scale the HUD as you wish.
« Last Edit: 28. April 2013, 12:05:04 by gnartsch »

6629e91489a07bluemess

6629e91489a63
If you want it 1.6 or something times upscaled try this formula:

(1680 / 1.6) (1050 / 1.6) = 1050 656

and set:

d3d_disp_scaled_2d_overlay 1050 656

6629e91489ba7voodoo47

6629e91489bf3
hud scaling works in a peculiar way.

short story: try d3d_disp_scaled_2d_overlay 64, this should set the best pixel perfect scaled hud resolution for you. if you don't like the result, enter the desired hud resolution, like this: d3d_disp_scaled_2d_overlay 840 525.
« Last Edit: 28. April 2013, 13:35:53 by voodoo47 »

6629e91489c95bluemess

6629e91489ce1
Whether he set d3d_disp_scaled_2d_overlay to 64 or 2 it wont matter, it will be 2x upscaled. With 840 525 it will also be 2x upscaled, which he mentions is too big.
6629e91489e19
I don't think I have ever seen that research screen. O_o

6629e9148a0acZanderat

6629e9148a10c
I don't think I have ever seen that research screen. O_o
Same here.  Is it from a mod?

6629e9148a209ZylonBane

6629e9148a254
Obviously it's a mod. The question is, which one?

6629e9148a37aBriareos H

6629e9148a3ce
The proper (original) hud is actually scaled properly on those screens. Since the mod you're using wasn't created with NewDark in mind, it looks like the research image gets thrown out of the screen so I don't think there's a clean way to do a proper pixel-perfect scaling, you'll have to find the overlay resolution you like best.
It doesn't look like there is a bug in the new engine either, just that it was probably made without knowledge that some mods would add large panels to the UI.

6629e9148a472ZylonBane

6629e9148a4bd
Or the mod was developed by someone who never tested it at 640x480.

6629e9148a64egnartsch

6629e9148a69c
That monkey report was taken within Zygoptera's Arena mission.
Well, I thought that would be a stock report. Maybe I was wrong.

Indeed the settings 2 and 64 simply produce the same result. No matter what individual value you enter, the screen will always look like shot #2.
Or is there any info availlable what 2 or 64 would do differently ???
Thanks for pointing out the formula for the second variant, bluemess!



With that I was able to calculate how the Original Look and Feel would be calculated.
in order to achieve a more or less original look and feel (even on widescreen), you want to use the formula to calculate the factor for a fixed height of 480.
For a more modern look and feel that makes good use of the widescreen resolution you might want to achieve a fixed height of 640.
(Don't ask why it would be 640. It must be a mere coincidence related to the UI design, but it looks best imho, at least for 16:10 TFTs)

E.g. given a native resolution of 1680x1050 you get these results:

'Original' SS2 Look & Feel (o.k. widescreens adds some blank space horizontally, but the view is vertically optimized)
f=1050/480=2.1875
1680/f=768
d3d_disp_scaled_2d_overlay 768 480

'Modern' Look & Feel (making best use of the top of the screen, horizontal optimization)
f=1050/640=1.640625
1680/f=1024
d3d_disp_scaled_2d_overlay 1024 640
« Last Edit: 28. April 2013, 22:16:18 by gnartsch »

6629e9148a74agnartsch

6629e9148a793
By the way: why am I not allowed to open threads right in the appropriate sub-forum?
It seems I am only able/allowed to open new threads in 'Recreation', 'Engineering' & 'Helpdesk', but nowhere else?
This thread surely does not belong here.
6629e9148a907
Indeed, it belongs into the Helpdesk.
The other forums are file archives and only persons with upload rights can create new threads there, because every thread is about a download in these forums.

EDIT: If you had written a mod for SS2 I would gladly give you upload rights and then you could start a new topic about it in the SS2 mod archive. Until then you like most people can only reply to threads in the file archives. You can create new topics only in the Community boards.
« Last Edit: 28. April 2013, 22:57:21 by Kolya »

6629e9148a9advoodoo47

6629e9148a9f8
under normal circumstances, those are the subforums where 99% of all new topics should be posted anyway.

and yeah, moved to the helpdesk.

6629e9148ad89bluemess

6629e9148addd
[...]
Or is there any info availlable what 2 or 64 would do differently ???
[...]
Yes it is. It will try to do pixel perfect (multiply by integer numbers) UI (640x480) upscale as many times as it fits your resolution, up to 64 times. But it will stop at 2 because:

(640 * 2) (480 * 2) -> 1280 960 < 1680 1050 - fits OK

(640 * 3) (480 * 3) -> 1920 1440 > 1680 1050 - doesn't fit

6629e9148aefeSimplex

6629e9148af4b
So if I understood this correctly, for any res below 2560x1440 having anything else higher than "2" will not make any difference, yes?

Also, this research screen is cool :)

6629e9148b002voodoo47

6629e9148b04b
so it seems - no idea why the default setting is so high (64 would translate into 40 960*30 720, and even the craziest monitor configuration I know of is "only" 11 520*4 320). still, it should be the first value the user should try, as it should result in an optimally scaled hud in most cases.
6629e9148b2f4
My guess would be that 64 is the maximum value and it's set at the highest to ensure that it's always scaled to the biggest possible for the current resolution.

6629e9148b3a8bluemess

6629e9148b3fb
Author probably pick that value by hand choosing somewhere between good measure and ridiculous.

6629e9148b4abZylonBane

6629e9148b4fd
No, he picked "ridiculous", full stop. No doubt deliberately.

6629e9148b600bluemess

6629e9148b64e
Since we are putting that much thought to it, probably more than the author himself:

I think there is no actual technical limitation (like this 64) how many times UI can be enlarged, but that variable by definition takes integer values, so it couldn't be set to something like "bestfit" or "infinity", and some value had to be chosen. Setting it to 65535 would puzzle as too much, as 64 gave us enough of the riddle.
6629e9148b737
Also 65535 is not a power of 2.

6629e9148b807bluemess

6629e9148b853
There's no need for it to be power of 2, it could be any integer (natural, to be specific) value. Don't be mislead by this 64, programmer's nature makes them choose "round" numbers by their standards ;)

6629e9148b92egnartsch

6629e9148b978
Wow. There is really a discussion going on about this.
The odd thing: if the individual value (2, 3, ... 64) were factors, then factor 2 should not result in a vertically optimized UI.
2*(640x480) would be (1280x960) and with my resolution (1680x1050) there should be gaps.
So maybe it is really just an on/off switch?
Anyone seeing a difference at higher resolutions?
6629e9148ba57
Uh, gaps? Look the UI is an overlay. Its size has no business with your screen resolution, except it has to fit into it.
1 Guest is here.
from a TriOp commercial: The Face Slimmer Exercise Mouthpiece slips over the wearers natural lips to enhance the natural pout without the need for injections
Contact SMF 2.0.19 | SMF © 2016, Simple Machines | Terms and Policies
FEEP
6629e9148c2af