Dive Board
-
CameraLeft and CameraRight not appearing in inspector after
CameraLeft and CameraRight not appearing in inspector after
by Inka on May 1st, 2015 18:13 PM
CameraLeft and Camera right are not appearing in the inspector when I apply the "Open Dive Sensor" script. I was working on a FPS, very basic that used the unity first person controllers. I started running through this tutorial to my sample fps.
http://www.talkingquickly.co.uk/2014/11 ... -tutorial/
I was able to create the two cameras and it was very neat. When I tried to apply that script though, my options are different than those displayed on the tutorial. See attached photo. Has anyone else encountered this?
Unity.PNGInka
Posts: 8
Joined: 01.05.2015
Re: CameraLeft and CameraRight not appearing in inspector af
by Inka on May 1st, 2015 18:14 PM
If the photo did not load
Inka
Posts: 8
Joined: 01.05.2015
Inka
Posts: 8
Joined: 01.05.2015
Re: CameraLeft and CameraRight not appearing in inspector af
by Torben on May 1st, 2015 20:41 PM
Hi!
something seems to be buggy with the board's upload functionality at the moment - sorry for that!
could you please upload the picture somewhere else?
Did you also try the dive unity demo?
Which version / revision of our plugin did you use?
It looks like the plugin version used in the tutorial is older than 2.0_r500.
We've splitted some code in seperate classes and the two cameras now have to be
assigned to "Offset Center" like in the screenshot:Torben
Posts: 63
Joined: 26.03.2014
Re: CameraLeft and CameraRight not appearing in inspector af
by Inka on May 2nd, 2015 00:26 AM
Hey! Thank you soooo much!
I was pulling my hair out. So I found what you were talking about. Your picture was very informative. I see that as opposed to the demo, you had used a prefab dive camera. I used the camera successfully in my environment. I also applied the cameras from the original unity FPS controller successfully so I think using the open dive sensor.cs and offset center.cs as you mentioned. I am not sure if that will do it or not, in the tutorial that I was working off of, he said that after this step, the edges would be distorted to compensate for google lenses. I noticed in the demo the edges were not distorted either. Is this feature no longer supported or when i build the game in unity to export will it be corrected?Inka
Posts: 8
Joined: 01.05.2015
Re: CameraLeft and CameraRight not appearing in inspector af
by Torben on May 2nd, 2015 14:51 PM
The lens distortion correction is a feature of google cardboard's SDK.
Usually you need Unity Pro for "image effects" / render to texture, but google
also added a render plugin so that the distortion correction is also available to indie users.
If you have concrete problems with fusing cardboard sdk and the dive plugin, I might be able to help youTorben
Posts: 63
Joined: 26.03.2014
Re: CameraLeft and CameraRight not appearing in inspector af
by Inka on May 4th, 2015 01:10 AM
I will have to check that our. What is the plugin called? Also, I would like to use a bluetooth controller i have to do the walking while my gyroscope from the android acts as the looking part. I am starting to fumble through it but do you know of a good example or search terms I should be researching?
Inka
Posts: 8
Joined: 01.05.2015
Re: CameraLeft and CameraRight not appearing in inspector af
by Inka on May 4th, 2015 01:29 AM
To go a little further, I have this little bluetooth keychain just has 4 buttons and direction. I have a apk I made where I did not successfully use the dive plugin so It plays like it does in the demo like an FPS except I do not have a mouse but the character can move forward back left right only. Looking around does not work.
With the other .apk I made with the dive plugin I can look around the environment but the same bluetooth controller does not allow my character to walk as they look aroundInka
Posts: 8
Joined: 01.05.2015
Re: CameraLeft and CameraRight not appearing in inspector af
by Inka on May 4th, 2015 19:12 PM
Alright, I redid my project and it worked great with this little bluetooth keychain. The bluetooth keychain has one directional pad and 4 buttons. One button works as a select or jump button with the stock code. How would I go about adding features for the other 3 buttons plus there is a start button?
Thanks for all your help. Is there a donations page?Inka
Posts: 8
Joined: 01.05.2015
Re: CameraLeft and CameraRight not appearing in inspector af
by Torben on May 4th, 2015 21:02 PM
Well done!
If you don't mind to share which bluetooth device you're using, I could buy the same and mess around with it
Either way, you could start with gathering some data with an app like https://play.google.com/store/apps/deta ... play&hl=de and/or code something like this:<br />void Update (){<br /> Event currEvent = Event.current;<br /> if (currEvent.rawType != EventType.Repaint) {<br /> if (currEvent.isKey) {<br /> Debug.Log ("Detected key code: " + currEvent.keyCode);<br /> }<br /> Debug.Log (currEvent.rawType);<br /> }<br />}<br />
Torben
Posts: 63
Joined: 26.03.2014
RECENT TOPICS
Power Meets Style: The Woozoo Fan Advantage
Money6x: The Global Platform for Earning Online
Freelancing on Money6x: High-Paying Projects
STATISTICS
Total posts: 171731
Total topics: 41609
Total members: 44855
Newest member: Daniel G.
Lernen Sie die Durovis Dive Familie kennen und verwandeln Sie Ihr Mobilgerät in ein VR-Headset. Erleben Sie Spiele und 360° Videos in VR auf Ihrem Smartphone oder Tablet.