achirkin / qua-view

Web app written in Haskell (GHCJS) for visualizing building geometry

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add default camera position

achirkin opened this issue · comments

Another scenario property:

[root]
  - properties:
      - defaultCameraFocus: [x,y,z]
      - defaultCameraViewDist: Number
      - defaultCameraViewAngles: [phi,theta]

defaultCameraFocus should be the same as underlying reference system coordinates.
Distance, probably, in meters, angles in radians.
This should affect the position loaded when user presses camera button, and also should be triggered at scenario load event.

Look at https://github.com/achirkin/qua-view/blob/master/src/Program/Model/Camera.hs#L175 to get an idea how this works