PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

6DOF landscape engine & Implementing flight sim controls...

Hello There...

I've got a landscape engine running and i thought it would be nice to implement this "typical" flight simulator movement control (roll left/roll right/pull up/pull down).
My camera is able to yaw/pitch/roll freely around so can anyone explain to me how to translate the information received from the cursor keys to the corresponding rotation matrix?
Or maybe some good links?

Thanks in advance...

(beta version (ARM&MIPS) with limited control can be downloaded here:)
www.home.fh-karlsruhe.de/~bape0016/6dof.zip
I can send you the code from Space Treker III which has 6DOF in some situations. I take in buttons & screen taps & from these I set a flag. These flags are checked and processed using various max / min values to arrive at direction, speed & pitch,yaw,roll. This code uses PocketGL however the functions follow regular 3D concepts. My stuff is commented but is not OO. It's also pretty simple as I'm not much of a 3D coder. I also use values to work out on screen x,y for 'radar' displays, 3dx=2dx & 3dz = 2dy.
Conan wrote:
I can send you the code from Space Treker III which has 6DOF in some situations. I take in buttons & screen taps & from these I set a flag. These flags are checked and processed using various max / min values to arrive at direction, speed & pitch,yaw,roll. This code uses PocketGL however the functions follow regular 3D concepts. My stuff is commented but is not OO. It's also pretty simple as I'm not much of a 3D coder. I also use values to work out on screen x,y for 'radar' displays, 3dx=2dx & 3dz = 2dy.


That sounds interesting. I don't want to use screen taps for control, but maybe the concept becomes clearer to me then ;)
(I have basic movement implemented already (without roll) but that's kind of boring...)

If you like you can send it to: bape0016[at]fh-karlsruhe[dot]de...

Thanks for your help...
ok, I emailed samples of key reading & setting flags, processing flags & updating 3D orientation.
The code is by no means perfect & you may want to search for open source flight sim code of which there are a few.
I've got a landscape engine running


What kind of technology did you use for your landscape engine (voxels or polygons) ?
currently I'm working on a 'roam' triangulizer for fast landscape rendering, I've read a lot of stuff concerning this and it looks promising. Currently I do have a voxel engine running but it's limited to 3dof.
JoostB wrote:
I've got a landscape engine running


What kind of technology did you use for your landscape engine (voxels or polygons) ?
currently I'm working on a 'roam' triangulizer for fast landscape rendering, I've read a lot of stuff concerning this and it looks promising. Currently I do have a voxel engine running but it's limited to 3dof.


My approach is purely voxel based as a roam polygon engine would never get the performance i'm aiming at. At lower detail level my engine still gets around 13-20 fps on a 150Mhz MIPS which is quite fast IMHO.
Another advantage of my engine is the generation of a zbuffer which comes almost for free.
Look above i posted a link of a beta version of my engine. Rolling around z-axis is not implemented via control but trust me, the engine can handle it ;)
xPeterx,
I've tried to download from the specified link, however the link seems to be broken. could you fix the link? cause I'm really curious to the result.
Some other notes:
interesting vision that the roam polyimpl would be too slow, maybe I have to stop my roam demo impl and go on with the voxels. I found an interesting article on 'vertical ray coherence' which could be used to create 6dof in a voxel environment.
There's also the epipolar geometry stuff you mentioned earlier to me, however couldn't find a real good article on this technology yet.

joost
JoostB wrote:
xPeterx,
I've tried to download from the specified link, however the link seems to be broken. could you fix the link? cause I'm really curious to the result.
Some other notes:
interesting vision that the roam polyimpl would be too slow, maybe I have to stop my roam demo impl and go on with the voxels. I found an interesting article on 'vertical ray coherence' which could be used to create 6dof in a voxel environment.
There's also the epipolar geometry stuff you mentioned earlier to me, however couldn't find a real good article on this technology yet.

joost


From what i can see the article on epipolar lines is pretty much the same as the one on vertical ray coherence when they're applied on heightmaps.
The author of the paper on vertical ray coherence just calls them ray lines instead of epipolar lines.

I fixed the link btw...