diff options
author | Ton Roosendaal <ton@blender.org> | 2005-01-30 14:25:27 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-01-30 14:25:27 +0300 |
commit | 996374bb5a475eb68d50ec5d21b6921049300914 (patch) | |
tree | 8b045f89ed1355b5f62f082475db047ee2ebc5a5 /source/blender/blenkernel/intern/world.c | |
parent | 3180afe2cffd05f8cae26744c41a638b3168d51b (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/blenkernel/intern/world.c')
-rw-r--r-- | source/blender/blenkernel/intern/world.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/source/blender/blenkernel/intern/world.c b/source/blender/blenkernel/intern/world.c index 9676f08ee78..526176407a9 100644 --- a/source/blender/blenkernel/intern/world.c +++ b/source/blender/blenkernel/intern/world.c @@ -199,14 +199,6 @@ void init_render_world() for(a=0; a<MAX_MTEX; a++) if(R.wrld.mtex[a] && R.wrld.mtex[a]->tex) R.wrld.skytype |= WO_SKYTEX; - if(G.scene->camera && G.scene->camera->type==OB_CAMERA) { - Camera *cam= G.scene->camera->data; - if(cam->type==CAM_ORTHO) { - /* this is an estimation */ - R.wrld.miststa+= (float)fabs(R.viewmat[3][2]); - } - } - } else { memset(&R.wrld, 0, sizeof(World)); |