Design of an appropriate camera
Design of a camera that enables easy and intuitive overview of the planet.
Blueprint information
- Status:
- Not started
- Approver:
- Pavel Rojtberg
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- Andreas Franek
- Definition:
- New
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
The camera will look down on the planet at an angle. Let's say 45° for example. (not final)
The camera should be movable easily and intuitively. Pavel and I worked out 2 basic ideas for this.
1. We calculate 3 axes, first the one going through the camera and the centre of the planet. Using this we calculate two axes perpendicular to the first. For one of them we also use the constraint that it also has to be perpendicular to the up vector of the camera. Up/down will rotate around this axis. The third axis is perpendicular to the first two and left/right will rotate around it.
2.We calculate 2 axes, the first going through the centre of the planet and the point the camera is looking at on the planet surface. Left/right will rotate around this axis. The second axis is perpendicular to a plane spanned by the first axis and the up vector of the camera and goes through the centre of the planet. Up/down rotates around this axis.
I think the second approach might be more intuitive, since left/right does not move the camera out of the centre of attention. But this has to be tested out, since moving around the planet could be complicated using this approach. Additionally the first approach is easier to implement since figuring out the point on the planet surface, the camera is looking on is not necessary.