-
Notifications
You must be signed in to change notification settings - Fork 11
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
Automatically set cardboard profile in script #8
Comments
@cai-mobfish Please check the screenshots and let me know if the parameters loaded are right: |
Yes, the name is correct at least. It seems that the url is changed. But it doesn't matter, any kind of url will do. Is that just default cardboard profile? or will it override current cardboard profile? |
For now it loads the default profile at start, hence overrides the saved profile. I am working on loading the default profile only when there is no saved profile. |
Thanks. If possible, provide both possibilities, one is set default profile, another is set current profile. |
Will do that. Thanks. |
@cai-mobfish I have created provision to load default device parameters (in 'CardboardMainCamera.cs') when one is not available. |
@rohantipare Thanks for the implementation. I have yet tested on my side, but I have a question: I noticed that you added a header file directly in Plugin folder, which already exist in Cardboard SDK. How does it work without implementation file in Unity? |
@cai-mobfish |
@rohantipare I see. I didn't mean it's not good, it's just a question. It's fine if it works with Build. I'll do some test later today. |
@rohantipare I just checked your code and tested, code works. And I have some additional questions:
And please do these changes:
|
@cai-mobfish |
@cai-mobfish |
@cai-mobfish |
I did some refactor and modification in new branch, and merged into public-dev. Default cardboard profile will be set when app is initially started. Change profile in script can be done in any time, and will overwrite current profile. |
Detail
Some end users/clients want to manually set cardboard profile so that this app can be directly used in exhibition show or showcase meeting.
Technical Detail
Old Cardboard Overview
In old Cardboard, cardboard profile can be manually set using "half decoded" cardbaord url.
But it only sets the default cardboard profile. Once user changed a cardboard profile manually, this won't work any longer, until manually set data are removed.
Old Cardboard urls
This is url redirect chain. No. 2 url can be used to set default profile in script. No. 0, 1, 4 cannot be used. No. 3 is not tested.
Old Cardboard clear data
New Cardboard Overview
The camera scan method can be directly called for camera qr code scan, but there is no "set profile" in written document, so hack is probably necessary to make it work, if google doesn't provide any related apis in future.
The text was updated successfully, but these errors were encountered: