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:
authorJean-Luc Peurière <jlp@nerim.net>2007-06-13 00:01:28 +0400
committerJean-Luc Peurière <jlp@nerim.net>2007-06-13 00:01:28 +0400
commitedc6512ba6528fce4442f9b20875d1a301a0ceef (patch)
tree929c8cd8e32cc3aa44d41fdde1c55a86b93ba78c /source/blender/src/view.c
parent6cc1269d976641e6fdac59d1c1afbc96ae3aab8b (diff)
first workable version on Os X
work only in non camera mode in 3D view need the external plug-in to be compiled separately line 894 of ghostwinlay.c must be replaced with values adapted at your system see mailing list for features planned and how to use
Diffstat (limited to 'source/blender/src/view.c')
-rw-r--r--source/blender/src/view.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/source/blender/src/view.c b/source/blender/src/view.c
index e26b4526ebe..287f86796c5 100644
--- a/source/blender/src/view.c
+++ b/source/blender/src/view.c
@@ -827,6 +827,8 @@ void viewmoveNDOF(int mode)
float diff[4];
float d, curareaX, curareaY;
+//printf("passing here \n");
+
/* Sensitivity will control how fast the view rotates. The value was
* obtained experimentally by tweaking until the author didn't get dizzy watching.
* Perhaps this should be a configurable user parameter.
@@ -852,16 +854,18 @@ void viewmoveNDOF(int mode)
* record how much time has passed. clamp at 10 Hz
* pretend the previous frame occured at the clamped time
*/
- now = PIL_check_seconds_timer();
- frametime = (now - prevTime);
- if (frametime > 0.1f){ /* if more than 1/10s */
- frametime = 1.0f/60.0; /* clamp at 1/60s so no jumps when starting to move */
- }
- prevTime = now;
- sbadjust *= 60 * frametime; /* normalize ndof device adjustments to 100Hz for framerate independence */
+// now = PIL_check_seconds_timer();
+ // frametime = (now - prevTime);
+ // if (frametime > 0.1f){ /* if more than 1/10s */
+ // frametime = 1.0f/60.0; /* clamp at 1/60s so no jumps when starting to move */
+// }
+// prevTime = now;
+ // sbadjust *= 60 * frametime; /* normalize ndof device adjustments to 100Hz for framerate independence */
/* fetch the current state of the ndof device */
getndof(fval);
+ // printf(" motion command %f %f %f %f %f %f %f \n", fval[0], fval[1], fval[2],
+ // fval[3], fval[4], fval[5], fval[6]);
/* set object offset */
if (ob) {