PiBoSo Official Forum

GP Bikes => General Discussion => Topic started by: Become dust on October 30, 2017, 04:48:39 PM

Title: head tracking device for input
Post by: Become dust on October 30, 2017, 04:48:39 PM
does anyone know how I can use my head tracking device for controls input?
I use something called Facetrack noir, and I was wondering if you guys how I can utilize my head tracking device for well, input....

the facetracknoir can have up to 2 tracker sources which allow for 2 types of outputs that is labeled "game protocol"

naturally, i can control the ingame "view" as it would in default. which I do.
Title: Re: head tracking device for input
Post by: Become dust on October 30, 2017, 07:23:01 PM
if, anyone know anything about such controls setup i basically want to know how i to convert my head track input to rider inputs, have no clue how to do it tho, would like to know how.
Title: Re: head tracking device for input
Post by: doubledragoncc on October 30, 2017, 07:41:38 PM
I use EdTracker for body movement by just setting it in gpb input 1 page for left/right and forward/back lean.

Try it out with Facetrack noir?

If Facetrack noir is recognised in windows as a normal control device it should work.

DD
Title: Re: head tracking device for input
Post by: Become dust on October 30, 2017, 07:45:23 PM
Quote from: doubledragoncc on October 30, 2017, 07:41:38 PM
I use EdTracker for body movement by just setting it in gpb input 1 page for left/right and forward/back lean.

Try it out with Facetrack noir?

If Facetrack noir is recognised in windows as a normal control device it should work.

DD

well the issue is that i do not know how to... "bind" my facetracknoir movment to the rider movment as you mention above would like love to know how to, if facetrack noir proves failure i might try the software you use
Title: Re: head tracking device for input
Post by: doubledragoncc on October 30, 2017, 07:51:22 PM
Its not software I use, it is the hardware, EdTracker PRO Wireless headtracking unit.

I will make a video to show you in the next few days

DD
Title: Re: head tracking device for input
Post by: Become dust on October 30, 2017, 07:55:50 PM
Quote from: doubledragoncc on October 30, 2017, 07:51:22 PM
Its not software I use, it is the hardware, EdTracker PRO Wireless headtracking unit.

I will make a video to show you in the next few days

DD


hmm.... interesting the "hardware" I use is called a "Delanclip" and apparently does not show up as a device, which is odd.. I am able to you know "look around" while it is in use but I have no clue how to do "lean" even though all axis can be utilized if that makes sense.
Title: Re: head tracking device for input
Post by: doubledragoncc on October 30, 2017, 08:18:43 PM
Well Edtracker uses Opentrack, you can use the Delanclip with opentrack too so that is the first thing you want to sort out. Once you use open track I think windows will see it as a controller? Then it should be able to be calibrated in gpb so you can then asign it to rider lean in the inputs page

DD
Title: Re: head tracking device for input
Post by: Become dust on October 30, 2017, 08:20:49 PM
Quote from: doubledragoncc on October 30, 2017, 08:18:43 PM
Well Edtracker uses Opentrack, you can use the Delanclip with opentrack too so that is the first thing you want to sort out. Once you use open track I think windows will see it as a controller? Then it should be able to be calibrated in gpb so you can then asign it to rider lean in the inputs page

DD


Thank you very much i will test it out as soon as possible, just find it odd i cannot uterlize tracknoir....
Title: Re: head tracking device for input
Post by: Become dust on October 30, 2017, 08:29:45 PM
interresting... opentrack and tracknoir are basically identical in software.... im doing something wrong here and i dont know what it could be, i will look forward to the video you will upload and hopefully explain how to set it up, i can look around.. cant lean tho with headtracker
Title: Re: head tracking device for input
Post by: HornetMaX on October 30, 2017, 08:45:47 PM
Check opentrack, it may do what you need.

https://github.com/opentrack/opentrack/releases (https://github.com/opentrack/opentrack/releases)
Title: Re: head tracking device for input
Post by: Become dust on October 30, 2017, 09:08:05 PM
Quote from: HornetMaX on October 30, 2017, 08:45:47 PM
Check opentrack, it may do what you need.

https://github.com/opentrack/opentrack/releases (https://github.com/opentrack/opentrack/releases)


Thanks, i tested it, as written above they are practically identical :/ anyways looks like i will be off to bed with a defeat :<
Title: Re: head tracking device for input
Post by: poumpouny on October 31, 2017, 05:48:16 AM
Open track only cannot output head tracker into a "joystick" wich is needed to be assigned as a control, i'm using Freepie wich take the open track output than convert it as a joystick via a freepie script.

https://forum.warthunder.com/index.php?/topic/201647-using-opentrack-with-android-phone-for-headtracking/

Edit : open track can output a "Vjoy" output but i never managed to make it work, that's why i used freepie !
Title: Re: head tracking device for input
Post by: Become dust on October 31, 2017, 06:56:10 AM
Quote from: poumpouny on October 31, 2017, 05:48:16 AM
Open track only cannot output head tracker into a "joystick" wich is needed to be assigned as a control, i'm using Freepie wich take the open track output than convert it as a joystick via a freepie script.

https://forum.warthunder.com/index.php?/topic/201647-using-opentrack-with-android-phone-for-headtracking/

Edit : open track can output a "Vjoy" output but i never managed to make it work, that's why i used freepie !

yeah tracknoir does have Vjoy aswell but does not register aswell :/
Title: Re: head tracking device for input
Post by: HornetMaX on October 31, 2017, 08:10:10 AM
Quote from: poumpouny on October 31, 2017, 05:48:16 AM
Open track only cannot output head tracker into a "joystick" wich is needed to be assigned as a control, i'm using Freepie wich take the open track output than convert it as a joystick via a freepie script.

https://forum.warthunder.com/index.php?/topic/201647-using-opentrack-with-android-phone-for-headtracking/

Edit : open track can output a "Vjoy" output but i never managed to make it work, that's why i used freepie !
Hmm, I think I recall the same thing: opentrack should be able to output to a joystick but it wasn't working.
For EDTracker it's not a problem, as its output is a joystick already.

The strange thing is that with EDTracker I can use vJoy + Joystick Gremlin and it works fine in GPB (controlling rider lean via the virtual joystick driven by EDTracker).
Maybe worth a bug report on opentrack , the dev is very active.

@ddcc: how you're doing it ?
Title: Re: head tracking device for input
Post by: poumpouny on October 31, 2017, 08:49:06 AM
I don't know if it's a bug or it's me but i will be happy if someone manage to get it working, that way i could get rid of too much software layer and the lag it produce.
Title: Re: head tracking device for input
Post by: HornetMaX on October 31, 2017, 08:51:17 AM
Quote from: poumpouny on October 31, 2017, 08:49:06 AM
I don't know if it's a bug or it's me but i will be happy if someone manage to get it working, that way i could get rid of too much software layer and the lag it produce.
If there's any lag it's coming from the tracking, not for the layers like virtual joysticks etc.
Title: Re: head tracking device for input
Post by: Become dust on October 31, 2017, 08:53:22 AM
Quote from: poumpouny on October 31, 2017, 08:49:06 AM
I don't know if it's a bug or it's me but i will be happy if someone manage to get it working, that way i could get rid of too much software layer and the lag it produce.


Iwould like to just have it function :D its difficult controlling all the bike and rider inputs with just two thumps
Title: Re: head tracking device for input
Post by: doubledragoncc on October 31, 2017, 11:37:22 AM
For me it is real easy just have to calibrate it in the EdTracker UI and then same in GPB then simply assign it to rider lean

DD
Title: Re: head tracking device for input
Post by: Become dust on October 31, 2017, 04:57:33 PM
Quote from: doubledragoncc on October 31, 2017, 11:37:22 AM
For me it is real easy just have to calibrate it in the EdTracker UI and then same in GPB then simply assign it to rider lean

DD


:o but how... do i... "assign" it... somehow this is a difficult task for me XD also what are your opentrack settings?
Title: Re: head tracking device for input
Post by: Become dust on October 31, 2017, 05:07:23 PM
nvm i managed to make opentrack work i did the binds will be testing it now
Title: Re: head tracking device for input
Post by: Become dust on October 31, 2017, 05:09:14 PM
Quote from: Become dust on October 31, 2017, 05:07:23 PM
nvm i managed to make opentrack work i did the binds will be testing it now

interresting factor... how many controllers is the game able to register? like devices? gamepad, software devices headtrackers etc? interrestingly when i managed to make Vjoy function my controller disapeared on the list of controller profiles on gpbikes...
Title: Re: head tracking device for input
Post by: doubledragoncc on October 31, 2017, 05:29:15 PM
I have 2 Edtrackers and although Windows sees both as seperate due to ID numbers I am still trying to get both to work at the same time in GPB

DD
Title: Re: head tracking device for input
Post by: Become dust on October 31, 2017, 05:43:31 PM
Quote from: doubledragoncc on October 31, 2017, 05:29:15 PM
I have 2 Edtrackers and although Windows sees both as seperate due to ID numbers I am still trying to get both to work at the same time in GPB

DD

hmm... interresting... i cant have both programs runnin, also facetracknoir vjoy function does not work somehow
Title: Re: head tracking device for input
Post by: Become dust on October 31, 2017, 09:51:28 PM
Welp i made it function, but in the expense of my headtracking cam controll
Title: Re: head tracking device for input
Post by: doubledragoncc on October 31, 2017, 10:17:03 PM
I find that as I can move my body it also means it IS moving your view and in a way prefer it over head tracking.

DD
Title: Re: head tracking device for input
Post by: Become dust on November 01, 2017, 07:16:36 AM
Quote from: doubledragoncc on October 31, 2017, 10:17:03 PM
I find that as I can move my body it also means it IS moving your view and in a way prefer it over head tracking.

DD


That is a valid point.
Title: Re: head tracking device for input
Post by: HornetMaX on November 01, 2017, 12:26:17 PM
Quote from: doubledragoncc on October 31, 2017, 10:17:03 PM
I find that as I can move my body it also means it IS moving your view and in a way prefer it over head tracking.

DD
Hmm, but rider movement do not actually turn your head.
Are you using the default corner anticipation ?
Title: Re: head tracking device for input
Post by: doubledragoncc on November 01, 2017, 12:28:45 PM
Not sure Max

It just more important to me to sort out rider movement as it effects the bike than head movement.

I will figure it out together with Dan from EdTracker who can do wonders

DD
Title: Re: head tracking device for input
Post by: HornetMaX on November 01, 2017, 12:37:04 PM
Quote from: doubledragoncc on November 01, 2017, 12:28:45 PM
I will figure it out together with Dan from EdTracker who can do wonders

Not sure if he can do much if the problem is GPB being not capable of seeing two different edtracker devices at the same time.
Maybe you should use vJoy to remap the two EdTrackers to two "joysticks", as GPB normally handles well multiple input devices at the same time.

When I wanted to try to use the edtracker as input device (for rider lean or even for bike lean) I wanted to fine tune the response curves so for me it wasn't enough to use edtracker as is (seen by gpb as a joystick). I wanted to use Joystick Gremlin to alter the curves and this makes me use vJoy. Bit overcomplicated, but it works. So you may be able to use vjoy (you don't strictly need joystick gremlin, unless you want to fine tune the curves etc) to "remap" the two edtrackers to two new joysticks and assign them to functions in GPB.

Actually I think what you need is to to have 1 edtracker remapped to a joystick (for body movements) and one edtracker for head tracking (no need for vjoy here, just opentrack).
Title: Re: head tracking device for input
Post by: doubledragoncc on November 01, 2017, 01:27:12 PM
Thanks for advice Max

Real busy right now so will be done when I get time lol

DD
Title: Re: head tracking device for input
Post by: Become dust on November 01, 2017, 03:21:03 PM
Quote from: HornetMaX on November 01, 2017, 12:37:04 PM
Quote from: doubledragoncc on November 01, 2017, 12:28:45 PM
I will figure it out together with Dan from EdTracker who can do wonders

Not sure if he can do much if the problem is GPB being not capable of seeing two different edtracker devices at the same time.
Maybe you should use vJoy to remap the two EdTrackers to two "joysticks", as GPB normally handles well multiple input devices at the same time.

When I wanted to try to use the edtracker as input device (for rider lean or even for bike lean) I wanted to fine tune the response curves so for me it wasn't enough to use edtracker as is (seen by gpb as a joystick). I wanted to use Joystick Gremlin to alter the curves and this makes me use vJoy. Bit overcomplicated, but it works. So you may be able to use vjoy (you don't strictly need joystick gremlin, unless you want to fine tune the curves etc) to "remap" the two edtrackers to two new joysticks and assign them to functions in GPB.

Actually I think what you need is to to have 1 edtracker remapped to a joystick (for body movements) and one edtracker for head tracking (no need for vjoy here, just opentrack).

That's an interresting way of going about. 
Title: Re: head tracking device for input
Post by: poumpouny on November 02, 2017, 05:32:57 AM
Become dust > can you please explain how you get it to work ?

I think the best solution is to have a 6Dof head tracking, where the gyro rotation controll the view and the translation controll the rider movement, i don't know if such a head tracker exist !
Title: Re: head tracking device for input
Post by: doubledragoncc on November 02, 2017, 08:11:52 AM
PP you cant have one device to give 2 seperate movement groups. You HAVE to have 2 seperately mounted devices giving 2 seperate sets of inputs or it gets messy lol.

DD
Title: Re: head tracking device for input
Post by: HornetMaX on November 02, 2017, 08:26:21 AM
Quote from: doubledragoncc on November 02, 2017, 08:11:52 AM
PP you cant have one device to give 2 seperate movement groups. You HAVE to have 2 seperately mounted devices giving 2 seperate sets of inputs or it gets messy lol.
If the device can be "seen" by vJoy, you can. But I'm not sure 6dof devices (there are some, e.g. TrackIR) can be seen by vJoy: most of the time their have a proprietary interface.
Title: Re: head tracking device for input
Post by: doubledragoncc on November 02, 2017, 09:22:34 AM
No Max it does not matter about IF it can do the axis its about your head has to me tracked and so does the body but they move individually and therefore need a seperate input device otherwise you are getting unreal input. Hard for me to explain but you cant have ONE device for both input groups. One device will cause the input to GPB to be false due to how the head and body act seperately, yet together. Its the same as why nobody has built a realistic motion system for a bike as it also needs to groups of motion due to the why a bike works.

DD
Title: Re: head tracking device for input
Post by: HornetMaX on November 02, 2017, 09:40:54 AM
A 6dof device is in fact 2 3dof devices. The advantage is, theoretically, that it should handle better the interactions between the 3 translations and the 3 rotations.
Another difference is that 2 edtrackers will track 6 rotations while a 6dof device is 3 rotations and 3 translations.

But your head and your body in reality they don't move individually (independently): if you lean your body left, yor head leans too (unless you compensate, of course).
Title: Re: head tracking device for input
Post by: doubledragoncc on November 02, 2017, 10:00:30 AM
Half of what you say is true Max, the problem is that there will be conflict if you use one device as a body movement in a certain axis will be read as a head movement by the device and so will be inputed to gpb when in fact you have not moved your head in that direction so you get a fauls rinput in gpb. It really is simple but hard for me to write. I have been working on this for some time and beleive me ONE device will give conflicting inputs. A 6DOF sounds correct in thinking but the practical use is in fact wrong. You need a device connected to the head and a seperate one for the body. Try leaning right from the waste and then leaning you head left at the same time with ONE device, how are you going to get 2 inputs that use the same axis on ONE device? Think about it a biy.

DD
Title: Re: head tracking device for input
Post by: HornetMaX on November 02, 2017, 11:00:02 AM
Quote from: doubledragoncc on November 02, 2017, 10:00:30 AM
Try leaning right from the waste and then leaning you head left at the same time with ONE device, how are you going to get 2 inputs that use the same axis on ONE device? Think about it a biy.
They don't use the same axis. A 6dof thingy tracks the position and orientation of your head.
Now one valid point that is against using that kind of device for our needs is that what you want to put in place is not the tracking of position and orientation of the head, but more something like "orientation of the head + position of the ass" (or body :) ). That because this is how GPB wants things to be.
So yeah, for that a 6dof device is not ideal. But the reason it's not that "it's one device" or "you have 2 inputs on the same axis".
Title: Re: head tracking device for input
Post by: speedfr on November 22, 2017, 01:30:57 AM
Hello Riders,

Very interesting posts in here  :)

I use a EDTracker Pro (USB) and i've made several videos about using it on my YT stuff (Assetto Corsa, Star Citizen, DCS -F15C and ArmaIII).
I just came back to this Gp Bikes project (i think i have alpha1 and 3 still on my disk).

Need to sort out the feeling with the game (can't play with a pad, i'm too old) but i tried EdTracker and i works like a charm, i just need to get to the lean back and fore stuff.
i used the same profiles as DCS and activated the smooth option settings in GPB, and as written above no need for Opentrack or FaceTrackNoIr.
Will see later if i'll make a video like i did for other simulators, if needed  :) but i've read that doubledragoncc was going to do one.
Need to check if we can keep the Lean and using the Freelook option at the same time or maybe its a stupid idea...  ::)


But yes, headtracking is a must have for this nice simulator.