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:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2010-01-10 17:08:59 +0300
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2010-01-10 17:08:59 +0300
commit622a65a297b82f6f63baff124f42e02a8f6ef29c (patch)
treef0a0fe4f5c7e53100e9b7979fdaa8dfd7c671803 /source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h
parent05603fa110e4e40a12db8d97789f8a56e62aa3f7 (diff)
Fixed a bug in SilhouetteGeomEngine::ImageToWorldParameter() that caused
instability issues regarding the view map creation. A new iterative solver of the 2D-to-3D inverse projection transformation problem was implemented. Instead of directly solving the problem in the direction from the 2D to 3D space, the new solver starts with an initial guess of an approximated solution and asymptotically approaches to the true solution by iteratively performing the forward 3D-to-2D projection transformation and improving the approximation. Preliminary tests with one simple and another complex scenes showed that the solver converges quickly (more and less 20 iterations in many cases, with a stopping criterion of a residual distance between the true and approximated solutions less than 1e-6 Blender Unit).
Diffstat (limited to 'source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h')
-rw-r--r--source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h b/source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h
index 8068eaf1bcf..29acbfc203f 100644
--- a/source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h
+++ b/source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h
@@ -55,9 +55,14 @@ protected:
protected:
Render* _re;
SceneRenderLayer* _srl;
- NodeGroup* _Scene;
- unsigned _numFacesRead;
- real _minEdgeSize;
+ NodeGroup* _Scene;
+ unsigned _numFacesRead;
+ real _minEdgeSize;
+ float _viewplane_left;
+ float _viewplane_right;
+ float _viewplane_bottom;
+ float _viewplane_top;
+ float _z_near, _z_far;
};
#endif // BLENDER_FILE_LOADER_H