I’m currently working on an assignment for university where we have to simulate a rocket on the moon, but that’s not really an issue for me. What’s wrong is that we have to display a box in the top-right corner displaying data about the rocket such as height, fuel, velocity etc. I’ve been told to use a 2D Ortho view to do this. So far I’ve been playing with this for a few days and end up going around in circles and getting nowhere. So if anyone could possibly point me into the right direction for creating this box I would be most appreciative
Thanks for that but I still can’t get it working, now I just get a black screen. I’ll post what code I have as it might help show where I’m going wrong.
You’re drawing stuff out of order. You set up the camera with gluLookat and then move it with the rotations (you can do this with gluLookat only). Then you blow all that away with the drawinfo function which calls a glLoadIdentity resetting the camera to the origin.
You’re drawing stuff out of order. You set up the camera with gluLookat and then move it with the rotations (you can do this with gluLookat only). Then you blow all that away with the drawinfo function which calls a glLoadIdentity resetting the camera to the origin.
Really I appreciate your choice of an OpenGL API for this use case. As my hope your problem has been fixed in one of the use cases of
Computer Graphics Projects posted in a YouTube channel named “Azzonika Tutorials”!