Here is an example how to use Dynamic
inside Manipulate
for smooth rotation. But it does not work for the following code.
Manipulate[
Show[Graphics3D[Cube[]],
ViewPoint ->
RotationMatrix[Dynamic@fi,
RotationMatrix[Dynamic@fi, {0, 1, 1}] . {0, 0,
1}] . {1.3`, -2.4`, 2.`}], {fi, 0, 2 Pi}]
It can be solved by wrapping whole view point expression by Dynamic
instead of using Dynamic@fi
.
Manipulate[
Show[Graphics3D[Cube[]],
ViewPoint ->
Dynamic[RotationMatrix[fi,
RotationMatrix[fi, {0, 1, 1}] . {0, 0, 1}] . {1.3`, -2.4`,
2.`}]], {fi, 0, 2 Pi}]
But then if you accidently click and drag the graphics by mouse an error message is thrown.
How to prevent this?
DynamicModule
that sets the values ofViewAngle
,ViewVertical
, etc. There is a whole world of even smoother control via tuning the exact way values are being fed to/read by the FE, which has been extensively documented on the site $\endgroup$DynamicModule
- it is slow as hell. $\endgroup$