JOGL - 移动相机(JOGL - moving the camera)
我在JOGL中构建一些东西,我希望通过使用键盘或鼠标来移动相机,这并不重要,只要相机可以在物体周围平移并可能放大和缩小。 如果使用键盘/鼠标很困难,那么我也不介意在应用程序中使用一些按钮,例如向上,向下,向左和向右箭头以及用于缩放的加号和减号按钮,但基本上最简单。 我正在构建类似乐高的东西,但事实证明,如果不能移动相机则相当困难。
Im building something in JOGL and im looking to make the camera move either through using the keyboard or mouse, it doesnt really matter, so long as the camera can pan around the object and possibly zoom in and out. If using the keyboard/mouse is difficult then I also dont mind using some buttons in the applications, e.g. arrows up, down, left and right and a plus and minus button for the zoom but basically whatevers easiest. Im building something kind of like Lego but its proving to be quite difficult without being able to move the camera.
原文:https://stackoverflow.com/questions/14858623