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

Change stereoscopic view to monoscopic view in Android #427

Open
stoiantashkov opened this issue Aug 18, 2023 · 3 comments
Open

Change stereoscopic view to monoscopic view in Android #427

stoiantashkov opened this issue Aug 18, 2023 · 3 comments
Labels
question Further information is requested

Comments

@stoiantashkov
Copy link

Hello,

Can someone tell me how can I change stereoscopic view to monoscopic view in Android?

@arilow
Copy link

arilow commented Sep 4, 2023

Thanks @stoiantashkov for reaching out to us!

Do you want to use monoscopic view on android native (Cardboard SDK) or Android with Unity (Cardboard XR Plugin?

Thanks!

@stoiantashkov
Copy link
Author

Hello,
I want to use on Android native (Cardboard SDK).

Thanks!

@arilow
Copy link

arilow commented Sep 7, 2023

Cardboard is modular. Each module is designed to be used independently from the others (distortion renderer, QR code scanner, Lens Distortion, HeadTracker).

When rendering a monoscopic view, the easiest way to do it is directly using the OpenGL ES rendering API and Cardboard SDK’s Head Tracker module (i.e. not using the Lens Distortion and Distortion Renderer modules).

For instance, if you would like to make the Hello Cardboard sample app monoscope, you would need to, in HelloCardboardApp::OnDrawFrame(), instead of calling CardboardDistortionRenderer_renderEyeToDisplay call the method that renders your monoscopic plain OpenGL texture.

I hope this helps.

@arilow arilow added the question Further information is requested label Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants