Dive Board



Plugin 2.0 r498

Plugin 2.0 r498

by Stefan on Aug 29th, 2014 16:30 PM

The next version of the Dive Plugin and Dive Unity Demo has been released.
Go ahead and grab it:
http://www.durovis.com/unity/Dive_Plugi ... itypackage
http://www.durovis.com/unity/Dive_Unity ... 0_r498.zip

Changes:
-automatic drift calibration, leave the phone lying on the table for about 20 seconds and drift should be gone !
-new prediction algorithm makes the image much smoother and works much better with fast gyro devices like Google Project Tango.
-low framerate apps are much less jittery now
-preliminary tablet / 7 inch support in Dive Unity Demo

to update your game, you mainly need libdivesensor.so, divejava.jar and opendivesensor.cs .
Please post feedback here.
Cheers
Stefan

Stefan

Posts: 129

Joined: 30.06.2013

dive-owner


Re: Plugin 2.0 r498

by mptp on Aug 29th, 2014 17:33 PM

Works awesome guys!
Was able to exchange the old SDK with the new one in under five minutes, no sweat.
The automatic calibration is absolutely fantastic, far better than I thought, took more like 5 seconds to get rid of all the drift.
My only issue is that it is per-session, and that's a big, big issue. There's no way I can expect people who buy my game to put their phone down on the table for 10 seconds to eliminate drift. What if they're playing on the bus? Is it possible for you to expose this drift value (I couldn't find it in OpenDiveSensor.cs) so that we can save it into PlayerPrefs? Otherwise I'm going to have to (regretfully) stick with the old 1.0 plugin using my own drift calibration which is once-only.

Other than that, I'm super pleased with this release. Nice work! :)

mptp

Posts: 6

Joined: 24.08.2014


Re: Plugin 2.0 r498

by Stefan on Aug 29th, 2014 18:35 PM

actually its not per session if you leave it a little longer, like 20 seconds it should be saved .

Stefan

Posts: 129

Joined: 30.06.2013

dive-owner


Re: Plugin 2.0 r498

by pyratej on Aug 29th, 2014 18:50 PM

Nice! Integrating now. Thanks mate!

pyratej

Posts: 12

Joined: 27.08.2014


Re: Plugin 2.0 r498

by pyratej on Aug 29th, 2014 19:17 PM

Found one small thing...

On iOS target, there are still some Android only type references going on on lines 45 and 46, just needed to "#if UNITY_ANDROID" the two line to Android only. Other than that. Working great so far!

pyratej

Posts: 12

Joined: 27.08.2014


Re: Plugin 2.0 r498

by mr123 on Aug 30th, 2014 21:17 PM

nice update works fine so far.
just one thing:
why does the image gets distorted when looking upwards and downwards?
while looking straight everything is fine.
i tried playing with the zoom setting but i dont get it right.
any thoughts?

mr123

Posts: 4

Joined: 01.04.2014


Re: Plugin 2.0 r498

by Stefan on Aug 31st, 2014 10:28 AM

havent seen this issue yet ?

Screenshot ?

Stefan

Posts: 129

Joined: 30.06.2013

dive-owner


mr123

Posts: 4

Joined: 01.04.2014


Re: Plugin 2.0 r498

by Stefan on Aug 31st, 2014 22:00 PM

maybe you could try commenting out the setIPDCorrection command in Update of Opendivesensor, and see if it behaves different, basically thats needed to ensure if your on a tablet to calculate correct Perspective offsets, if you can live with a phone only app you can adjust the cameras any way you want and not let it auto-correct anything through setIPDCorrection.

Stefan

Posts: 129

Joined: 30.06.2013

dive-owner


Re: Plugin 2.0 r498

by pyratej on Sep 5th, 2014 16:23 PM

Ahoy, I think i'm still having some drifting issues, but not like before.

We are trying to do a scene to where the user would look down at items on table in front of them (while sitting). Once in awhile while looking at some of the items, the camera will drift in different ways almost maybe like its trying to calibrate itself? Is that because the auto-calibration target look position is looking down (just like you'd leave it on a table for 20sec)?

Please advise.
Thanks mate,
Jason

pyratej

Posts: 12

Joined: 27.08.2014