From a70f2f258aaeab534621ad3ed471de67f2a825e0 Mon Sep 17 00:00:00 2001 From: YadiraF Date: Wed, 18 Jul 2018 20:41:44 +0800 Subject: [PATCH] update transform: add comment --- face3d/mesh/transform.py | 1 + 1 file changed, 1 insertion(+) diff --git a/face3d/mesh/transform.py b/face3d/mesh/transform.py index b05b6a0..93a3267 100644 --- a/face3d/mesh/transform.py +++ b/face3d/mesh/transform.py @@ -145,6 +145,7 @@ def lookat_camera(vertices, eye, at = None, up = None): return transformed_vertices ## --------- 3d-2d project. from camera space to image plane +# generally, image plane only keeps x,y channels, here reserve z channel for calculating z-buffer. def orthographic_project(vertices): ''' scaled orthographic projection(just delete z) assumes: variations in depth over the object is small relative to the mean distance from camera to object