VR Mobile Camera

An asset by Lamberto
The page banner background of a mountain and forest
VR Mobile Camera hero image

Quick Information

0 ratings
VR Mobile Camera icon image
Lamberto
VR Mobile Camera

This node plug-in for Gotot Engine enable a new kind of 3D camera, you can use it with phone vr headset or cardboard.It provide screen split for stereoscopic vision and head tracking by using accelerometer and gyroscope sensor on the phone, if gyroscope is not found, magnetometer will be used as fall back.Gyroscope data are matched with accelerometer data so to have a very accurate and responsive tracking, unfortunately only hi-end phones provide gyroscope, so, magnetometer is supported too.Magnetometer outputs a very noisy data, so, the signal is filtered in order to make it usable. The drawback of filtering data is that you introduce a lag. You can balance noise and lag by modifying the Magnetometer Interpolation parameter in the camera inspector.Changelog:- v.0.5 initial release- v.0.6 only some mess with github- v.0.7 added support for interactive objects

Supported Engine Version
2.1
Version String
0.7
License Version
MIT
Support Level
community
Modified Date
7 years ago
Git URL
Issue URL

VR Mobile Camera

This node plug-in for Gotot Engine enable a new kind of 3D camera, you can use it with phone vr headset or cardboard.
It provide screen split for stereoscopic vision and head tracking by using accelerometer and gyroscope sensor on the phone, if gyroscope is not found, magnetometer will be used as fall back.
Gyroscope data are matched with accelerometer data so to have a very accurate and responsive tracking, unfortunately only hi-end phones provide gyroscope, so, magnetometer is supported too.
Magnetometer outputs a very noisy data, so, the signal is filtered in order to make it usable. The drawback of filtering data is that you introduce a lag. You can balance noise and lag by modifying the Magnetometer Interpolation parameter in the camera inspector.

VR Camera Parameters

You can set some camera parameter in the inspector panel inside Godot.
You can set Eyes Distance and Eyes Convergence.
The camera can moves on the plane if you push the visor up and down, the speed is set by the Walking Speed parameter.
Fow, Near and Far just work as on regular 3D camera.
Magnetometer Interpolation sets the number of frames to be taken in count for interpolating data, the higher is the number the smoother is the view but increments the lag.
You can lock an axis rotation by unchecking Enable Yaw, Enable Pitchand Enable Roll.
Show Data check showd sensors data during runtime and is mainly for debugging purposes.

Interactive Objects

Often user using HMD have no input devices for interacting with application, for this reason I've introduced interactive objects.
An Interactive object reacts when it's in the center of the view, a progress circle is shown, so, you have the time of moving your view away from it if you don't really wish interacting to it, otherwise, if you hold it at the center for a while you trigger the action on it.
Take a look to test_scene.tscn for an example on how it works.

In a few words you have to setup a collision object and then attach a script to it. The script have to contains _on_action() function containing the code to execute when the object is triggered by the user and, optionally, a _on_roll_in() / _on_roll_out() function if you wish give some feedback.

#Compatibility The plug in was tested successfully on Android devices.
There is initial iOS support but it seems Godot can't access magnometer and gyroscope data on such OS so it's not very usefull on Apple devices right now.
Fortunately Bastiaan Olij is working on Godot sources for implementing them.

This node plug-in for Gotot Engine enable a new kind of 3D camera, you can use it with phone vr headset or cardboard.
It provide screen split for stereoscopic vision and head tracking by using accelerometer and gyroscope sensor on the phone, if gyroscope is not found, magnetometer will be used as fall back.
Gyroscope data are matched with accelerometer data so to have a very accurate and responsive tracking, unfortunately only hi-end phones provide gyroscope, so, magnetometer is supported too.
Magnetometer outputs a very noisy data, so, the signal is filtered in order to make it usable. The drawback of filtering data is that you introduce a lag. You can balance noise and lag by modifying the Magnetometer Interpolation parameter in the camera inspector.

Changelog:
- v.0.5 initial release
- v.0.6 only some mess with github
- v.0.7 added support for interactive objects

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
VR Mobile Camera icon image
Lamberto
VR Mobile Camera

This node plug-in for Gotot Engine enable a new kind of 3D camera, you can use it with phone vr headset or cardboard.It provide screen split for stereoscopic vision and head tracking by using accelerometer and gyroscope sensor on the phone, if gyroscope is not found, magnetometer will be used as fall back.Gyroscope data are matched with accelerometer data so to have a very accurate and responsive tracking, unfortunately only hi-end phones provide gyroscope, so, magnetometer is supported too.Magnetometer outputs a very noisy data, so, the signal is filtered in order to make it usable. The drawback of filtering data is that you introduce a lag. You can balance noise and lag by modifying the Magnetometer Interpolation parameter in the camera inspector.Changelog:- v.0.5 initial release- v.0.6 only some mess with github- v.0.7 added support for interactive objects

Supported Engine Version
2.1
Version String
0.7
License Version
MIT
Support Level
community
Modified Date
7 years ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers