A simple Qt/OpenGL satellite orbit simulator.
To build this project, you will need the Qt5 and Qt5 OpenGL libraries. To install them on a Debian-based system :
$ sudo apt install qt5-default qttools5-dev-tools libqt5opengl5-dev
Then, generate the Makefile with qmake
:
$ qmake
Before compiling, you will have to tell the compiler to use the GLU library. To achieve this, modify the Makefile and add -lGLU
at the end of the line of the Makefile which starts with LIBS
. The line should be:
LIBS = $(SUBLIBS) -L/usr/X11R6/lib64 -lQt5OpenGL -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread -lGLU
Finally, compile and run the executable:
$ make && ./SatelliteSimulator
Create a new simulation with File > New simulation
or Ctrl+N
and configure it by changing orbital parameters or planet texture if you want. Then add a couple of satellites with Satellites > Add new satellite
or Ctrl+A
, and hit the space bar to start/pause it. The satellites can be configured or removed in the Satellites menu.
Note: for having the satellites move faster on the screen, increase the speed factor in the simulation parameters.
To save the current state, save your simulation with File > Save simulation
or Ctrl+S
, so you can continue it later by opening the simulation file (.sim
extension) with File > Open existing simulation
or Ctrl+O
.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。