-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Size problem on Cardboard surface with HTC One X #13
Comments
Are you able to get into immersive mode with other apps? If not, there is a possible fix here: http://appslova.com/how-to-enable-immersive-mode-on-android-without-root/ |
Hello, |
It looks like the HTC screenshot shows the top bar, so it did not go into immersive mode. Also, I don't see the settings gear icon. I know there is a bug in the Cardboard Unity plugin that affects how it interacts with Android -- the gyro and accelerometer are not accessible in Input -- and I wonder if this is also an effect of that bug. If that is the problem, then when the bug is fixed, this problem will be fixed too. One way to test this: You mentioned other cardboard apps without unity3d. What about other unity3d apps without the cardboard plugin? If they can make the screen immersive mode, then it is likely to be that bug. One other thing to look for: Does adb logcat show any error messages? |
Based on your latest information, it looks like the HTC One X may be reporting an incorrect dpi. I've heard of some other models that also have this problem. The dpi is used to calculate the size of the screen in mm. The SDK needs to know this in order to compute the correct projection matrix. It doesn't seem to matter whether GetMetrics() is used, or GetRealMetrics() -- some phones return the wrong dpi for one of those calls or the other. The result is the SDK thinks the screen is smaller than it is, and the smaller image is rendered like you see it: centered horizontally and at the bottom edge of the phone. |
Okay, Thank you very much for your good explanation of the problem. One more weird thing happened, when we tried to play this app (present on cardboard play store) : the stereo view works perfectly. However, in the description of the app, the developer says "This is Card board unity3d plugin sample game". Maybe he provided a bug fix in the unity3d plugin... |
I know that the underlying Java SDK switched from one of the two calls GetMetrics and GetRealMetrics at some point. The hope was this would fix the dpi issue, but it was then found that it only made a different set of phones report a problem. Likely he has an older version of the Cardboard SDK that uses the other metrics function from your version, and that one happens to give the correct answer on your phone! :( |
Ok ! Thank you for explanation ! |
I guess the thread should be closed. Regardless of how the issue is solved, it is not really a bug in the Cardboard-Unity SDK itself. |
Hello,
I've experienced a problem with the cardboard surface on HTC devices. The stereo views on the HTC phone has a very small dimension compared with the other phones like Sony devices. I've tried various HTC One X devices with different android version (4.4.4 and 4.2) and the result is the same, the view on the HTC seems to not be in "full screen" mode.
This is the "normal" view size on my phone (Sony) in my app :
This is the "small" view size on the HTC phone in my app :
Any idea to fix this problem ? Thank you.
The text was updated successfully, but these errors were encountered: