1
$\begingroup$

I'm an embedded developer here with very little experience in computer graphics. I'm currently working on a GUI that can display a calculated inertial solution at run time. I have hardware that can send an IMU's attitude (pitch, roll, and heading angles) to a PC. Currently I can display those numbers on the screen in real time, which change as I move the IMU in my hand. However, at the moment they are only numbers on a screen.

I'm wanting to take it to the next level and display 3 orthogonal vectors rotating around a fixed reference frame (see screenshot attached). This rotation would take place in real time. The entire inertial solution is already calculated elsewhere, and outputs the 3 Euler angles required for the rotation. As far as the math goes, I think I'm moderately comfortable with the rotation matrix required here, I just don't know the best way to go about implementing this in terms of what software/libraries/programs to use. I also don't know if I'm over trivializing the effort here. Can someone point me in the right direction on how to implement this on the graphics side of things? Real time inertial solution rotation displayed

$\endgroup$
4
  • $\begingroup$ Welcome to computer graphics stack exchange! Where do you want to render this visualization? Have you experience in opengl directX or any other computer graphics library? On which operating system should your program work? Do you already have a canvas to render to? Please share some information to us to help you $\endgroup$
    – Thomas
    Mar 4, 2023 at 21:34
  • $\begingroup$ 1. Rendering could take place in a separate window from my main GUI. I'm not too picky about where in this case. 2. I do not have experience in those, and am looking for guidance where to start. I only do embedded development, so graphics is a completely new subject. 3. Windows 10 and 11. 4. What do you mean by canvas? Thank you for your reply as well. $\endgroup$ Mar 5, 2023 at 1:17
  • $\begingroup$ What framework or API are you using to create your existing GUI? What you're looking for is a very simple 3D graphic, so it would be easy to compute the necessary points and draw it in real time using almost any drawing API. But knowing what you have already will determine what the easiest thing to add is. $\endgroup$
    – Kevin Reid
    Mar 5, 2023 at 3:03
  • $\begingroup$ Kevin Reid, the existing GUI is built using DearImGui. My plan was to use the c++ application in DearImGUI to place the Euler angles in a shared memory structure (File Mapping since I'm on windows). Another application, capable of drawing the 3D graphic, could read the Euler angles from the shared memory and perform all necessary drawing. Is this a reasonable approach? $\endgroup$ Mar 5, 2023 at 4:05

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.