-
Notifications
You must be signed in to change notification settings - Fork 233
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
Focal Length #275
Comments
You can specify the fieldOfView: |
The focal length is not exposed to the python controller, and it is also not hooked up by default in the Unity side of the framework. The focal length value of the camera can be used to calculate frustrum and field of view, but that would require editing camera settings in the Unity Editor. You would need to edit the camera of the agent in the Unity Editor by toggling the You can adjust field of view using the action listed above by @roozbehm |
thank you @roozbehm @winthos for the helping, so I need to modify the camera parameters using Unity to change the focal length. So now we can change FOV, but please what do you think if I change the field of view to get the desired focal length without modification with Unity using one of the following field of view formula? is that work? :
|
Hi, Please which file I need to edit the camera settings to change the focal length? thanks in advance. |
First make sure you download the correct version of the Unity editor (2018.3.6) from the Unity archive: https://unity3d.com/get-unity/download/archive Once you have that, open up the From here, navigate to the From here, double click the Now that you have the prefab open, find the object called Once you find that, selecting the FirstPersonCharacter will allow you to see its components in the Note that the default settings of the Physical Camera mode will not be the same as the default settings of the camera, so scenes will look different when this mode is toggled on sense the camera is not the same. I would watch for near plane clipping issues if messing with the camera, as the positions of objects in the scene and where the agent can see them from are made assuming the camera has not been changed. Once you are done with your changes, make sure to save them with the Additionally, if you would like to change focal length or other camera values at runtime, you can access them via the Camera Component: https://docs.unity3d.com/ScriptReference/Camera.html |
Hello @winthos, |
We will look into adding this as an exposed setting in a future release. |
Hi,
Please, how can I change the focal length of the camera and the field of view?
Thanks in advance.
The text was updated successfully, but these errors were encountered: