-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal for recenter issue with the daydream HMD #17
Comments
Hi sorry for the late response. I use the following code which works well for the GearVR version and is a super short solution.
I tried to test your code but the .mirrorAngle function gave me an error. I might have to test it again with the Daydream version maybe some google related functions are missing in the GearVR version. Greetings |
Major update to the GearVR version which includes the following improvements: 1. the biggest issue with the camera beeing not aligned with the head movement can be correcte now by simply clicking the douchped on your GearVR or the touchped on the gear controller. (This feature only works on the GearVR version WhiteIsland for now). #17 Fixes #4 2. Update to the latest ARCore version 1.5.0 which allows for Multithreaded rendering, automatic camera focus and improvements on some devices. The multithreaded rendering should in principle allow for more performance since tasks can be outsourced to multiple cores. I havent tested if there are any performance improvements and if there are some how big they are. 3. Improved code documentation and naming to make understanding the code easier. 4. Solved the issue with app not beeing shown after installing. Fixes #12
Hey, no problem.
You can ask if something is unclear. :-) If I have time i can try to implement it. Greetings Micha |
Daydream/Cardboard version updated to ARCore 1.5.0. Implemented Tivoyagefeaks suggestion together with latest updates. Unfortenetly I could not confirm that it works. But since it doesn't effect the performance and might work when using the controller I added it and Tivoyagefeaks might be able to fix it quickly when I missed something that it prevents it from working. I renamed the class to AlignmentCorrection and added the mirrorAngle variable to the FollowARCoreCamera class. #17
Hi Micha, Unfortunately I am still not able to realign the cameras by touching the screen which should simulate the press of the recenter button you used in your solution. Any idea what went wrong? Is recentering using the daydream controller working with the latest version I uploaded and did I just make a mistake with my approach to simulate the recenter button? |
Hey Christoph, |
Hey I just looked it up in our new project and now nothing seems to work anymore. I'll try to fix it an dsend you an update |
So it was a rotation problem in my scene, but your boxyroom scene should work with my code above. But its still a problem, if the ARCore Camera tracking gets interupted (by occluding the camera ). If the Daydream Rotation changes while the camera is occluded/lost tracking everything is messed up |
Hi, first of all thank you for your great work. Im not sure if I overthought the following problem, but I had an issue with the build in recenter Action from DayDream. The behaviour of the ARCam in relation to the VR Camera really confused me and I couldnt find a solution anywhere. So If anyone stumbles across the same issue this is how I tackled it:
Everytime you recenter in a different orientation than the starting orientation of the app, the VR Camera gets aligned correctly but the ARCore Camera is not affected (which is quite obvious). But it had no affect either, when I tried to rotate the ARCore Camera to the new orientation. And I tried a lot of approaches to fix the rotation issue.
In the end I watched the last X rotations of the VR camera and listened to the GvrControllerInput.Recentered event to get noticed when the event started. You have to listen to the last rotations because it might take one or two more frames till the recenter actually takes place. Then you can spot the desired value. This angle is used to rotate the position vectors in the followARCoreCamera so you still walk straight on.
If you have a more convinient solution or if i missed sth please share your thoughts. I just wanted to share this so if another person has similiar issues he can start with my approach.
Greetings
Micha
The text was updated successfully, but these errors were encountered: