Dive Board
-
Demanding iOS support
Demanding iOS support
by taphos on Aug 23rd, 2013 21:08 PM
Ive received a dev kit on gamescom. when i got back to the hotel, i wanted to try the device out. it was a great disappointment for me when i understood that there is no iphone support. no games, no unity plugin
taphos
Posts: 4
Joined: 23.08.2013
Re: Demanding iOS support
by Stefan on Aug 24th, 2013 07:08 AM
As stated at gamescom Iphone support is in development by me.
Make your game, compile it for Android first and then compile for Iphone later.Stefan
Posts: 129
Joined: 30.06.2013
Re: Demanding iOS support
by rudemom on Aug 24th, 2013 08:26 AM
Do you mean consumer support?
That would mean we made a mistake giving the OpenDive to you. We wanted to give away free Dives only to developers - and apparently nobody checked on you using IOS.
I'm sorry, are you still around and could bring it back?rudemom
Posts: 29
Joined: 30.06.2013
Re: Demanding iOS support
by taphos on Aug 24th, 2013 11:17 AM
"rudemom" wrote:
That would mean we made a mistake giving the OpenDive to you.
Do you know consumers who would use Unity plugin? Were your mom so rude that you are now rude with people?
If you are dive developer, I have no wish to cooperate with you.taphos
Posts: 4
Joined: 23.08.2013
Re: Demanding iOS support
by taphos on Aug 24th, 2013 13:17 PM
Stefan, why not use Unity standard way to access sensors instead of an additional plugin?
http://docs.unity3d.com/Documentation/S ... scope.html
http://docs.unity3d.com/Documentation/S ... mpass.html
Or it doesnt provide the required reaction speed?taphos
Posts: 4
Joined: 23.08.2013
Re: Demanding iOS support
by Stefan on Aug 26th, 2013 14:01 PM
I am on Iphone support.
The standard way of getting orientation is not fast enough for dive at least on android. Also there are some special things by me inside the plugin.
Anyway I am definately on it, the mac mini is standing at my desk, as well as an ipod. I've never programmed mac before but its no problem. I'm gonna write the plugin next week I guess and then I hope everythings fine.
Remember though that the Mac devices , Ipod and iphone have a very small screen that is not optimal for 3d gaming.Stefan
Posts: 129
Joined: 30.06.2013
Re: Demanding iOS support
by rudemom on Aug 26th, 2013 14:30 PM
Hi taphos,
sorry for the inconvenience - I think we kind of met yesterday or on Saturday at gamescom (at least I saw you talking to Stefan and he told me you settled the iOS issue)? I'm Stefan's wife - and, true, that was a little rude*. Do you accept my apologies?
Yours,
Gisela
*My former standard user name was "rudegirl", but since meanwhile there are two kids, I thought "rudemom" might be more appropriate...rudemom
Posts: 29
Joined: 30.06.2013
Re: Demanding iOS support
by taphos on Sep 9th, 2013 11:00 AM
Rudemom, apologies accepted.
Meanwhile here is a version of OpenDiveSensor.cs which should work on all platforms which have gyroscope and compass.
It detects fast movements with gyroscope and correcting the direction with slower compass. It probably still have some bugs, but im working on it.<br />using UnityEngine;<br /><br />//OpenDive HEad Tracking for Unity by Stefan Welker<br />public class OpenDiveSensor : MonoBehaviour {<br /> double lastCompassUpdateTime = 0; <br /> Quaternion correction = Quaternion.identity; <br /> Quaternion targetCorrection = Quaternion.identity; <br /> Quaternion compassOrientation = Quaternion.identity; <br /> <br /> void Start() <br /> {<br /> Screen.sleepTimeout = SleepTimeout.NeverSleep;<br /> Input.gyro.enabled = true; <br /> Input.compass.enabled = true; <br /> }<br /> <br /> void Update() <br /> { <br /> Quaternion gyroOrientation = Quaternion.Euler (90, 0, 0) * Input.gyro.attitude * Quaternion.Euler(0, 0, 90); <br /> if (Input.compass.timestamp > lastCompassUpdateTime)<br /> { <br /> lastCompassUpdateTime = Input.compass.timestamp;<br /> Vector3 gravity = Input.gyro.gravity.normalized;<br /> <br /> Vector3 flatNorth = Input.compass.rawVector - Vector3.Dot(gravity, Input.compass.rawVector) * gravity;<br /> compassOrientation = Quaternion.Euler (180, 0, 0) * Quaternion.Inverse(Quaternion.LookRotation(flatNorth, -gravity)) * Quaternion.Euler (0, 0, 90);<br /><br /> targetCorrection = compassOrientation * Quaternion.Inverse(gyroOrientation); <br /> }<br /><br /> if (Quaternion.Angle(correction, targetCorrection) > 45)<br /> correction = targetCorrection;<br /> else<br /> correction = Quaternion.Slerp(correction, targetCorrection, 0.02f);<br /><br /> transform.rotation = correction * gyroOrientation;<br /> transform.rotation *= Quaternion.AngleAxis(90f, Vector3.forward); <br /> }<br />}<br />
taphos
Posts: 4
Joined: 23.08.2013
Re: Demanding iOS support
by Stefan on Sep 29th, 2013 15:23 PM
iOS Plugin support is now available:
http://www.durovis.com/board/viewtopic.php?f=1&t=2576&sid=3b91c12e014d04163a081941bdf01962Stefan
Posts: 129
Joined: 30.06.2013
STATISTICS
Total posts: 171416
Total topics: 41564
Total members: 44823
Newest member: Daniel G.
Conocer a la familia Durovis Dive y convertir su dispositivo móvil en un casco de realidad virtual. juegos de experiencia y 360 ° vídeos en VR en su propio teléfono inteligente o tableta.