Skip to content
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

PROJECT_CURSOR_ON_SURFACE doesn't work #1846

Open
SteveGreatApe opened this issue Apr 23, 2018 · 6 comments
Open

PROJECT_CURSOR_ON_SURFACE doesn't work #1846

SteveGreatApe opened this issue Apr 23, 2018 · 6 comments
Labels

Comments

@SteveGreatApe
Copy link

I've updated my GearVRf version from the master version for the first time in a little while and found PROJECT_CURSOR_ON_SURFACE doesn't work anymore.

The easiest way to reproduce this is in the gvr-controller demo. Set the cursor depth to a larger number such as:

//                newController.setCursorDepth(DEPTH);
                newController.setCursorDepth(DEPTH * 2);

You can see the cursor depth is not affected by the objects it's pointing at and just goes straight through them.

@NolaDonato
Copy link
Contributor

I was not able to reproduce this. I changed the cursor depth in gvr-controller and I still see the cursor on top of the bunnies and boxes. This is with the latest master.

@SteveGreatApe
Copy link
Author

In my own app where I see the problem I'm using the latest master. In the gvr-controller demo where I reproduced it, it's set to build against '4.0.1-SNAPSHOT'

From the logging I added I can see that in GVRCursorController.java updateCursor() it calculates dist correctly, but it only runs that code when I actually click on an object. The rest of the time it sets the cursor position in moveCursor() where it uses mCursorDepth to set the depth.

When trying to reproduce it in gvr-controller make sure you're not setting DEPTH to the new value, as that will also move the bunnies and boxes so they're at the same depth as the cursor.

@NolaDonato
Copy link
Contributor

pull request #1867 should fix this issue

@SteveGreatApe
Copy link
Author

Thanks, looks like it's working okay now.

@liaxim
Copy link
Contributor

liaxim commented May 21, 2018

#1867 was merged. @SteveGreatApe Can we close the issue? Thanks.

@SteveGreatApe
Copy link
Author

The length of the pointer ray is correct now, but with the latest code I've lost the cursor on the end of the ray. The initial fix on it's own didn't cause that problem, so there's some other recent change that's done this.

@liaxim liaxim added the bug label May 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants