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/blenlib/intern/arithb.c
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/blenlib/intern/arithb.c')
-rw-r--r--source/blender/blenlib/intern/arithb.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/blenlib/intern/arithb.c b/source/blender/blenlib/intern/arithb.c
index fd2fb833d04..095f8fb5052 100644
--- a/source/blender/blenlib/intern/arithb.c
+++ b/source/blender/blenlib/intern/arithb.c
@@ -964,10 +964,10 @@ void printvecf( char *str, float v[3])
void printmatrix4( char *str, float m[][4])
{
printf("%s\n", str);
- printf("%f %f %f %f\n",m[0][0],m[0][1],m[0][2],m[0][3]);
- printf("%f %f %f %f\n",m[1][0],m[1][1],m[1][2],m[1][3]);
- printf("%f %f %f %f\n",m[2][0],m[2][1],m[2][2],m[2][3]);
- printf("%f %f %f %f\n",m[3][0],m[3][1],m[3][2],m[3][3]);
+ printf("%f %f %f %f\n",m[0][0],m[1][0],m[2][0],m[3][0]);
+ printf("%f %f %f %f\n",m[0][1],m[1][1],m[2][1],m[3][1]);
+ printf("%f %f %f %f\n",m[0][2],m[1][2],m[2][2],m[3][2]);
+ printf("%f %f %f %f\n",m[0][3],m[1][3],m[2][3],m[3][3]);
printf("\n");
}
@@ -975,9 +975,9 @@ void printmatrix4( char *str, float m[][4])
void printmatrix3( char *str, float m[][3])
{
printf("%s\n", str);
- printf("%f %f %f\n",m[0][0],m[0][1],m[0][2]);
- printf("%f %f %f\n",m[1][0],m[1][1],m[1][2]);
- printf("%f %f %f\n",m[2][0],m[2][1],m[2][2]);
+ printf("%f %f %f\n",m[0][0],m[1][0],m[2][0]);
+ printf("%f %f %f\n",m[0][1],m[1][1],m[2][1]);
+ printf("%f %f %f\n",m[0][2],m[1][2],m[2][2]);
printf("\n");
}