Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change fieldOfView #34

Closed
raminia opened this issue Feb 28, 2018 · 9 comments
Closed

How to change fieldOfView #34

raminia opened this issue Feb 28, 2018 · 9 comments

Comments

@raminia
Copy link

raminia commented Feb 28, 2018

I realized the field Of View is fixed and the interface does not support changing it. Is there any specific reason for this limitation or this is just not exposed?

@ekolve
Copy link

ekolve commented Feb 28, 2018

You might be able to get what you need by adjusting the width of the player. Can you try starting the environment as follows:

controller.start(player_screen_width=2000) # this can be any number >=300

That should give you a pretty large field of view

@raminia
Copy link
Author

raminia commented Feb 28, 2018

How about vertical FOV?

@ekolve
Copy link

ekolve commented Feb 28, 2018

controller.start(player_screen_height=2000) # 

@ekolve
Copy link

ekolve commented Feb 28, 2018

though if you want a square aspect ratio and a larger field of view, we would have to parameterize some way for the camera position to be modified - its possible just not exposed.

@ElizabethDuo
Copy link

One more question about FOV. Now in thor it is first-person view, can I change it into third-person view?

@ekolve
Copy link

ekolve commented Jun 26, 2018

@ElizabethDuo - could you open a separate issue to discuss a third person camera view?

@ElizabethDuo
Copy link

@ekolve already open issue #65, thanks for your attention!

@ekolve
Copy link

ekolve commented Oct 2, 2018

In version 0.044 (just released), I have added fieldOfView as a parameter to the Initialize action. Please take a look here http://ai2thor.allenai.org/documentation/actions. The value corresponds to this value on the Camera in Unity3d: https://docs.unity3d.com/ScriptReference/Camera-fieldOfView.html

@ekolve
Copy link

ekolve commented Apr 4, 2019

Fixed with version 0.0.44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants