[Flightgear-devel] Head tracking
Hello, I've done with head tracking support for FlightGear. It is consists of general head tracking code for FlightGear and closed source TrackIR server. I can't publish TrackIR related code because of NaturalPoint policy, but program itself is free to use and redistribute with FlightGear Flight Simulator. Patch for current CVS version and TrackIR server binary attached to this letter. In order to use it apply patch, rebuild FlightGear and place fgtrack.exe in directory contains fgfs.exe. When FlightGear starting in Windows environment it tries to launch TrackIR server automatically in local mode. It is possible to start TrackIR server manually, for example in order to run TrackIR hardware on one computer and FlightGear on another. In remote mode TrackIR server sits in the system tray and can be configured by right mouse button click. Head tracking protocol is very easy. Head tracking data is packed in UDP packets. Each packet consists of version number byte (currently equals to 1) and 6 values: head orientation (HEADING, ROLL, PITCH) and head position (X, Y, Z). All value are in fixed point format 16.16. Angles are in degrees, position in the range [-100.0, 100.0]. Unused valus must be filled with zeroes. If somebody is going to implement its own head tracking server, he could use following functions to make packet: void serializeFloat(char *data, float value) { int fixed = (int)(value * 65536.0f); data[0] = (fixed >> 24) & 0xFF; data[1] = (fixed >> 16) & 0xFF; data[2] = (fixed >> 8) & 0xFF; data[3] = fixed & 0xFF; } void makePacket(char *data, float heading, float roll, float pitch, float x, float y, float z) { data[0] = 1; serializeFloat(data + 1, heading); serializeFloat(data + 5, roll); serializeFloat(data + 9, pitch); serializeFloat(data + 13, x); serializeFloat(data + 17, y); serializeFloat(data + 21, z); } Please note that TrackIR server attached to this letter wouldn't work before next TrackIR drivers release. -- Best regards, Alexander Babichev http://www.babichev.info trackir.tar.gz Description: application/gzip ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] FGLive 0.1 alpha available for testing
Arnt Karlsen wrote: ..nope, all we need to do is kick out the ATI and Nvidea proprietary binaries and set up scripts to download them if anyone needs them. No, all we need is to read license text :) Look at http://www.nvidia.com/object/nv_swlicense.html It is legal to include NVidia drivers to Linux distro. -- Best regards, Alexander Babichev http://www.babichev.info --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Re: FGLive 0.1 alpha available for testing
Pigeon wrote: The problem is not the nvidia or ati binary driver. From their terms it is ok to redistribute their drivers as long as they're not modified. The issue now seems to be GPL not allowing distribution along with non-GPL stuff. Linux is not pure GPL system. It has small but important addition to GPL: === Cut === NOTE! This copyright does *not* cover user programs that use kernel services by normal system calls - this is merely considered normal use of the kernel, and does *not* fall under the heading of "derived work". === Cut === It's OK to use Linux with non-GPLed drivers. -- Best regards, Alexander Babichev http://www.babichev.info --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Formation Flying
Paul Surgeon wrote: Yes. NaturalPoint never authorized the release of the required firmware file required to distribute the Linux drivers. Too sad :( I finished first version of TrackIR support for FlightGear. There are still many things to do, but it works just fine. One can run TrackIR on Windows computer and FlightGear on Linux box without problems. There is only one problem: developer ID assigned to me by NaturalPoint doesn't work. Now I'm waiting for reply from NaturalPoint. -- Best regards, Alexander Babichev http://www.babichev.info --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Formation Flying
Paul Surgeon wrote: If you use a network connection between your binary wrapper and FlightGear it will allow anyone running FG on Linux,Sun,SGI,Mac OS X, etc. to use TrackIR on a second Windows PC. OK, I'll use UDP based protocol to allow such configurations. I'll publish detailed protocol specs to make development wrappers for other head trackers easy. -- Best regards, Alexander Babichev http://www.babichev.info --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Formation Flying
Anders Gidenstam wrote: Is TrackIR available for Linux, IRIX and other platforms? There are some drivers for Linux, but nothing that really works. TrackIR manufacturer wants to develop such drivers, but dislike making it open source for some reason. -- Best regards, Alexander Babichev http://www.babichev.info --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] Formation Flying
Julien Pierru wrote: shavlir, Eow and I were all on my Teamspeak server while Dave was on IRC, but I hope we can fix is voice issue so that all of us can be on TS. The voice is really important since you can't really take your hands off the stick and throttle to type... There are few other tools that can be helpful for formation training: head tracking and formation bot. There is Formation! plugin for X-Plane. One can record his own fly and play back it to fly in formation with yourself. It is very helpful for training. It would be very nice if somebody will develop such tool for FlightGear. Head tracking is very handy for formation flying too. I'm using TrackIR device and I'm going to add TrackIR support to FlightGear. I've got TrackIR SDK from NaturalPoint. Unfortunately, it is impossible to use TrackIR SDK in open source project. I've got permission to make small binary only wrapper for TrackIR and employ some sort of IPC to allow FlightGear communicate with TrackIR. -- Best regards, Alexander Babichev http://www.babichev.info --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel