From dda38732d15ffc77e6a2bec861f859212c91f463 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 9 Aug 2011 15:12:20 +0000 Subject: Camera tracking integration =========================== Changes into sensor size use case. There was problem with vertical sensor size which can't actually affect on things due to we've got fixed image resolution. So as soon horizontal size gets defined, both of sensor height and vertical FOV is known and exposing it into UI makes things difficult to understand. That's why vertical sensor size was dropped. Also added pixel aspect to camera settings fo clip editor. Solver will sue this value rather than value from display aspect ratio. This pixel aspect would be copied to render settings after solving so things should match now between footage, solving anf footage. --- source/blender/editors/space_clip/space_clip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_clip/space_clip.c') diff --git a/source/blender/editors/space_clip/space_clip.c b/source/blender/editors/space_clip/space_clip.c index 558a53a88d9..ef33241bd51 100644 --- a/source/blender/editors/space_clip/space_clip.c +++ b/source/blender/editors/space_clip/space_clip.c @@ -478,7 +478,7 @@ static void movieclip_main_area_set_view2d(SpaceClip *sc, ARegion *ar) h= height; if(clip) - h*= clip->aspy/clip->aspx; + h*= clip->aspy/clip->aspx/clip->tracking.camera.pixel_aspect; winx= ar->winrct.xmax - ar->winrct.xmin + 1; winy= ar->winrct.ymax - ar->winrct.ymin + 1; -- cgit v1.2.3