x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

SimpleHMD camera won't stop rotating

Hey everyone,

I'm currently testing the UE4 with Android to build a SimpleHMD app. Everythings works perfectly accept one weird bug. The camera is rotating without any controller (sensor) input. I re-calibrated the smartphone's sensors to no effect. Youtube 360 and other VR Apps are running fine so i guess this must be a bug in UE4. I am able to move the camera around with the motion sensors but the initial camera rotation is added to the movement.

Product Version: UE 4.8
Tags:
more ▼

asked Jul 21 '15 at 05:42 PM in Bug Reports

avatar image

Madsim
21 2 4 4

avatar image Samantha Sutton ♦♦ STAFF Jul 22 '15 at 03:04 PM

Hey Madsim,

In order to assist you with the SimpleHMD camera rotation issue, I will need you to provide answers the the following questions:

  • Can you reproduce this in a clean project?

  • If so, could you provide a detailed list of steps to reproduce this issue our end?

  • Could you provide the exact device that you are using?

  • Could you provide the exact OS that the device is currently running?

  • Could you provide screen shots of any blueprints that may be involved in this issue?

  • Are you on 4.8.2 when you're testing this?

Looking forward to hearing back from you, thanks!

avatar image Madsim Jul 23 '15 at 11:09 AM

Hi Samantha,

I just tested it again and I can reproduce the problem every time with a blank or first person blueprint project on version 4.8.2. Here are the steps:

  1. Create new blueprint project (blank, first person): Mobile/Tablet, Scaleable 3D or 2D, No Starter Content

  2. Enable Plugin SimpleHMD

  3. Restart Editor

  4. Launch on phone or compile and deploy via .bat

For me the results are always the same. No additional Blueprints or Code used.

I am using Windows 8.1 The phone is a Samsung Galaxy S4 (GT-I9505), Android 5.0.1 Kernel-Version 3.4.0-3996895

Thanks for your time!

avatar image Samantha Sutton ♦♦ STAFF Jul 23 '15 at 08:15 PM

Hello,

I have just tested what you provided on the Nvidia Shield tablet, Nexus 5, Samsung Galaxy S4 as well as the Samsung Galaxy Note. I launched it on and I also packaged it and ran it from the .bat file. Both times the camera did not spin/rotate around constantly.

The Android versions ranged from 4.4.2 - 5.0.1 without any errors.

Thank you!

avatar image Madsim Jul 23 '15 at 09:02 PM

Hi Samantha,

thanks for the extensive testing, I don't know what your are thanking me for ;) Could you give me a hint how to debug this one? Do I need to drill down into C++ and log out the sensor data or could this be done via blueprint and on-screen text? I'll try to get another phone to test some more.

Maybe you could wait to close this report until i confirmed the bug to be on the hardware side for future readers?

Cheers

avatar image Samantha Sutton ♦♦ STAFF Jul 24 '15 at 04:01 PM

Hey Madsim,

You can test your mobile devices by going to: C:\NVPACK\android-sdk-windows\tools and looking for 'Monitor.bat'. With this program, you'll be able to monitor and obtain information about your device that may be causing the issue you're experiencing.

Looking forward to hearing back from you! :)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hey Madsim,

I have not heard from you in quite a few days and for this reason, I will be marking your thread as resolved at this time. However, if you have any further questions regarding this topic do not hesitate in replying back as we'll assist you as soon as possible.

Thank you and have a nice day!

more ▼

answered Jul 28 '15 at 04:19 PM

avatar image Hatchet02 Aug 12 '15 at 02:47 PM

I have to say this issue is NOT resolved since I too have the same issue and I am installing it on a Galaxy s5. The screen rotates 360 degrees slowly and non stop.

avatar image Samantha Sutton ♦♦ STAFF Aug 12 '15 at 07:31 PM

Hatchet02,

Please post a new question to AnswerHub with as much detailed information as possible and we will be more than happy to assist you further. Please include any logs possible.

Thank you and have a nice day!

avatar image Hatchet02 Aug 13 '15 at 01:21 PM

Will do Samantha, I just ran it on a Galaxy Note 3 last night as well as my Galaxy S5. Same issue. I am not sure what logs to include since no errors occur and the project builds fine. Just the screen very slowly continues to rotate once loaded to the device. If you preview it in the editor it does not rotate.

avatar image Samantha Sutton ♦♦ STAFF Aug 25 '15 at 01:46 PM

Hey Hatchet02,

Do you have a simple project that you've created that reacts the same way as your original project does on your 2 mobile devices? If so, could you please upload it and provide the link to me? If not, could you please upload your original project and provide the link to me through the forums in a private message?

Also, did you ever obtain your logs from 'Monitor.bat'?

Looking forward to hearing back from you, thanks!

avatar image dr.purple Aug 21 '15 at 12:18 AM

I'm having a similar issue. What do you have under Project Settings -> Inputs ?

I found that if I use tilt for LookUpRate and rotation rate for TurnRate then I can control things left and right, but I don't know how to get up and down working properly.

avatar image MinxiesDev Jan 12 '16 at 09:24 PM

I'm not sure you handled this very well, Samantha.

The steps Madsim provided does reproduce the issue, it seems you didn't test it for long enough.

Subsequently, you closing the case disparages further answers :(

The answer to this however is that the SimpleHMD is using the 'RotationRate' variable. This is derived from the gyroscope. Whilst the gyroscope does have very accurate readings, it will tend to drift over time and movement.

True orientation tracking, requires something very complex called sensor fusion and optionally a Kalma filter. This requires not only reading from the gyroscope but also from the accelerometer and compass but then mushing them all together.

So simply put, the SimpleHMD plugin just isn't up to the task yet.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question