unrealcv icon indicating copy to clipboard operation
unrealcv copied to clipboard

changing resolution

Open tebishop opened this issue 9 years ago • 4 comments

I found after searching online that it's possible to change the resolution of the environment by using the 'setres WxH' command in the game console.

This works for display on screen, but when using the generate-images code, the results are still at 640x480, apart from the object mask, which is at the desired resolution. How would the render size (and perhaps other render settings) be passed on correctly for export to disk?

tebishop avatar Sep 16 '16 01:09 tebishop

It is currently hard-coded here. I will make this configurable in the next release (in a few days). I am working on setting up the Jenkins CI system.

qiuwch avatar Sep 16 '16 01:09 qiuwch

Hi @tebishop, in case it's helpful, I have successfully changed the resolution of the UnrealCV screenshots by editing the unrealcv.ini file, which for me is located at /Users/Shared/EpicGames/UE_4.14/Engine/Binaries/Mac/unrealcv.ini. This functionality was added relatively recently, so you should update to the latest version of UnrealCV.

mikeroberts3000 avatar Aug 13 '17 02:08 mikeroberts3000

I cannot find my config file. My "vget /unrealcv/status" only returns "Is Listening Client Connected 9000"

abhay-venkatesh avatar Oct 21 '17 19:10 abhay-venkatesh

we changed unrealcv.ini to [UnrealCV.Core] Port=9000 Width=1920 Height=1440 FOV=90.000000 EnableInput=True EnableRightEye=False

but after running "res = client.request('vget /unrealcv/status')", mwe still get: INFO:init:192:Got connection confirm: b'connected to fly' Is Listening Client Connected 9000 Configuration Config file: D:/qile/svn/unrealcv/UE4Binaries/fly/WindowsNoEditor/fly/Binaries/Win64/unrealcv.ini Port: 9000 Width: 640 Height: 480 FOV: 90.000000 EnableInput: true EnableRightEye: false

Width and Height are not changed

Eddie-91 avatar Nov 27 '20 03:11 Eddie-91

How to change the resolution of screenshot with unrealcv?

epicman22 avatar Nov 29 '22 07:11 epicman22

@epicman22 Here is an example of writing the unrealcv.ini file to change the resoluation before launching the unrealcv binary.

zfw1226 avatar May 22 '23 06:05 zfw1226