Arma 3
Dom's View Distance Mod
54 Comments
DomT602  [author] 3 Feb @ 9:30am 
@sagemodedomi Another mod may be competing to use the same key. Check your CBA key binds and add on options for ‘Dom’s View Distance Mod’
sagemodedomi 2 Feb @ 5:53pm 
My backslash doesn't open the menu. My salute is bound to a different key as well so I'm not sure what is causing it to not work.
DomT602  [author] 28 Jan @ 10:57am 
@ToNieFilip please join my discord and I can help you - this mod does not touch graphics. It only changes view distance and terrain grid, nothing else, the server you were playing on could have code to change your graphics settings
ToNieFilip 28 Jan @ 4:31am 
When i installed it and joined a server i got Counter strike 1.6 graphics instantly, 1 fps.
ToNieFilip 28 Jan @ 4:31am 
But it did touch them.
DomT602  [author] 27 Jan @ 1:53pm 
@ToNieFilip My mod doesn't touch graphics settings at all, so I think you may have a problem elsewhere
ToNieFilip 27 Jan @ 11:04am 
unable to config when joining serwer. set automatically to lowest graphic and lags the game out. 2/10
Komodo 20 Dec, 2024 @ 12:49pm 
nw Dom, ty for considering it
Zantza 16 Dec, 2024 @ 11:08am 
Thanks!
DomT602  [author] 16 Dec, 2024 @ 10:43am 
Hi @Zantza, I've just pushed an update as requested so you can no longer accidentally open the menu when in zeus
Zantza 13 Dec, 2024 @ 1:33pm 
When in Zeus and using the search fields, the GUI opens if you type into the search field with the key that's bound to the GUI. Can you implement a check for this?
Apricot_ale 9 Dec, 2024 @ 1:27pm 
Thanks for fix!
DomT602  [author] 9 Dec, 2024 @ 10:22am 
Hi @Apricot_ale, thanks for another bug report - I've found the problem and have just pushed an update, was an error when I remade the GUI :)
Hi @Komodo, I'll add it to the future list, as it'd require me to edit the GUI again which is my by far the hardest thing to find motivation to do
Apricot_ale 9 Dec, 2024 @ 4:56am 
Foot, car, boat, rotary did not have this problem.
Apricot_ale 9 Dec, 2024 @ 4:56am 
Dom I found a new bug. Can you reproduce it?

1. Open the VD menu, set Air VD/OD (3000m) by slider and close it.
2. Reopen the VD menu, set Air VD/OD (200m) by typing and close it.
3. Reopen the VD menu. Air OD is forced to be the same as the first slider value (3000m). Close it again.
4. Reopen the VD menu. Air VD is now the same as the OD slider value (3000m).
Komodo 2 Dec, 2024 @ 7:54am 
hi dom
can u add an option for a sync in % slider in the menu options for objects in relation to view distance, that would be dope

ty
Apricot_ale 20 Nov, 2024 @ 8:43am 
roger that! thanks!
DomT602  [author] 20 Nov, 2024 @ 2:10am 
Hi @Apricot_ale, I've added a few to the github, if you'd like to translate before I push the update :)
Apricot_ale 18 Nov, 2024 @ 10:33am 
Showing current (new) view distance and increase/decrease distance and new view distance with hotkey number is well.

like this (In/Decreased Key):
| Dom's View Distance |
| |
| View distance changed: |
| 2500m (+100m) |

Hotkey Version:
| Dom's View Distance |
| |
| View distance changed: |
| 3000m (HotKey 3) |

It might be a good idea to add an indicator like CHVD that lets you intuitively understand the new drawing distance.
| |||||----- | (5000m, 5/10)
| |||------- | (3000m, 3/10)
| ||||||||||+ | (11000~, 10+/10)
DomT602  [author] 17 Nov, 2024 @ 2:30pm 
@Apricot_ale Hiya, thats no problem - I can make it a setting (enabled by default) that can be turned on if wanted.
What would you like it to say?
I'm thinking:
'View Distance increased/decreased by x' with x being the increment/decrement value
'Hotkey 1 selected, view distance is now x' with x being the hotkey value?
Apricot_ale 17 Nov, 2024 @ 2:43am 
I'd like some kind of feedback that the view distance has changed after entering the hotkey, like a hint or a system message. please.
DomT602  [author] 9 Nov, 2024 @ 3:01am 
@Komodo
I have just uploaded a new version where ACE is now an optional, I have changed how UAV's are handled which will depend on whether you have ACE, but they should both be the same result. Enjoy!
Komodo 8 Nov, 2024 @ 1:43pm 
Hi Dom

Any chance of an non-ace version?
Apricot_ale 20 Jun, 2023 @ 9:57am 
Thank you for your response. It is surprising.
DomT602  [author] 20 Jun, 2023 @ 8:33am 
@Apricot_ale Thanks for the reply and repro - I've tested it and got the same thing, how unusual. I've pushed an update that will address this for future :)
Apricot_ale 20 Jun, 2023 @ 2:36am 
Repro:

parameter
-noLogs (maybe this works bad?)

Make newprofile,
go editor,
put a man,
start game,
open VD menu,
change VD,
close VD,
reOpen VD,
not saved!
Apricot_ale 20 Jun, 2023 @ 2:32am 
@DomT602
I found an interesting fact.
It's not working when make new profile!

Yes, It was working previously for me too.
I did a clean install of my PC and recreated my user profile.
Then it is no longer saved.

I wondered about it and once registered DT_(any)ViewDistance with setVariable as in the old version (of github), it now saves correctly.

Probably because the new profile doesn't have DT_(any)ViewDistance, getVariable returns missing and instead default value is selected every time.
And it seems the "set" cannot be saved in this missing.

The solution is to getVariable as init and setVariable only once if it is missing.
And since the processing is passed from next time, it should lead to lighter operation.
DomT602  [author] 19 Jun, 2023 @ 11:58am 
@Apricot_ale Heyo, thats unusual as it seems to have worked for everyone else and in my tests - its done via the 'set' command on various variables once they've been retrieved, and set (usually) updates the variable without me needing to use setVariable e.g https://github.com/DomT602/Doms-Arma-3-Mods/blob/main/DTVD/functions/fn_viewEditChanged.sqf#L15
Apricot_ale 19 Jun, 2023 @ 3:47am 
I am unable to save and load VD settings. When I open the VD menu, it always shows the default values (5000m). I looked at the github source and it looks like getVariable is used but not setVariable, how do you save and load the VD settings? Am I missing something?
DomT602  [author] 16 Apr, 2023 @ 1:43am 
@Whale I guess my question then asks how would you want this zoom based option to work, would you like a slider option through CBA settings which you can choose which allows you to select the multiplier thats applied, and then subsequently, if you set max object distance to the same as view distance, should it push through those limits with the multiplier or just stay as is? Feel free to join my discord to discuss how you'd like it implemented here :)
Whale 15 Apr, 2023 @ 4:22pm 
@Dom Finding the FoV and scaling setObjectViewdistance to it aren't hard. I put it in my own WHA nametags ages ago.

Here's diwako implementing it for DUI:
https://github.com/diwako/diwako_dui/blob/a2c06c58fb445580aadc358c24cb2eb1ea91fa97/addons/nametags/functions/fnc_calculateFadeValue.sqf#L35

ACE3 runs code every frame, which is hopefully not necessary:
https://github.com/acemod/ACE3/blob/master/addons/viewdistance/functions/fnc_setFovBasedOvdPFH.sqf

What's hard is making it event-based. Maybe addUserActionEventHandler(s) for every known zoom option in infantry and vehicles, and check calculateFadeValue every frame for a second or two after the button is pressed?

Note that DUI is APL-SA and ACE3 uses the G-PL license.
DomT602  [author] 15 Apr, 2023 @ 3:40pm 
@Whale Hi, thanks for the suggestions, I've just added a 3rd preset, plus an option to choose the highest terrain grid that players are allowed. For #2 I wouldn't mind seeing your suggestion as I'm unsure how you'd want it to affect the distance you're seeing, and I'd also have to look at how to link it in event-wise.
Whale 14 Apr, 2023 @ 8:55pm 
Are there any plans to add:
1. +/- keybinds to step viewdistance up or down in intervals, i.e. ~500m at a time? CH, AFI, and a few others use this, and it's (to me) more powerful than just two presets. Maybe if there could be 3 presets, that'd be enough?
2. FoV scaling object view distance (I can give you the code for this!) If you still want it to be fully event-based, maybe the keybinds for zoom and turret zoom could be intercepted?
3. Allowing admins to lock/require a minimum Terrain Grid, i.e. for TVTs? Important for fairness.
TheLocalPub 5 Apr, 2023 @ 9:29am 
Roger. We'll do some testing with the new update.
DomT602  [author] 4 Apr, 2023 @ 1:18pm 
@dad With the last update, there should be no times setTerrainGrid is used if the terrain grid value is left the same for all the options. It can be adjusted because when flying etc you don't really care about grass so could set it to a higher value to have better performance there.
I won't be removing the terrain grid from the menu, as its been in since the start as thats what people wanted when I initially made it. With the last update, keeping the grid the same will mean that command isn't ran and will hopefully prevent the issues you have been having.
If its still causing issues let me know and I can investigate further, but in my tests when moving between vehicle types and foot with the same grid selected, no stutter was present and the command wasn't ran. Even just having a big view distance change could cause a bit of a stutter.
TheLocalPub 4 Apr, 2023 @ 8:37am 
It might be the "standard" but it's a bad standard.
There is zero reason as to why it should adjust that when it can be set by the client, missions, or servers, like our server for example.

You mentioned to set the sliders similar between each vehicle type, but this still causes loading issues where users will completely freeze for a 2-4 seconds when getting out or in.

All I'm saying is, we've looked at the code to find the performance issues and we've determined it's the setTerrainGrid command applying each time.

Would you be happy for us to do edits where it removes anything related to setViewDistance and you could upload a new version with performance fixes when we send it back over?
DomT602  [author] 3 Apr, 2023 @ 1:38pm 
@dad That is really a standard with view distance menus that it also controls the terrain grid value which mainly affects how far away grass is visible ('grass view distance'). It'll only really affect performance briefly if you have one vehicle type using a higher value then the rest, if you use the same for all the options (25 - Default) you should not have any issue with it.
I have also just released a small update to cover off any resetting of a value which may have affected it, plus a few small code improvements.
TheLocalPub 3 Apr, 2023 @ 7:05am 
Is there any reason why your mod changes the setTerrainGrid value?
In theory, with this mod just adjusting view distance, it should do just only that.

We (a collective of users) have noticed performance issues, relating to the setTerrainGrid command that is applied.
Referencing your fn_getOutMan.sqf, setTerrainGrid is applied here for example.

Recommend removing anything related to terrain grid.
Armatop 10 Nov, 2022 @ 3:42pm 
why not do, as in all normal modes, adjust the range with buttons of 500m? why these crutches with two buttons, one reduces - the other increases.???
tiny prince 26 Sep, 2022 @ 12:46pm 
Thank you! I guess I didn't read your first message well enough, so thanks for being patient.
DomT602  [author] 26 Sep, 2022 @ 12:19pm 
@tiny prince Just click directly on Controls then follow to Configure Addons, that should get you there
tiny prince 26 Sep, 2022 @ 11:46am 
I only get the option to change what render distance the hotkeys switch to, not the keys themselves.
DomT602  [author] 26 Sep, 2022 @ 11:29am 
@tiny prince If you go Escape > Options > Controls > Configure Addons > Dom's Mods and you'll see them there
tiny prince 26 Sep, 2022 @ 7:02am 
How do you bind the custom hotkeys? I'm new to CBA and mods in general.
Sam 28 Jul, 2022 @ 7:28am 
@DomT602 Awesome. It works
DomT602  [author] 27 Jul, 2022 @ 1:41pm 
@Sam Hi Sam, just updated the mod now, hopefully you'll like the new features.
DomT602  [author] 22 Jul, 2022 @ 11:26am 
@Sam I'll get that done at some point next week (hopefully by Thursday), cheers for the feedback.
Sam 21 Jul, 2022 @ 11:57am 
Maybe Right Shift or Righ Ctrl. Yes - one key to instant set global view and object distance up to 40 000
DomT602  [author] 21 Jul, 2022 @ 8:01am 
@Sam Thats a great idea, I can setup 2 CBA keybinds that link to CBA Options where you can set a number up to 40000. Any suggestions for default keybind? I guess it'd be best to keep object and view distance linked with this key.
Sam 21 Jul, 2022 @ 2:19am 
@DomT602 I will often set view and object distance 40 000m on some AIR maps from debug. I would really like to see a CBA keybind in the future for applying one a pre-entered value for global view and object distance