Made aspx/y into floats so we can render precise regions (for apricot terrain baking)

This commit is contained in:
2008-04-09 15:46:26 +00:00
parent 9f6080cf1b
commit 235f793f28
4 changed files with 60 additions and 51 deletions

View File

@@ -125,14 +125,14 @@ def imageFromObjectsOrtho(objects, path, width, height, smooth, alpha= True, cam
# camera is wider then image res.
# to make the image wider, reduce the aspy
asp_diff= asp_image_res/asp_cam_mat
min_asp= int(round(asp_diff * 200))
min_asp= asp_diff * 200
#print 'X', min_asp
elif asp_cam_mat < asp_image_res: # asp_cam_mat < asp_image_res
# camera is narrower then image res
# to make the image narrower, reduce the aspx
asp_diff= asp_cam_mat/asp_image_res
min_asp= int(round(asp_diff * 200))
min_asp= asp_diff * 200
#print 'Y', min_asp
else:
min_asp= 200