Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2005-01-30 14:25:27 +0300
committerTon Roosendaal <ton@blender.org>2005-01-30 14:25:27 +0300
commit996374bb5a475eb68d50ec5d21b6921049300914 (patch)
tree8b045f89ed1355b5f62f082475db047ee2ebc5a5 /source/blender/blenloader
parent3180afe2cffd05f8cae26744c41a638b3168d51b (diff)
Fixed old annoyance; enabling true Ortho render in Blender.
It used to be a simple hack, scaling lens with 100, and moving the camera to the back with an equivalent amount. Because of the hack, making it 100% compatible with older files I could not achieve (yet?). To help reminding users, I've added a print when reading old files with Ortho cameras. Full description of how it works can be found here; http://www.blender3d.com/cms/Render_changes.515.0.html
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 37e21e39279..ad4b36f3b0b 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -4618,11 +4618,19 @@ static void do_versions(Main *main)
}
if(main->versionfile <= 236) {
Scene *sce= main->scene.first;
+ Camera *cam= main->camera.first;
while(sce) {
if(sce->r.postsat==0.0) sce->r.postsat= 1.0;
sce= sce->id.next;
}
+ while(cam) {
+ if(cam->ortho_scale==0.0) {
+ cam->ortho_scale= 256.0/cam->lens;
+ if(cam->type==CAM_ORTHO) printf("NOTE: ortho render has changed, tweak new Camera 'scale' value.\n");
+ }
+ cam= cam->id.next;
+ }
}
/* don't forget to set version number in blender.c! */