Camera tracking integration
=========================== Fixed compilation error with collada enabled.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user