googlearchive / vrview

Library for embedding immersive media into traditional websites.
http://developers.google.com/cardboard/vrview
Apache License 2.0
1.71k stars 1.09k forks source link

Adjust focus of Cardboard mode #259

Closed AlfkaGit closed 6 years ago

AlfkaGit commented 6 years ago

Hi all,

I bet there is way in the script to adjust the focus of the cardboard mode. If there is, would you please help me with a few tips.

The stereo images I have been rendering look top notch, however when they go to stereo (cardboard mode) they look grainy and a little fuzzy. The stereo lines up well, it is the resolution or I guess focus in each individual eye frame that is fuzzy, like if it were out of focus. I was wondering if there is a setting to tweak that focus value.

Thanks!

jsantell commented 6 years ago

To play with the buffer scale of the cardboard renderer, try defining a WebVRConfig object with a BUFFER_SCALE property between 0 and 1. Is that the issue you're seeing? You can see example usage of modifying the buffer scale here.

Check out the polyfill configuration here: https://github.com/googlevr/webvr-polyfill#configuration

AlfkaGit commented 6 years ago

You are awesome! Thanks. Changing the BUFFER_SCALE to 1 made the cardboard rendering look as sharp as it was produced.

jsantell commented 6 years ago

:smile: great to hear!