Dive Board



Camera rotation problem, need help

Camera rotation problem, need help

by JayRay on Feb 9th, 2014 18:14 PM

Hey,
i have some strange problems with my apps build in unity.
everytime i start the app the camera is rotated to 180 degrees. sitting in a cockpit means that i watch out to the back.
this is even a problem in my "vr spave walk app", where you start looking inside the space suit helmet and not outside.
you always need to turn around yourself to 180 degree to get in the right direction of view. i can deal with that, but some people downloading the
app complain about that. so it would be nice if this can be fixed somehow.
in the unity editor the view direction looks fine on preview. however i try to change the camera angle in the unity editor there are
strange results on my phone, like headtracking is inverted.
What may be the problem here?

and....sorry for my bad english :)

JayRay

Posts: 51

Joined: 09.02.2014


Re: Camera rotation problem, need help

by FabulousPixel on Feb 9th, 2014 19:30 PM

Eine einfache Lösung wäre das Level um 180° in Unity zu drehen :D

edit:
Die Dive Kamera startet immer in die Richtung, in die sie schaut wenn man sie als Prefab in die Szene setzt.
Wenn du die Rotation im Editor änderst, stimmt sie nicht mehr erwarteten Blickrichtung überein. Glaub ich zumindest.

FabulousPixel

Posts: 14

Joined: 17.07.2013


Re: Camera rotation problem, need help

by JayRay on Feb 13th, 2014 20:48 PM

Danke für den Tipp. Werds mal probieren...

JayRay

Posts: 51

Joined: 09.02.2014


Re: Camera rotation problem, need help

by Stefan on Feb 14th, 2014 16:03 PM

The next version of the plugin will deal with that differently , offering an absolute camera (like now) and a relative camera that is rotated with its parents.

Stefan

Posts: 129

Joined: 30.06.2013

dive-owner


Re: Camera rotation problem, need help

by JayRay on Feb 15th, 2014 02:05 AM

ah ok, great! :D

JayRay

Posts: 51

Joined: 09.02.2014


Re: Camera rotation problem, need help

by bbennett22 on Mar 3rd, 2014 21:18 PM

any idea when the relative camera feature is going to be released?

bbennett22

Posts: 43

Joined: 12.02.2014


Re: Camera rotation problem, need help

by JustMeDaFaq on Jul 10th, 2014 22:13 PM

Bump, something new about it? Got it working by using unitys build in gyrosensor API, but unitys api is much slower than the native dive plugin. So an native plugin with relative camera rotation support would be realy cool!

JustMeDaFaq

Posts: 82

Joined: 15.10.2013


Re: Camera rotation problem, need help

by Demone on Aug 9th, 2014 15:24 PM

Your phone's coordinate system is not completely same as Unity3D's . When I developed my own app , I add a parent object to the dive camera . And I give it a rotation as an offset , which is decided by the difference between my android phone and the Unity3D .

Demone

Posts: 2

Joined: 09.08.2014


STATISTICS


Total posts: 171536


Total topics: 41569


Total members: 44828


Newest member: Daniel G.