The online racing simulator
Searching in All forums
(47 results)
1
Head tracking using android phone.
bayanofmansorofisky
S3 licensed
head tracking tutorial
  • About:

    Budget VR... No need for any tracking hardware like IR or a webcam..
    This method uses phone's gyroscope and accelerometer and sends it over UDP so pc client can process it.
  • How it will work ?

    you need to have your phone placed on top of your head! may look silly but its worth it.


    before you go deep, this will not work if your phone doesn't have a gyroscope and a accelerometer sensors.

  • How to set up the connection:

    after installing both apps on both devices, we need to configure them so they can connect with each other.
    but first, make sure both PC and Phone are connected to the same Network (WIFI or you can use tethering Hotspot from your phone and connect to it from pc)

    - on your PC:

    Click on your keyboard WINDOWS + R keys, a cmd will appear.
    type: ipconfig then click enter.
    Locate the IPV4 address (looks like this : 192.168.1.12) and save it for next step

    - on your Phone:

    launch the app and scroll down, you must see a field for the IP,
    enter your PC IP there.
    Set port to 4242.

    Now if you hit start tracking on both apps a movement should be detected, however we are not done.
  • How to set up OpenTrack on PC:

    on the main interface:

    set the Input to : UDP over network
    click the hammer icon and set the same port that u typed inside the android app (in our case it was 4242)

    set the Output to : freetrack 2.0 Enhanced

    set the Filter to : Accela
    click the hammer icon and set the same values as shown in this image:
    https://imgur.com/olvL2eM

    Next step: Click Options:

    in the shortcut tab , you can set keybinding
    i just used:
    Center : numberpad 5
    Toggle : numberpad +

    Check both Center at startup and Never translate the application interface

    in the Output tab , set settings as shown in image below
    https://imgur.com/vLPyiLs

    in the Game detectiontab, locate and add LFS.exe
    now close options.

    Next step: Click Mappings:

    set Yaw as shown below:
    https://imgur.com/v0zceoZ

    set Pitch as shown below:
    https://imgur.com/wVLyvke

    set Roll as shown below:
    https://imgur.com/7MG27sf
  • How to set up the phone app:

    simple setup. just apply as below:
    https://imgur.com/aFZwCaS
    i found these values are the best after 2 hour tweaking.
now you are done!

Notes:

- the android app doesn't seem to keep working when screen is locked/off so just turn brightness to lowest to safe battery and prompt the app to use intensive battery or what i mean is allow to run in background, its actually very battery friendly.

- Face your phone towards the screen and click Calibrate for the app to use these coordinates as the origin, make sure its placed flat as possible, as if u set it on table.. Actually just set it on table in front of screen. Yes do that.

- You can center the screen using the binded key and it will use the new center as origin

- everything can work offline as long as they connected to same wireless network

- values for sensors may not work for all devices depending on the gyroscope and accelerometer sensitivity of your device

- You may feel neck pain due to the device weight on your head, remember to take a break sometimes
  • What you can use to set the phone still on your head?

    i used:

    - old headphones.
    - old selfie stick phone holder, took the part out of the stick.
    - some straps.
    - tape.
    aaaaaaaaaaand the vey pro design is : https://imgur.com/dpjfH2D


here's an actual footage of how it works, lag is from recording
https://youtu.be/RtKJpUjY9XE

feel free to ask me any questions related to this thread

ENJOY YOUR CHEAP VR EXPERIACNE!
Last edited by bayanofmansorofisky, . Reason : Links weren't linking
jamesd256
S1 licensed
I don't know why but it's working now Smile

Thanks for the suggestions anyway. FYI it works with NVENC over wifi, but obviously better on USB 3 as you say.

I bought a USB 3 PCIe card, as my Mobo only has 2.0. The issue is the phone regularly drops out of tethering mode on USB, which kind of kills the fun.

Another question though, do you know how to set the resolution LFS sends to the VR view? The image is pretty pixellated. In the steam home room, there is much higher resolution with much less pixellation. I can't set the resolution in the screen options as it complains this is only for full screen, but VR must be used with the app windowed
redbot_
S3 licensed
Have you tried using different streaming options in Advanced video settings from the VRidge settings? Try using the Software (High compatibility) option.

Also USB tethering gives much better performance and reliability than wireless.
Eclipsed
S3 licensed
I cannot imagine a local insim which is connected locally on your own computer causing such problems,but I'm not a network expert.
My only guess is something in your ISP's traffic routing is causing these problems,like packet loss,but again - read the few last words of previous sentence.

Edit: Can you connect to your PC to mobile phone to use it as internet access? Like hotspot via wifi,some models support tethering wia USB cable too. If that works,that would be proof of ISP problems.
simon1234
S3 licensed
https://www.lfs.net/forum/-1/search/tethering


Might be something to help here.
PdaNet Connection error?
liveforspeedracer101
S2 licensed
Sorry if this should be inside a thread, but I am using PDAnet to connect my Android to my Windows Vista desktop (2.0 ghz quad core) running LFS. Everything else(google, etc.) works fine, but live for speed will load the host list, but when I click on a host to connect, it takes me there, loads the track, then says cannot connect to host and boots me out of the map, back to the host screen. I would like to tether from Android, and im using PDAnet because it is off of wifi. Using a KIndle fire hd8. I have tried the same thing on my Android phone using the inbuilt mobile data tethering and it worked fine. Its just pdanet. Any solutions?
BeNoM
No longer welcome
It just opens a black screen for me and the other Android app 'LFS Dashboard' doesn't work over USB tethering (my WIFI doesn't currently work), I guess I'll have to give up having an Android dashboard.
Xenix74
S3 licensed
Ps: use Trinus and Moonlight (playstore) together when you own a Geforce Gtx over USB tethering (much faster)
DrifterX865
S2 licensed
Are you guys tethering off of iPhone or Android?

If Android, try something like PdaNet (installed on PC & Device) at lvl 1 or 2 in settings on PC

Another thing you can try is to connect to a VPN beforehand and see if it helps, try something like Windscribe.
I'm not sure if VPN's are allowed, but it did help me before on other games back in 2010 & 2011, so it's just a suggestion.Big grin
Last edited by DrifterX865, .
cargame.nl
S3 licensed
USB tethering.. Although I really do not like to promote mobile network usage. It sucks monkey balls.
theblackrabbi
S3 licensed
I'm trying the usb tethering now that was a good idea lets see.
cargame.nl
S3 licensed
Ye but thats the thing.. You dont need to do anything, I have a Verizon Moto Z Force, connected to the awesomely slow German mobile phone network (O2, worse you cannot get), Wifi tethered, no problem, instantly working.

Did you tried USB tethering already? Phone attached to computer with USB? Is there some security software running on the phone?

If yes then I am out if suggestions. Oh, try a phone of a friend. Maybe some other network. Narrowing down the problem is nice to do.
theblackrabbi
S3 licensed
Cricket service provider. Unlimited high speed internet w/tethering. Huawei phone.

I'm sure that I need to open ports just as I had to do every other time I installed this game. Unfortunately I looked online and there is no straightforward way of doing this.

Not sure I understand you RC-Maus because I had to do this everytime before with opening ports.

I download torrents day and night so no problem there. Honestly LFS was the first and last game I have ever had to do this with, and spent a fair amount of time when I first got the game in order to race online.

Like I said if it's not possible that is ok with me. Just thought there might be some special way I haven't found yet.
cargame.nl
S3 licensed
To get back on "the problem". 5 years ago I was able to join my servers with a tethered phone I now remember, must have been very far ahead in time. Didn't have to do anything.

And just now I had a great idea! I have a new phone (coincidentally a USA Verizon phone hahaha) .. Shared my data connection with Wifi tethering to my Windows 10 64 bit laptop. Started LFS and instantly connected without any problem to some random MRC server. So...

You know what I think is the problem? That you could not care less.. It's karma. Good luck with finding the problem but it is not LFS. Its you and or your stuff.
cargame.nl
S3 licensed
Quote from theblackrabbi :it's 2017 and there are high speed internet connections on phones now.

Due to the nature of antennas, transmission, signal collisions, users and over-demand (because of the so called "unlimited" data (which is not really true)), no, it's not really high -quality-. Cell phone networks are always slower then wired networks, if it is 2017, 2020, or 2050.. Doesn't matter.

Tethering with a mobile phone is damn ass cheap, not surprised that it gives problems. But, as usual, the problem is elsewhere not by the person itself. That is 2017.
cargame.nl
S3 licensed
Quote from theblackrabbi :
Also I'm going off my Android wifi so maybe that's the issue.

Why you should do that in the first place? Are you using some mobile phone carrier for your internet?

Sounds like you are tethering. Some mobile phone company's do not allow you to tether.
K. Tsuchiya
S3 licensed
It has been ages since I logged in, that said, I lost my entire reply I typed out earlier while waiting for the video to upload to youtube giving an example of head tracking using a phone. I'll try to shorten it up a little and get this posted.

I drifted away from cars for a bit and got into motorcycles, ended up finding Piboso at the beginning of GP Bikes development about the time I stopped playing LFS ("CTRA", the racing league, is long gone isn't it... sooo much has changed.) and recently, after many years wishing for it, gave it a shot to get head tracking working. Struggling to understand technology really makes me feel my age.



Anyway, I use a combination of facetracknoir, TrinusVR (for the usb tethering) and I'm not sure if the other stuff, freepie, ht, etc. really has anything to do with it functioning, who knows, but I got a Samsung Galaxy S3 (internal gyro) to work as a head tracking unit rubber banded to my headphones. It is really smooth, and gives a sense of immersion I haven't felt since 2003 when I discovered LFS... has it really been that long??




So in short, it works! If you have a phone with a gyro (pretty much required for smooth movement) and some spare time, the results are worth exploring. I'm sold on head tracking and I'm going to buy a pre-packaged unit to use with my 50inch TV and race rig so it gives a better sense of "being there", but for all intents and purposes, I would say the video speaks for itself, it functions as you would expect if not a little better that I was thinking it would.



Any moto hooligans wondering what head tracking looks like on GP Bikes, here it is, my brother (been riding for 10 years at the time) bought a brand new 2011 CBR250R and did a track day (With less than 1000 miles on the bike. lol) at Blackhawk Farms Raceway, so I figured the coolest thing possible would be to replicate it with my first recorded video of head tracking on GP Bikes. Smile






Hope that helps to see what it looks like, I'm unsure I would be of any use answering technical questions about it as I am kind of a technological neanderthal, I tune carbs and build vintage motorcycles, so the computer knowledge extends as far as google can instruct me. There are some great DIY's on phone based head tracking and the best one I could find was for ARMA3, but applies all the same.

http://minicrit.com/?comic=hellnocopter
logitekg25
S2 licensed
i wanted wifi tethering, i tried the app that seemed to work very well, and no dice even after root, and verifying root with super SU, and root checker.

i read up that it may be because of the factory ROM shutting out non-stock tethering apps which leads me to now needing to flash a new ROM.

before i flash a new ROM i need to know what i need to backup, how i can do that, and what else needs to be done in order to do it safely and properly.
Jakg
S3 licensed
Quote from Töki (HUN) :If you used android before, you will get bored with iOS in 1 day.

I had a Google G1 (HTC Dream) running Android for 18 months, it was my first smartphone and I loved it. I've had an iOS device for a bit over 2 years (iPhone 4 & 5). I wouldn't say I'm "bored" but iOS doesn't "excite" me - thats the point. It's an OS, it lets me focus on the stuff I want to do - not the OS itself. Same philosophy with my Mac.

EDIT - And as the costs of phones always comes up... I pay £39 a month for 24 month (£936) and paid about £80 for the phone (iPhone 5 32GB), which gives me unlimited everything (including data and tethering). My girlfriend pays £6 a month for a SIM-only rolling contract which gives her 1200 mins, unlimited texts & 1GB of data. That with my old iPhone 4 makes it a VERY cheap route of smartphone ownership.
Last edited by Jakg, .
DavidTiger
S3 licensed
There is Bluetooth? Just awful lol e.g the iPod has it but the only thing that's possible with non apple devices is Internet tethering..

Apple and iOS is just awful if you want to do anything other than basic functions and what apple say you can do sure you can jail break them and add some stuff but their OS is still too closed and locked down for power users etc
It's probably only popular because its so stable (in most ways) and only 1 version exists, where android there's like 40 different builds from phone companies. Making most experiences with android bad because they fill it with bloatware, 3rd party apps and god awful launchers (Yes, you..HTC and Samsung lol)
At least android is mostly open source and built on top of Linux with a lot more customisable things.
Hell I can even run Ubuntu natively from flash on my android phone, its slow but works

Kinda off topic but well, I just don't like apple xD
well I have an iPod 4g but only used for music to save my phone battery when out walking, I still hate the OS
Last edited by DavidTiger, .
imthebestracerthereis
S3 licensed
"This sucks so f*cking much".

Referring to my internet speeds right now when tethering to my phone since Comcast is down in my area...
imthebestracerthereis
S3 licensed
Power has been out since 12:00 noon, generator keeping the lights on. The water (at 1:00PM) has risen over the sand barriers, about two feet deep in some low lying areas. There's currently a travel ban (no cars on the road, only emergency vehicles), yet people still ignore it. They said around 8:00 PM it's suppost to peak at it's worst (high tide, full moon), and I bet it will. Several trees have fallen in my backyard, luckily none on any sheds or cabin. Still no Internet since noon, have been tethering through phone with 1 bar (FU SPRINT!). Pages take forever to load, so I haven't gotten a chance to upload any good pictures yet (see my previous post for link to pics/vids).
Last edited by imthebestracerthereis, . Reason : I accidentally a word.
daveb948576
S2 licensed
ok i think i have cured the problem!

as you know i wasn't causing any troubles with other members of the lfs community, that can be ticked off your list!

i was using the online servers whilst tethering through my android phone so the connection was not happy and very weak and unstable.

i have now signed up to talktalk and am using it now as it has gone live

the problem i have now is i had done a complete fresh install of windows 7 onto my pc which is more than capable of running lfs and windows 7 quite happily but when i went to put in my s2 username and password my username is not found online so i cant even unlock my s2 license for offline game play!

i can send proof from speedtest.net giving the speed of the net whilst tethering and i can give it now whilst im at home and using the broadband supplied by talktalk.

i have been through 21 days of a 30 day online ban 9 days are left im just wondering if someone from lfs will remove my ban for me if i provide proof from speedtest.net?

any help would great!!
daveb948576
S2 licensed
ok right i still keep getting these bans and sorry to jack for not getting back to you about the meet, send me a private message to arrange one tonight after 9:30 will be ok,

victor, i can assure you it is not behaviour problem, i also saved a multi player replay of me drifting and then i get disconnected without me acting like a child or doing anything i shouldn't! i can send you the replay if it puts your mind at ease? i still get given a 2 week punishment though for a game i paid for???

i had uploaded the temp file for the reply but its not the right one! once i'm banned from a server i can't hit number 2 to save the replay!

the annoying thing is i have a hard day at home looking after my 2 year old son being a single parent so i chill out in the evening playing my favourite game and i get banned for weeks or a month through no fault of my own!

it's also not as if i'm new the game and keep crashing because i have no practice!

it's also not as if i have made a complaint about this happening once it's a constant thing so you would think the 1st 30 day ban would of given me enough punishment if i was even doing something that i shouldn't!

my guess is the phone tethering is causing it but i still have not heard of a way to test the internet connection or use some kind of logging on the pc to show data use/packet loss or even disconnections, any ideas on a bit of software that can log the data use in a graph?
Last edited by daveb948576, .
Silverracer
S3 licensed
Hi

What's the ping to the server(s) that you connect to? And what do you mean by "result in being locked up?"

What type of connection are you using? Dial up - or broadband? Are you using wi-fi or tethering via phone etc.?

If possible, run tests from both www.speedtest.net and www.pingtest.net and post the results here. Might be able to see if this is mainly down to internet connectivity issues... When you get the pingtest results - have a look here: http://www.pingtest.net/learn.php

i.e.


1
FGED GREDG RDFGDR GSFDG