Is there any way to change the view of a 3d chart so the Y and Z axis are switched?
- Dan Gabbard asked 8 years ago
- You must login to post comments
Hi Andrew,
as the question ist still not answered and as we were not able to find a straight forward workaround as well: Could you help us out on this? We have some kind of mechanical system consisting of x, y & z-Axes. x and y movements are horizontally, while z movements are vertical. Just how cartesian coordinate systems are described in Wikipedia. We tried to change the 3D camera properties so that the 3D Gizmo matches our setup. But there seems to be some limit on pitch that does limit pitch angle changes from -90 to 90 degrees. Yaw angle changes are at least possible from -3600 to 3600 degrees. Probably way more. So we can freely “rotate” around the Y axis but are limited regarding rotations around Z or X axes as they depend on yaw angle changes.
Currently we’re thinking about 3 solutions:
1) We just switch y and z values. This would be an easy approach. But as all company internal naming refers to xy as horizontal plane and xz/yz as vertical plane it would be necessary to adjust the 3D Gizmo as well. This seems to be possible via inheritance of ChartModifierBase3D. Do you think this would be a good idea?
2) Change the “Up” Vector of the ICameraController via Reflection. We’re not sure if this would just break other things of the SciChart internas. So we’re afraid of investing in it.
3) Some SciChart intended way of solving the problem we didn’t think about yet.
Thanks for any ideas! Best regards, Johannes
- Johannes Müller answered 5 years ago
-
Hi Johannes, the only solution would be a change to the source code. I’m unsure if it would be possible in scichart but I would suggest this. 1.) log a feature request at our feature request system with exact specifications and diagrams (see http://www.scichart.com/feedback-policy). 2.) get your team to vote on it. Our team can estimate feasibility and if it’s simple enough we can just do it.
-
Hi Andrew, feature request was created with focus on hopefully cheap XyzGizmo class adjustments.
-
Hi Johannes, I tried to call the SetRotation and SetPosition methods of XyzGizmo, but it didn’t seem to have any effect. I couldn’t make the z axis face up.
-
3 years later, still unsolved
- You must login to post comments
Hello Dan,
I’m glad to inform you that we’ve introduced an option to set up 3D Charts to have Z-Axis pointing upwards in SciChart v7.0.1.
Please take a look at the “3D Viewport Orientation Modes” section of the following documentation article:
https://www.scichart.com/documentation/win/current/webframe.html#Coordinates%20in%203D%20Space.html
Please try this out and let us know your feedback.
With best regards,
Lex
SciChart Technical Support Engineer
- Lex answered 1 year ago
- You must login to post comments
Hi Dan
Do you mean a Right Handed coordinate system as opposed to a Left Handed coordinate system?
If so, not yet, however we do have this on our roadmap as a feature to develop (by applying a final matrix to the camera when rendering).
If not, please clarify what you mean. You can move the camera programmatically or via the mouse, switch between Perspective and Orthogonal viewports etc… All demonstrated in the example Modify Camera3D Properties.
Best regards,
Andrew
- Andrew Burnett-Thompson answered 8 years ago
- last edited 8 years ago
- You must login to post comments
I would like to have the Z axis in the vertical position.
- Dan Gabbard answered 8 years ago
- You must login to post comments
Please login first to submit.