• Hello Guest!

    We have recently updated our Site Policies regarding the use of Non Commercial content within Paid Content posts. Please read the new policy here.

    An offical announcement about this new policy can be read on our Discord.

    ~The VaMHub Moderation Team
  • Hello Guest!

    We posted an announcment regarding upcoming changes to Paid Content submissions.

    Please see this thread for more information.

Resource icon

Guides VaM Command Line Parameters

Every Unity game supports a number of command line arguments. In the case of VaM, particularly interesting are those to control VR mode, screen resolution as well as fullscreen mode. Why would you want to use this? Sometimes you want to quickly switch resolutions without going through the VaM Launcher which forces you to launch in VR first. Maybe because you want to record video with a particular resolution or aspect ratio?

Parameter: -vrmode X
Force the application to run with a particular VR device/software. This can also be "None", to run in Desktop mode.​
-vrmode None
-vrmode OpenVR
-vrmode oculus
Parameter: -screen-width X -screen-height Y
Override the default screen width and height. X and Y must be integer from a supported resolution. When in window mode, you can use more or less arbitrary integer values, but of course it has to fit on your screen. Note that VaM UI does not react well to weird aspect ratios.​
-screen-width 1920
-screen-height 1080

Parameter: -screen-fullscreen X
Override the default full-screen state. This must be 0 or 1 to force either window or fullscreen mode.​
-screen-fullscreen 1
More parameter documentation can be found here, look for the "Unity Standalone Player command line arguments" section.


Examples
With this information, you can now create a Batch file (".bat") that launches VaM directly with these settings. Just make a copy of the "VaM (Desktop Mode).bat" you already got in your VaM directory and modify from there. Some examples below. All of these examples are ZIPed up and attached to this resource for easy download and use. Extract to your VaM directory and delete those you don't need.

START "VaM" VaM.exe -vrmode None -screen-width 1280 -screen-height 720 -screen-fullscreen 0
START "VaM" VaM.exe -vrmode None -screen-width 1920 -screen-height 1080 -screen-fullscreen 0
START "VaM" VaM.exe -vrmode None -screen-width 1920 -screen-height 1080 -screen-fullscreen 1
START "VaM" VaM.exe -vrmode None -screen-width 3440 -screen-height 1440 -screen-fullscreen 1
START "VaM" VaM.exe -vrmode None -screen-width 3840 -screen-height 2160 -screen-fullscreen 1

What if you want to record a side-by-side video? Maybe something where you compare something old to new? You could try something like this: Two 960x1080 video streams put side-by-side gives you a nice regular 1920x1080. I think you get the idea what kind of flexibility this gives to you.
START "VaM" VaM.exe -vrmode None -screen-width 960 -screen-height 1080 -screen-fullscreen 0

This is for example how the following video came together. Video editing to combine both videos and adding the text was done with the free version of DaVinci Resolve:



PatreonBanner480.png
Author
MacGruber
Downloads
950
Views
8,822
Version
2021-05-24
First release
Last update
Rating
5.00 star(s) 5 ratings

More resources from MacGruber

Latest reviews

What needed. Thank you.
Upvote 0
Thank you very much this was driving me up a wall!
Upvote 0
I've been using it for a while and didn't even know "VR" batch file was not precise , having a quest 2 headset. Thanks!
Upvote 0
Thank you so much Sir. This sort of technical info can be difficult to locate - appreciate all your work and love your essentials package!
Upvote 0
Many thanks MacGruber! Already tried to figure this out before but was not successful neither was my question in VaM Discord answered. Therefore I'm very happy that you took the time to document this feature.
Upvote 0
Back
Top Bottom