I'm trying to set the 3D Camera of the SceneView in the Java SDK and I cannot find a "field of view" / "angle of view" member. I was wondering how the camera's field of view is being set, since I need a way to change it according to the horizontal and vertical field of views.

  • which field of view are you talking about ? The IFOV of pixel, the FOV of the optical device (angle) or the extent of the map viewed by the camera ?
    – radouxju
    Oct 23 '18 at 6:43
  • the FOV of the optical device (angle)
    – user130410
    Oct 23 '18 at 11:02
  • Please use the edit button beneath your question to revise it with any requested clarifications.
    – PolyGeo
    Oct 24 '18 at 11:21

As far as I understand, the camera does not work like a real camera but gives you the line of sight that is needed to build the perspective. Instead of manipulating the camera properties, you should manipulate the view properties based on its extent or the zoom of the map. Of course, this needs some manipulations of the variable, knowing that the scale = "extent on map"/"extent in reality" and that AFOV = 2* (tan-1) ("extent in reality"/(2*"distance between camera and object")


Make sure you use v100.6, where a SetFieldOfView method was added to the SceneView control (it's not directly on the camera). The method takes the horizontal FoV, and the vertical is a function of the width/height ratio of the control. There's another overload that allows you to "squish" the vertical ratio as well, if you have some specific camera matching needs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy