Dive Board
-
FPS Cockpit Y-Axis Orientation Problem
FPS Cockpit Y-Axis Orientation Problem
by wurghi on Dec 3rd, 2014 06:55 AM
hi guys, i'm currently working on a cockpit based game in unity3D.
After some time of playing, especially with low FPS(i think) my dive drifts away a little. It doesnt keep on drifting, thats not the problem. The problem is after a little bit of playtime, the pan-orientation(y-axis only afaik) of the player has to be adjusted. So you cant just sit on your couch facing your TV and the front of your cockpit is always where your TV is. Sometimes after some playing time its like 90° next to you or even behind you...- Anyone else has this problem?
I'm currently thinking about adjusting the PAN rotation(y-axis) with the compass input from unity or something... Anyone has an idea how to solve this bug or did i miss something? Played the tuscany demo and there's the same problem
should be able to make the virtual north being in the same direction as the real north..
Grüße, Olliwurghi
Posts: 10
Joined: 03.12.2014
Re: FPS Cockpit Y-Axis Orientation Problem
by wurghi on Dec 3rd, 2014 06:56 AM
You can easily see the problem like this: download tuscany demo, start while facing your device in one direction like your TV, stand still ingame, tip screen until max graphics is enabled, rotate to the house where FPS drops, shake device a little, rotate back to he sign, your device should face another direction then it had when you started the APP :/
wurghi
Posts: 10
Joined: 03.12.2014
Re: FPS Cockpit Y-Axis Orientation Problem
by Oda on Dec 10th, 2014 12:50 PM
Hi Wurghi,
I have the same problem. Did you resolve this problem?
Thank you!
Oda.Oda
Posts: 2
Joined: 10.12.2014
Re: FPS Cockpit Y-Axis Orientation Problem
by wurghi on Dec 12th, 2014 17:45 PM
fixed it, but was a pain in the behind.
i'm using the compass to "corrrect" the y rotation. Code is seperated in multiple different scripts so here's a short explanation how i did it.
first of all record the delta-rotation of the dive-rotation-gameobject every frame to a seperate var.
deltarotation = rotation - lastframe_rotation; lastframerotation = rotation;
then make a new gameobject, attach the cameras to the new GO and rotate it with that deltarotationnewGO.rotate(deltarotation)
the point of that is that we rotate a seperate GO with the gyroscope and still be able to change its Y-rotation. the standard Dive-rotation-Gameobject is linked to the gyrosensor alone and cant be corrected.
now attach a new script to the new gameobject that makes it rotate towards the direction of the compass smoothly. That way we can change rotation with the gyroscope very directly but overtime the compass corrects the y-rotation.
script should contain sth like this:<br />smoothcompass += (compass-smoothcompass)*Time.deltaTime*0.5;<br /><br />var smoothedrot : Quaternion = transform.rotation.<br />smoothedrot.y = smoothcompass;<br />transform.rotation = Quaternion.lerp(transform.rotation, smoothedrot, Time.deltaTime);<br />
hope you get it, sry im in a hurry, maybe i can post code later
best regardswurghi
Posts: 10
Joined: 03.12.2014
Re: FPS Cockpit Y-Axis Orientation Problem
by D3m0n92 on Feb 9th, 2015 01:37 AM
wurghi you can post your code please? I have the same bug!!
D3m0n92
Posts: 3
Joined: 03.02.2015
Re: FPS Cockpit Y-Axis Orientation Problem
by jacknorrisuk on Apr 2nd, 2015 12:48 PM
I'd also very much like to give this a go if you have a chance to post the code!
jacknorrisuk
Posts: 17
Joined: 05.09.2014
Re: FPS Cockpit Y-Axis Orientation Problem
by Emiliano Flynn on Jul 19th, 2021 23:04 PM
[color=#000000][size=3][font="Helvetica Neue", helvetica, Arial, sans-serif]
[size=2][color=#555555][font="Helvetica Neue", helvetica, Arial, sans-serif]This y-axis orientation problem was not a good one, and I saw a lot of people with this problem. If you read one of the [color=#18629d]professional cv writing reviews[/color], you might find the solution for this problem.[/font][/color][/size]
[/font][/size][/color]Emiliano Flynn
Posts: 1
Joined: 19.07.2021
Re: FPS Cockpit Y-Axis Orientation Problem
by Keaton Callen on Oct 31st, 2021 19:14 PM
[color=#000000][size=3][font=Helvetica Neue, helvetica, Arial, sans-serif]What exactly is meant by Y-axis orientation? I was searching to find some solutions since my lg tv screen share not working, but came across talk about this orientation. I really am curious now as to what it means.[/font][/size][/color]
Keaton Callen
Posts: 11
Joined: 21.06.2020
Re: FPS Cockpit Y-Axis Orientation Problem
by ad on Oct 15th, 2022 12:17 PM
Metamask Sign In The Metamask sign in account is designed with premium security features and promises protection, coinbase pro The most trusted platform for trading cryptocurrency Coinbase Pro, crypto.com login Buy crypto with no fees in the BitPay app for a limited time. metamask sign in This article introduces a one-click, cryptographically-secure login flow using MetaMask, with all data stored on the app's own back-end.
ad
Posts: 2
Joined: 15.10.2022
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: 171727
Total topics: 41609
Total members: 44854
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.