06-25-2022, 01:25 AM
Hi, I am having problems using two of your UI tools for rotating my models and was hoping you could explain where I am going wrong in my thinking.
I have a 3D scatter plot and need to be able to rotate the entire model in any orientation.
When I use the ViewCubeCameraController, it works great except when the cube is inverted (Y is pointing down). When this happens, rotating the cube with the mouse using the cube faces is the inverse of what I would expect (the disk rotations work fine). In fact, trying to use the mouse to rotate in the XY plane is generally backwards of what I would expect. I assume this is because I am moving the camera and not the model (which is conceptually what I actually need to do).
I also played with using the ModelRotatorVisual3D that moves with the model (e.g., the Rotator with StandardTransform sample) and it is almost perfect for manipulating my plot except... It stops working when rotated in 2 different axes. In other words, if I spin the rotator in X it works great but if I then try and rotate on other axes it gets confused and the actions on the rotator no longer seem to track what it "should" do.
Thanks again for any help you can provide!
I have a 3D scatter plot and need to be able to rotate the entire model in any orientation.
When I use the ViewCubeCameraController, it works great except when the cube is inverted (Y is pointing down). When this happens, rotating the cube with the mouse using the cube faces is the inverse of what I would expect (the disk rotations work fine). In fact, trying to use the mouse to rotate in the XY plane is generally backwards of what I would expect. I assume this is because I am moving the camera and not the model (which is conceptually what I actually need to do).
I also played with using the ModelRotatorVisual3D that moves with the model (e.g., the Rotator with StandardTransform sample) and it is almost perfect for manipulating my plot except... It stops working when rotated in 2 different axes. In other words, if I spin the rotator in X it works great but if I then try and rotate on other axes it gets confused and the actions on the rotator no longer seem to track what it "should" do.
Thanks again for any help you can provide!