Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411507 Posts in 69374 Topics- by 58429 Members - Latest Member: Alternalo

April 25, 2024, 11:00:54 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperTechnical (Moderator: ThemsAllTook)Record real life movement in game
Pages: [1]
Print
Author Topic: Record real life movement in game  (Read 974 times)
Ryan Taylor
Level 0
**



View Profile
« on: August 10, 2017, 04:09:59 AM »

I'm looking to have the game track your movement while walking in real life and copy the amount of steps moved in game.

Is there a way to capture precise real life movement/steps?

I've looked at using GPS and a pedometer, but it isn't exact
Logged

Games Released:
* debris



Thank you,

Ryan Taylor
Game Developer
Polly
Level 6
*



View Profile
« Reply #1 on: August 10, 2017, 06:02:12 AM »

Your best option is to use GPS+WiFi* based tracking in combination with client-side prediction ( based on the accelerometer ) as if it were a ( very laggy ) network game.

*Android & iOS already do this by default:

Logged
Ryan Taylor
Level 0
**



View Profile
« Reply #2 on: August 10, 2017, 06:51:51 AM »

Thank you Polly! This is exactly what I needed and the diagram helped immensely.
Logged

Games Released:
* debris



Thank you,

Ryan Taylor
Game Developer
Ryan Taylor
Level 0
**



View Profile
« Reply #3 on: August 13, 2017, 05:51:55 PM »

Just a bump to see if anybody else has thoughts on an more accurate approach than GPS.

Refresher: I'm creating the real world in 3d, 1:1 scale. When I move from the bathroom to the bedroom in my house, I'd like to somehow capture the movement and location and then reenact it in game. I'm thinking SLAM may be required but I'd like to get other thoughts.
Logged

Games Released:
* debris



Thank you,

Ryan Taylor
Game Developer
Polly
Level 6
*



View Profile
« Reply #4 on: August 14, 2017, 01:28:28 AM »

When I move from the bathroom to the bedroom in my house, I'd like to somehow capture the movement and location and then reenact it in game.

Ah, in that case my suggestion won't suffice.
Logged
Ryan Taylor
Level 0
**



View Profile
« Reply #5 on: August 14, 2017, 10:42:50 AM »

I appreciate the reply, though.

My research this far has given me a term for what I'm looking to do: indoor positioning system. I cannot find a Unity3D asset that does this and I'm not finding a lot of information about it
Logged

Games Released:
* debris



Thank you,

Ryan Taylor
Game Developer
Ryan Taylor
Level 0
**



View Profile
« Reply #6 on: August 19, 2017, 08:03:22 AM »

Just a slight bump. Instead of precise world tracking, I'd be okay with the ability to know when the device move and what direction.

Acceleration isn't feasible due to the errors and inaccuracy.

Is there a way to know when the device moves without using acceleration?
Logged

Games Released:
* debris



Thank you,

Ryan Taylor
Game Developer
Cheesegrater
Level 1
*



View Profile
« Reply #7 on: August 19, 2017, 03:13:10 PM »

Some folks turn on the camera and compare incoming frames to track movements. It's not easy code, though there are some image processing functions in OpenCV that help. Can be a big drain on CPU/battery, too.

All other solutions I know of require external hardware such as beacons or static radio sources.
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic