Dive Board



Re: A Way to play PC Games with your Durovis Drive in 3D?!?

Re: A Way to play PC Games with your Durovis Drive in 3D?!?

by Freakvs on Dec 9th, 2013 07:38 AM

Can you explain how you run it on android? i dont find there any apk on github, i've installed the ms installer from theri homepage, so the client should work on pc now, but how i get it run on android? please help :D i want headtracking


First you need to download freepie from website.then install it on pc.In freepie install folder you have apk for android.Copy that to your deviece and install.In freepie on pc you need an scrip form mouse emulation(for me it is for euro truck simulator 2)then you need to run script on pc and app on your android device.Then for game use splashtop and tridef 3d.

Freakvs

Posts: 17

Joined: 04.12.2013

dive-owner


Re: A Way to play PC Games with your Durovis Drive in 3D?!?

by Freakvs on Dec 9th, 2013 08:53 AM

In freepie install folder there is an apk file for android . Install it on your android device.Set your PC IP adress and port 5555 for example.On pc run freepie app.File / new and put on tgis script def update():
global yaw
global roll
global pitch
yaw = android[0].googleYaw
roll = android[0].googleRoll
pitch = android[0].googlePitch

if starting:
yaw = 0
roll = 0
pitch = 0
enabled = False
android[0].update += update

diagnostics.watch(yaw)
diagnostics.watch(roll)
diagnostics.watch(pitch)

deltaYaw = filters.delta(yaw)
deltaPitch = filters.delta(pitch)
deltaRoll = filters.delta(roll)

if (enabled):
mouse.deltaX = -deltaYaw*600
mouse.deltaY = -deltaRoll*1000

toggle = keyboard.getPressed(Key.Z)

if toggle:
enabled = not enabled

Now in app on pc run this script on android run freepie imu and you are good to go use splashtop for streaming and tridef 3d for aide by sude image.

Freakvs

Posts: 17

Joined: 04.12.2013

dive-owner


Re: A Way to play PC Games with your Durovis Drive in 3D?!?

by gioy808 on Dec 9th, 2013 11:30 AM

Okay t hanks for help, i get the andoird apk to run, but your script is not working, i copied

"script def update():
global yaw
global roll
global pitch
yaw = android[0].googleYaw
roll = android[0].googleRoll
pitch = android[0].googlePitch

if starting:
yaw = 0
roll = 0
pitch = 0
enabled = False
android[0].update += update

diagnostics.watch(yaw)
diagnostics.watch(roll)
diagnostics.watch(pitch)

deltaYaw = filters.delta(yaw)
deltaPitch = filters.delta(pitch)
deltaRoll = filters.delta(roll)

if (enabled):
mouse.deltaX = -deltaYaw*600
mouse.deltaY = -deltaRoll*1000

toggle = keyboard.getPressed(Key.Z)

if toggle:
enabled = not enabled
"

save it and hit run script, then i get this message
"unexpected token 'def'"

an nothing happens :/

EDIT: i got an galaxy s4

... i get no script to work, every script i try , failures like : expected an indented block

gioy808

Posts: 18

Joined: 08.12.2013

dive-owner


Re: A Way to play PC Games with your Durovis Drive in 3D?!?

by Freakvs on Dec 9th, 2013 11:51 AM

def update():
global yaw
global roll
global pitch
yaw = -android[0].googleYaw
roll = -android[0].googleRoll
pitch = -android[0].googlePitch

if starting:
yaw = 0
roll = 0
pitch = 0
enabled = False
android[0].update += update

diagnostics.watch(yaw)
diagnostics.watch(roll)
diagnostics.watch(pitch)

deltaYaw = filters.delta(yaw)
deltaPitch = filters.delta(pitch)
deltaRoll = filters.delta(roll)

if (enabled):
mouse.deltaX = -deltaYaw*600
mouse.deltaY = -deltaRoll*1000

toggle = keyboard.getPressed(Key.Z)

if toggle:
enabled = not enabled






Try it now it MUST work :-)

Freakvs

Posts: 17

Joined: 04.12.2013

dive-owner


Re: A Way to play PC Games with your Durovis Drive in 3D?!?

by Freakvs on Dec 9th, 2013 11:54 AM

And second thing look on freePIE website how the script example looks like becouse text schoud not be in one line .

Freakvs

Posts: 17

Joined: 04.12.2013

dive-owner


Re: A Way to play PC Games with your Durovis Drive in 3D?!?

by gioy808 on Dec 9th, 2013 12:11 PM

am i so stupid? i dont get it, shit

gioy808

Posts: 18

Joined: 08.12.2013

dive-owner


Re: A Way to play PC Games with your Durovis Drive in 3D?!?

by Freakvs on Dec 9th, 2013 12:22 PM

Every thing is all right .The only thing is that text must be like in examples on freePIE site. Def update and if starting can not be in one line with others.Just look example script please :-)

Freakvs

Posts: 17

Joined: 04.12.2013

dive-owner


Re: A Way to play PC Games with your Durovis Drive in 3D?!?

by gioy808 on Dec 9th, 2013 12:28 PM

how cant i see that :lol:

very big thanks, im bow trying for my self.. at first :D i hope i'll get it to run :)

gioy808

Posts: 18

Joined: 08.12.2013

dive-owner


Re: A Way to play PC Games with your Durovis Drive in 3D?!?

by Freakvs on Dec 9th, 2013 12:34 PM

You welcome :-) if you have any questions just write a message ;-) next tip is if you get it run toggle button can be Z or if not then it is Y . Because i see that you have german keyboard just like by me :-p

Freakvs

Posts: 17

Joined: 04.12.2013

dive-owner


Re: A Way to play PC Games with your Durovis Drive in 3D?!?

by gioy808 on Dec 9th, 2013 12:50 PM

yea, ive already struggeled with that :D set it to other button, but little question now, my x and y axis are inverted, how to i invert both axis in this script? :)

gioy808

Posts: 18

Joined: 08.12.2013

dive-owner