aboutsummaryrefslogtreecommitdiff
path: root/src/poser_charlesrefine.c
diff options
context:
space:
mode:
authorCharles Lohr <lohr85@gmail.com>2018-04-04 03:10:21 +0000
committerCharles Lohr <lohr85@gmail.com>2018-04-04 03:10:21 +0000
commit872829b375ec0bc5bdbf9b223cf49ac1b4055de2 (patch)
treeac4e7ebafc01eaf26dada863129396f1326a4a1f /src/poser_charlesrefine.c
parent52c11484ca8ada2e163cbbae72d0d417f0342a38 (diff)
downloadlibsurvive-872829b375ec0bc5bdbf9b223cf49ac1b4055de2.tar.gz
libsurvive-872829b375ec0bc5bdbf9b223cf49ac1b4055de2.tar.bz2
Ok, it works!
Diffstat (limited to 'src/poser_charlesrefine.c')
-rw-r--r--src/poser_charlesrefine.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/poser_charlesrefine.c b/src/poser_charlesrefine.c
index e6f6a57..61bd575 100644
--- a/src/poser_charlesrefine.c
+++ b/src/poser_charlesrefine.c
@@ -141,9 +141,9 @@ int PoserCharlesRefine(SurviveObject *so, PoserData *pd) {
#define MIN_HIT_QUALITY 0.5 //Determines which hits to cull.
#define HIT_QUALITY_BASELINE 0.0001 //Determines which hits to cull. Actually SQRT(baseline) if 0.0001, it is really 1cm
-#define CORRECT_LATERAL_POSITION_COEFFICIENT 0.2 //Explodes if you exceed 1.0
-#define CORRECT_TELESCOPTION_COEFFICIENT 1.0 //Converges even as high as 10.0 and doesn't explode.
-#define CORRECT_ROTATION_COEFFICIENT 5.0 //This starts to fall apart above 5.0, but for good reason. It is amplified by the number of points seen.
+#define CORRECT_LATERAL_POSITION_COEFFICIENT 0.1 //Explodes if you exceed 1.0
+#define CORRECT_TELESCOPTION_COEFFICIENT 0.5 //Converges even as high as 10.0 and doesn't explode.
+#define CORRECT_ROTATION_COEFFICIENT 1.0 //This starts to fall apart above 5.0, but for good reason. It is amplified by the number of points seen.
#define ROTATIONAL_CORRECTION_MAXFORCE 0.10
//Step 1: Determine standard of deviation, and average in order to
@@ -299,7 +299,7 @@ int PoserCharlesRefine(SurviveObject *so, PoserData *pd) {
//correction_in_object_space[0], correction_in_object_space[1], correction_in_object_space[2],
//corrective_quaternion[0],corrective_quaternion[1],corrective_quaternion[1],corrective_quaternion[3]);
}
- printf( "Applying: %f %f %f %f\n", correction[0], correction[1], correction[2], correction[3] );
+ //printf( "Applying: %f %f %f %f\n", correction[0], correction[1], correction[2], correction[3] );
//Apply our corrective quaternion to the output.
quatrotateabout( object_pose_out.Rot, object_pose_out.Rot, correction );
quatnormalize( object_pose_out.Rot, object_pose_out.Rot );