dumbo2007
Crazy about real time sims
I have almost reached the stage with the collision detection stuff I am working on, where I can define a collision mesh for any vessel type in Orbiter and it will be used when the vessel is close to a base. This will be extended to support collisions anywhere in the solar system gradually
So defining the collision mesh for a vessel currently involves using various primitive shapes or a convex hull of points positioned in the vessel's co-ordinate system to approximate the vessel's geometry. This involves entering/editing the translation and rotation angles for each shape independently and immediately seeing the effect as in Maya/3DS Max etc, while the simulation is running - 'insim' henceforward !
So I need to provide a GUI that supports all this. Then the values can be directly typed in and be applied on the vessel object insim. I was wondering if something similar to mouse hold and drag is possible to detect in the graphics client window. Then the collision meshes can be simply dragged around and dropped into place. I dont think Orbiter provides callbacks for the mouse when outside a virtual cockpit, but can we hook into the windows messaging pipeline ?
A 3D Max like editing ability in the sim window would be great and fun to use too.
Also I am currently trying out Qt 4.8.1 for the GUI as I think it has the most capabilities and it can be themed with the typical dark look (that Autodesk products seem to have for some reason)
---------- Post added at 02:38 PM ---------- Previous post was at 12:26 PM ----------
I guess I need to use DirectInput in some way :
http://www.two-kings.de/tutorials/dinput/dinput03.html
So defining the collision mesh for a vessel currently involves using various primitive shapes or a convex hull of points positioned in the vessel's co-ordinate system to approximate the vessel's geometry. This involves entering/editing the translation and rotation angles for each shape independently and immediately seeing the effect as in Maya/3DS Max etc, while the simulation is running - 'insim' henceforward !
So I need to provide a GUI that supports all this. Then the values can be directly typed in and be applied on the vessel object insim. I was wondering if something similar to mouse hold and drag is possible to detect in the graphics client window. Then the collision meshes can be simply dragged around and dropped into place. I dont think Orbiter provides callbacks for the mouse when outside a virtual cockpit, but can we hook into the windows messaging pipeline ?
A 3D Max like editing ability in the sim window would be great and fun to use too.
Also I am currently trying out Qt 4.8.1 for the GUI as I think it has the most capabilities and it can be themed with the typical dark look (that Autodesk products seem to have for some reason)
---------- Post added at 02:38 PM ---------- Previous post was at 12:26 PM ----------
I guess I need to use DirectInput in some way :
http://www.two-kings.de/tutorials/dinput/dinput03.html
Last edited: