Back to Home

Myth of Soma Account Management

By clicking GO to login you are agreeing to the terms and conditions and privacy policy. > Register an Account > Forgot your password?

The Forum

Scaling the UI

Author Content Date
So when we play with custom resolutions the UI remains small and doesn't scale.

Is that something that can be changed? We don't seem to be short of people that can do graphics by themselves so... ? Or is it that we don't have the actual game source code?
PM Reply Quote
[quote="FOXO_STORE"]So when we play with custom resolutions the UI remains small and doesn't scale. Is that something that can be changed? We don't seem to be short of people that can do graphics by themselves so... ? Or is it that we don't have the actual game source code?[/quote]
i resized it once in the past using the tools. it just doesnt look right.
PM Reply Quote
[quote="FRINGE"]i resized it once in the past using the tools. it just doesnt look right.[/quote]
Currently the UI has an offset applied to centre within the screen resolution being used. I have already started experimenting and implementing a way to scale the UI instead.

It will just draw the UI into separate draw surfaces and then draw to the main surface with scaling. A lot of changes need to be made but should be able to do what I have in mind.

I have also thought about allowing each part of the UI to scale to different sizes, allowing the UI to be moved around and positions saved (though this does require some edits to the UI images to remove anything that would have originally fitted to another part of the UI), and transparency (again being able to set it different for each part of the UI).

Ignore how the chat UI is offset in the below images. I didn't yet remove the applied UI offsets when resolution is > 800x600. All images below show Chat History UI in native 800x600 scaled to a higher or lower resolution.

1024x768 resolution with UI scaled to 1024x768


1024x768 resolution with UI scaled to 1024xSmaller Height (Forgot what it was :P)


1024x768 resolution with UI scaled to a smaller size


1680x1050 resolution with UI scaled to 125% of native 800x600 which is 1000x750 (in this image the UI offset had been removed)


There could be issues with fonts because with the above method the fonts would be in original size and it is the output that is being scaled. Will see what happens, might be able to come up with another method that allows for fonts to draw in a scaled font size and then it wouldn't be scaling the output.

See my reply here also: https://myth-of-soma.com/Forum/Thread.asp?ID=23432&title=font+size+In+game&Page=1#post150693
PM Reply Quote
[quote="FINITO"]Currently the UI has an offset applied to centre within the screen resolution being used. I have already started experimenting and implementing a way to scale the UI instead. It will just draw the UI into separate draw surfaces and then draw to the main surface with scaling. A lot of changes need to be made but should be able to do what I have in mind. I have also thought about allowing each part of the UI to scale to different sizes, allowing the UI to be moved around and positions saved (though this does require some edits to the UI images to remove anything that would have originally fitted to another part of the UI), and transparency (again being able to set it different for each part of the UI). Ignore how the chat UI is offset in the below images. I didn't yet remove the applied UI offsets when resolution is > 800x600. All images below show Chat History UI in native 800x600 scaled to a higher or lower resolution. 1024x768 resolution with UI scaled to 1024x768 [img]https://i.imgur.com/2ql8Egv.png[/img] 1024x768 resolution with UI scaled to 1024xSmaller Height (Forgot what it was :P) [img]https://i.imgur.com/QoyrVXG.png[/img] 1024x768 resolution with UI scaled to a smaller size [img]https://i.imgur.com/sv7Zm1k.png[/img] 1680x1050 resolution with UI scaled to 125% of native 800x600 which is 1000x750 (in this image the UI offset had been removed) [img]https://i.imgur.com/1nl4bLt.png[/img] There could be issues with fonts because with the above method the fonts would be in original size and it is the output that is being scaled. Will see what happens, might be able to come up with another method that allows for fonts to draw in a scaled font size and then it wouldn't be scaling the output. See my reply here also: [url]https://myth-of-soma.com/Forum/Thread.asp?ID=23432&title=font+size+In+game&Page=1#post150693[/url][/quote]
Would it be another option to offer a different set of UI graphics per resolution?

E.g offer 1024x768, 1280x720 etc and then whatever you need to do with windows and menus plus any font scaling.

Realise that’s not a lean way to do it.
PM Reply Quote
[quote="FOXO_STORE"]Would it be another option to offer a different set of UI graphics per resolution? E.g offer 1024x768, 1280x720 etc and then whatever you need to do with windows and menus plus any font scaling. Realise that’s not a lean way to do it. [/quote]
"FOXO_STORE"Would it be another option to offer a different set of UI graphics per resolution?

E.g offer 1024x768, 1280x720 etc and then whatever you need to do with windows and menus plus any font scaling.

Realise that’s not a lean way to do it.


Yeah but that would take even more time to implement and wouldn't have any in between sizes. Scaling should work well enough and then maybe redo the UI in a higher native resolution or a few resolutions to scale to and from.
PM Reply Quote
[quote="FINITO"][quote="FOXO_STORE"]Would it be another option to offer a different set of UI graphics per resolution? E.g offer 1024x768, 1280x720 etc and then whatever you need to do with windows and menus plus any font scaling. Realise that’s not a lean way to do it. [/quote] Yeah but that would take even more time to implement and wouldn't have any in between sizes. Scaling should work well enough and then maybe redo the UI in a higher native resolution or a few resolutions to scale to and from.[/quote]
Finito: Is there a way to easily change the Hsoma UI to DSOMA ui within the client files? could i edit my own files to do this easily or not?
PM Reply Quote
[quote="CUPID"]Finito: Is there a way to easily change the Hsoma UI to DSOMA ui within the client files? could i edit my own files to do this easily or not?[/quote]
On a related note, how difficult would it be to add an upscaling option for the entire game window?

A lot of modern games have this option for GPU optimisation reasons, but the reason I'd like it for Soma is because when you increase the resolution none of the sprite sizes in-game actually increase. This results in tiny sprites and buttons that are difficult to click on with precision.

I ain't as young as I used to be and have difficulty clicking on the tiny sprites sometimes. Playing in full-screen is an option but I'd prefer this to be available in Windowed mode. Of course, there are other options I could do on my side, but they're tedious to do all the time (e.g. changing desktop resolution and adjusting mouse sensitivities) and but would prefer an upscale option so I'm not always having to change my environment!

So for example, I could say the game window is rendered at 800x600, but upscaled by 2x to 1600x1200.

The only issue with this will result in the game looking pixelated (stretched/duplicated pixels), but I'm not exactly playing this game for the high-fidelity graphics :P

PM Reply Quote
[quote="JARAGOONDOO"]On a related note, how difficult would it be to add an upscaling option for the entire game window? A lot of modern games have this option for GPU optimisation reasons, but the reason I'd like it for Soma is because when you increase the resolution none of the sprite sizes in-game actually increase. This results in tiny sprites and buttons that are difficult to click on with precision. I ain't as young as I used to be and have difficulty clicking on the tiny sprites sometimes. Playing in full-screen is an option but I'd prefer this to be available in Windowed mode. Of course, there are other options I could do on my side, but they're tedious to do all the time (e.g. changing desktop resolution and adjusting mouse sensitivities) and but would prefer an upscale option so I'm not always having to change my environment! So for example, I could say the game window is rendered at 800x600, but upscaled by 2x to 1600x1200. The only issue with this will result in the game looking pixelated (stretched/duplicated pixels), but I'm not exactly playing this game for the high-fidelity graphics :P [/quote]
Nice one Finito.

Would be quite a task that would Jarog but worth it in terms of actually making the game nicer to play in :)
PM Reply Quote
[quote="FOXTRCK"]Nice one Finito. Would be quite a task that would Jarog but worth it in terms of actually making the game nicer to play in :)[/quote]
Yeah up-scaling is basically what I want to achieve but want to separate the GUI from the rest of the game so they can scale independently.

Can quite easily implement the up-scaling for windowed mode though. Will look at adding a up-scale option to the ini file and then when set and playing in windowed mode it will render everything in 800x600 and up-scale to the resolution you have set.

Edit: Thinking about it will probably add a separate scale to resolution. So that you can render the game in a resolution then scale it up to another resolution.
PM Reply Quote
[quote="FINITO"]Yeah up-scaling is basically what I want to achieve but want to separate the GUI from the rest of the game so they can scale independently. Can quite easily implement the up-scaling for windowed mode though. Will look at adding a up-scale option to the ini file and then when set and playing in windowed mode it will render everything in 800x600 and up-scale to the resolution you have set. Edit: Thinking about it will probably add a separate scale to resolution. So that you can render the game in a resolution then scale it up to another resolution.[/quote]
"FINITO"Yeah up-scaling is basically what I want to achieve but want to separate the GUI from the rest of the game so they can scale independently.

Can quite easily implement the up-scaling for windowed mode though. Will look at adding a up-scale option to the ini file and then when set and playing in windowed mode it will render everything in 800x600 and up-scale to the resolution you have set.

Edit: Thinking about it will probably add a separate scale to resolution. So that you can render the game in a resolution then scale it up to another resolution.


That would be amazing. Thanks a bunch :)
PM Reply Quote
[quote="JARAGOONDOO"][quote="FINITO"]Yeah up-scaling is basically what I want to achieve but want to separate the GUI from the rest of the game so they can scale independently. Can quite easily implement the up-scaling for windowed mode though. Will look at adding a up-scale option to the ini file and then when set and playing in windowed mode it will render everything in 800x600 and up-scale to the resolution you have set. Edit: Thinking about it will probably add a separate scale to resolution. So that you can render the game in a resolution then scale it up to another resolution.[/quote] That would be amazing. Thanks a bunch :)[/quote]
i would like something like the mir user interface where u can move the potion belt about or the spell belt about that would be pretty sweet
PM Reply Quote
[quote="CYA"]i would like something like the mir user interface where u can move the potion belt about or the spell belt about that would be pretty sweet[/quote]
Nice Finito. I think that's what the result Finito is going for Cya, all windows being movable / changeable.

Would be so cool.
PM Reply Quote
[quote="FOXTRCK"]Nice Finito. I think that's what the result Finito is going for Cya, all windows being movable / changeable. Would be so cool.[/quote]
So have the up scaling working except for an issue with the mouse cursor that still trying to sort out .

Game render at 800x600 up-scaled to screen resolution 1680x1050


Game render at 1280x800 up-scaled to screen resolution 1680x1050


Unfortunately NVIDIA drivers don't use any kind of hardware filtering on the up scale.

Here is what it could look like with Linear interpolation on the scaling and a sharpen pass:
This is Game render at 800x600 up-scaled to screen resolution 1680x1050


This is Game render at 1280x800 up-scaled to screen resolution 1680x1050

PM Reply Quote
[quote="FINITO"]So have the up scaling working except for an issue with the mouse cursor that still trying to sort out . Game render at 800x600 up-scaled to screen resolution 1680x1050 [url=https://image.ibb.co/h3shJ9/Soma_Upscale1.png][img]https://image.ibb.co/h3shJ9/Soma_Upscale1.png[/img][/url] Game render at 1280x800 up-scaled to screen resolution 1680x1050 [url=https://image.ibb.co/jFRL5p/Soma_Up_Scale2.png][img]https://image.ibb.co/jFRL5p/Soma_Up_Scale2.png[/img][/url] Unfortunately NVIDIA drivers don't use any kind of hardware filtering on the up scale. Here is what it could look like with Linear interpolation on the scaling and a sharpen pass: This is Game render at 800x600 up-scaled to screen resolution 1680x1050 [url=https://image.ibb.co/erOpy9/Soma_Up_Scale_Interpolation.png][img]https://image.ibb.co/erOpy9/Soma_Up_Scale_Interpolation.png[/img][/url] This is Game render at 1280x800 up-scaled to screen resolution 1680x1050 [url=https://image.ibb.co/hNomBU/Soma_Scaled.png][img]https://image.ibb.co/hNomBU/Soma_Scaled.png[/img][/url] [/quote]
awesome, would it possible to change the scaling while ingame on the fly? would be good for changing from smaller in town to higher at hunting without having to relog.

currently i have 5 diffirent folder with diffirent resolutions lol
PM Reply Quote
[quote="FRINGE"]awesome, would it possible to change the scaling while ingame on the fly? would be good for changing from smaller in town to higher at hunting without having to relog. currently i have 5 diffirent folder with diffirent resolutions lol[/quote]
"FRINGE"awesome, would it possible to change the scaling while ingame on the fly? would be good for changing from smaller in town to higher at hunting without having to relog.

currently i have 5 diffirent folder with diffirent resolutions lol


It should be possible but not sure how long it would take to implement, probably a while. It is something I want to add eventually though and will be part of a new options UI (was planning on in-game only but that is a little annoying and would be nice to have access to options UI from login screen also). Anyway this is going off the topic of scaling / UI scaling a bit :P.
PM Reply Quote
[quote="FINITO"][quote="FRINGE"]awesome, would it possible to change the scaling while ingame on the fly? would be good for changing from smaller in town to higher at hunting without having to relog. currently i have 5 diffirent folder with diffirent resolutions lol[/quote] It should be possible but not sure how long it would take to implement, probably a while. It is something I want to add eventually though and will be part of a new options UI (was planning on in-game only but that is a little annoying and would be nice to have access to options UI from login screen also). Anyway this is going off the topic of scaling / UI scaling a bit :P.[/quote]

 

Please sign in with one of your characters to reply