Camera tracking integration

===========================

Fixed compilation error with collada enabled.
This commit is contained in:
Sergey Sharybin
2011-09-26 10:16:11 +00:00
parent ae8c7c6b10
commit dc3ba55097

View File

@@ -73,7 +73,7 @@ void CamerasExporter::operator()(Object *ob, Scene *sce)
if (cam->type == CAM_PERSP) {
COLLADASW::PerspectiveOptic persp(mSW);
persp.setXFov(RAD2DEGF(focallength_to_hfov(cam->lens), cam->sensor_x), "xfov");
persp.setXFov(RAD2DEGF(focallength_to_hfov(cam->lens, cam->sensor_x)), "xfov");
persp.setAspectRatio((float)(sce->r.xsch)/(float)(sce->r.ysch),false,"aspect_ratio");
persp.setZFar(cam->clipend, false , "zfar");
persp.setZNear(cam->clipsta,false , "znear");