Setup camera distance for both perspective and orthogonal mode.

master
Torsten Paul 2014-06-29 01:24:18 +02:00
parent 3709fc30b2
commit 6cb5e9218f
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ void Camera::setup(std::vector<double> params)
object_trans << params[0], params[1], params[2];
object_rot << params[3], params[4], params[5];
viewer_distance = params[6];
height = params[6];
} else if (params.size() == 6) {
type = Camera::VECTOR;
eye << params[0], params[1], params[2];