trishume / linux-track

Automatically exported from code.google.com/p/linux-track
MIT License
0 stars 0 forks source link

TIR Firmware extraction dialog/option are not present in GUI. #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run ltr_gui.app
2. No options for firmware extraction in GUI exist in any of the interface tabs
3. Firmware files never created in /Users/<username>/.config/linuxtrack

What is the expected output? What do you see instead?

See above. I have copied over the driver and navigated to the folder and run 
"./wine TrackIR_5.2.2.Final.exe" from a terminal prompt as indicated in issue 
42 and received multiple FreeType and X11 errors. This command did however 
create a wine instance at /Users/<username>/.wine that NaturalPoint drivers 
were installed into.

What version of the product are you using? On what operating system?

I am using linuxtrack-0.99.5 on Mac OS X 10.8.4
When it failed to display the extraction options, I also tried a few older 
versions to no avail.
I have multiple wine pre-existent wine environments created in Wineskin and 
XQuartz installed for use with GIMP, Inkscape, and gnubg.

Original issue reported on code.google.com by billsful...@gmail.com on 11 Aug 2013 at 11:06

GoogleCodeExporter commented 9 years ago
Hello,
in the first pane, there should be a button called "Install firmware" or 
"Reinstall firmware" (approximately in the middle of the window). Press it and 
you should be presented with the dialog allowing you to download/extract the 
firmware.

I'm attaching a screenshot - it is from linux, but the GUI configuration is 
exactly the same.

If, for some reason, you see something else than I do, please attach a 
screenshot so I can see what is going on... 
Kind regards,

Michal

Original comment by f.jo...@email.cz on 12 Aug 2013 at 2:45

Attachments:

GoogleCodeExporter commented 9 years ago
I cannot select TrackIR as I do not own one. Therefore, I don't see the 
firmware dialog. However, I must get the TrackIR firmware files for use in 
wine. Is there a way to get the firmware option without having a TrackIR 
attached to the computer? Is the necessary firmware extracted from the TrackIR 
hardware, or just from the exe?

RIght now, linux-track is working on the Mac side as confirmed in the preview 
window, and as far as I can tell, is also working in Wine. However, the game in 
the wine bottle (ETS2) is reporting in its logfile that the TrackIR DLL 
signature cannot be found.

Original comment by billsful...@gmail.com on 12 Aug 2013 at 2:54

GoogleCodeExporter commented 9 years ago
Hello,
I see now... OK, I'll have to figure out a way to incorporate this into the GUI 
- the thing is, in Linux, the linuxtrack-wine gets installed through the button 
in the fourth pane and it does let you install the firmware. But on Mac I don't 
have a way to know which wine implementation are you using and where it is, so 
I grayed out that button.

Now, there is a workaround - you'll have to open a terminal, go to the 
directory where you put the ltr_gui and run the following:

LINUXTRACK_DBG=cf ./ltr_gui.app/Contents/MacOS/ltr_gui

In principle it makes ltr_gui think that there is a TrackIR attached and should 
get you going.

Thank you for pointing this flaw out!
Kind regards,

Michal

PS. If you manage to run the ETS2 with linuxtrack, could you please let me 
know, so I can add it to the list of confirmed supported games? Thank you!

Original comment by f.jo...@email.cz on 12 Aug 2013 at 5:04

GoogleCodeExporter commented 9 years ago
Thanks very much for the workaround. I was able to extract the firmware and it 
now works in Wine.

Euro Truck Simulator 2 1.4.8 (non-Steam Windows version) running in a Wineskin 
works with my built-in FaceTime HD Camera via linux-track and linuxtrack-wine. 
It gets confused easily and begins to lag more as time goes on, but it works!

Thanks again!

Original comment by billsful...@gmail.com on 12 Aug 2013 at 10:09

GoogleCodeExporter commented 9 years ago
Hello,
I'm glad it worked out for you; meantime I'm working on a fix and it should be 
available in a matter of days (I'd like to test it a little bit before making 
it publicly available).

Do I understand it correctly, that you are using facetracking? Unfortunately 
facetracker does get confused easily, especially when the background is not 
very uniform. I'm going at take a look around for other facetracking methods, 
but I'm affraid it will not be very soon (have to get out the 1.0 release 
first).

What puzzles me is your note on lagging more as time goes on - could you 
elaborate a bit more on that? Like how long does it take for the lag to became 
noticeable, how much lag is there... To be honest, I didn't have a time to try 
the thing for more than few minutes at a time, but I didn't tried that with 
face tracker...
Thank you,

Michal

Original comment by f.jo...@email.cz on 13 Aug 2013 at 5:00

GoogleCodeExporter commented 9 years ago
Yes, I am using facetracking. I am sitting in front of a plain white wall, and 
it is still easily confused. However, I do have a beard and long hair, so 
that's probably not helping. I wasn't expecting much from the face tracking 
though and will likely put together a LED clip in the near future.

Regarding the lag, at first it seems to work with maybe a 250-500ms lag between 
when I start moving my head and when the view moves in ETS2. Over about 10-20 
minutes, this seems to increase to more like a 1-1.5 second lag and the 
tracking accuracy drops significantly. Also, I just noticed that running 
Controller.exe seems to significantly increase hard drive activity. When 
playing ETS2 without Controller.exe running, I usually only hear disk activity 
when the game is occasionally loading assets into memory (I have 16GB). With 
Controller.exe running, there is a constant drive motor rhythm. I haven't yet 
looked at activity graphs/logs, but I will.

Another note regarding wine and Controller.exe - if I don't run Controller.exe 
headtracking is still active in ETS2 but my assigned hotkeys for enable/disable 
and recenter (open and close brackets) no longer work and I am not sure what 
they are instead. Pause? Scroll Lock? Unfortunately, I have the Apple Wireless 
Keyboard and those keys are not present.

And yes, without Controller.exe running the lag/inaccuracy still seems to ramp 
up over time.

Original comment by billsful...@gmail.com on 14 Aug 2013 at 3:28

GoogleCodeExporter commented 9 years ago
Hi,
first of all, thank you for those informations, they help a lot.

Controller.exe shouldn't cause any hard drive activity, but it may be due to 
writing some stuff to log; chances are, that the wine is printing some 
informations to stderr, that normally goes to bit bucket, but the fact is, that 
my application redirects it to the logfile, which is not necessarily a good 
thing... If you could check the size of /tmp/linuxtrack* files, it could verify 
this idea (in terminal command "ls -lsaF /tmp/linuxtrack*").

I have a new package pretty much ready (just wanted to test it out for a bit), 
so I can try and remove that stderr redirection, so we'd see if that is the 
root of the strange disk activity.

As for the lag, the question is, if it is caused by my code or if the slowdown 
is on the system's side. I'll investigate that further, but what you can try 
now, is to move the optimization slider towards the "Speed" side...

And last, but not least - you can try and check different cascades; that 
haarcascade_frontalface_alt2.xml is supposed to be a good one, but chances are, 
that some other will work better. Also by looking to the Camera preview, maybe 
you could find out what is causing that distraction (where the white rectangle 
is hopping to).

Thank you for your help,

Michal

Original comment by f.jo...@email.cz on 14 Aug 2013 at 5:39

GoogleCodeExporter commented 9 years ago
Single LED tracking is working well in ETS2. Just took a 30 minute drive with 
no increasing lag nor excessive drive activity.

Original comment by billsful...@gmail.com on 14 Aug 2013 at 6:24

GoogleCodeExporter commented 9 years ago
I'll try to take a look at the facetracker issues tomorrow.

You are welcome. Thanks for the sweet program!

Original comment by billsful...@gmail.com on 14 Aug 2013 at 6:29

GoogleCodeExporter commented 9 years ago
Thanks and have a good night!

Original comment by f.jo...@email.cz on 14 Aug 2013 at 6:32