Fixed a bug in SilhouetteGeomEngine::ImageToWorldParameter() that caused
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Sun, 10 Jan 2010 14:08:59 +0000 (14:08 +0000)
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Sun, 10 Jan 2010 14:08:59 +0000 (14:08 +0000)
commit622a65a297b82f6f63baff124f42e02a8f6ef29c
treef0a0fe4f5c7e53100e9b7979fdaa8dfd7c671803
parent05603fa110e4e40a12db8d97789f8a56e62aa3f7
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).
source/blender/freestyle/intern/blender_interface/BlenderFileLoader.cpp
source/blender/freestyle/intern/blender_interface/BlenderFileLoader.h
source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp
source/blender/freestyle/intern/view_map/SilhouetteGeomEngine.cpp
source/blender/freestyle/intern/view_map/ViewMapBuilder.cpp