Page MenuHome

ndof-speed-adj.patch

ndof-speed-adj.patch

Index: blender/source/blender/src/view.c
===================================================================
--- blender/source/blender/src/view.c (revision 15701)
+++ blender/source/blender/src/view.c (working copy)
@@ -651,9 +651,9 @@
+0.01, // Tx
+0.01, // Tz
+0.01, // Ty
- +0.0015, // Rx
- +0.0015, // Rz
- +0.0015 // Ry
+ +0.00045, // Rx
+ +0.00045, // Rz
+ +0.00045 // Ry
};
// statics for controlling G.vd->dist corrections.
@@ -745,9 +745,9 @@
// Apply rotation
// Rotations feel relatively faster than translations only in fly mode, so
// we have no choice but to fix that here (not in the plugins)
- rvec[0] = -0.5 * dval[3];
- rvec[1] = -0.5 * dval[4];
- rvec[2] = -0.5 * dval[5];
+ rvec[0] = -dval[3];
+ rvec[1] = -dval[4];
+ rvec[2] = -dval[5];
// rotate device x and y by view z
@@ -1208,13 +1208,15 @@
/* fetch the current state of the ndof device & enforce dominant mode if selected */
getndof(fval);
+
+ // enforce dominant mode if selected
if (G.vd->ndoffilter)
filterNDOFvalues(fval);
// put scaling back here, was previously in ghostwinlay
- fval[0] = fval[0] * (1.0f/600.0f);
- fval[1] = fval[1] * (1.0f/600.0f);
+ fval[0] = fval[0] * (1.0f/400.0f);
+ fval[1] = fval[1] * (1.0f/400.0f);
fval[2] = fval[2] * (1.0f/1100.0f);
fval[3] = fval[3] * 0.00005f;
fval[4] =-fval[4] * 0.00005f;

File Metadata

Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ae/28/bda56dd63229c0ae9393aa0180e3

Event Timeline