Scott Singer
Scott Singer

Reputation: 141

GearVR in AFrame - seems to just map the web frame onto a sphere

Running into an issue with A-Frame 0.3.0 running in GearVR on the Samsung Internet app.

When it loads it displays the A-Frame scene on a card hovering in space like an ordinary stationary web page - the content in the web page rotates with head tracking, but the card remains stationary in space.

When I click on the various 360/180 display modes, the image of the flat web page appears to simply map to a sphere and responds loosely to head rotation - there are swirly patterns at the poles so I'm pretty sure it's just a 2D mapping of the web page. Like it's trying to display it as a 360 video.

Is there a hidden setting? I've enabled WebVR in the Samsung browser. Or is there a directive I need to include in A-Frame? The scene runs fine in cardboard through chrome on android. thx

Upvotes: 2

Views: 974

Answers (3)

Spencer Fraise
Spencer Fraise

Reputation: 138

Remember that webvr support in Gear VR is still experimental and really doesn't work very well yet.

For me the Gear VR is extremely jerky and makes you dizzy when looking around and the quality just isn't very good on the sky images.

I'm using a new Gear 360 camera to take my sky images and when I look at them through the regular Gear VR 360 photo viewer app they look awesome but once you go into webvr and look at those same images they're really really blurry.

Hopefully Gear VR can get the kinks worked out soon and hopefully just replaces that stupid Samsung browser with the new Oculus Carmel browser so these webvr apps will work correctly.

Upvotes: 1

mkeblx
mkeblx

Reputation: 49

ngokevin's answer is correct, you have to enable. If that done correctly, a working demo using 1.0 API will be able to go into correct mode. Note that can't access correct 'mode' using the fullscreen mode options meant for VR/360 video formats. Try https://toji.github.io/webvr-samples/03-vr-presentation.html If this example doesn't work then have not enabled. If this runs but another page doesn't it would be an issue specific to that page and WebVR API usage.

Upvotes: 1

ngokevin
ngokevin

Reputation: 13233

Ryan Betts from Slack said:

You have to type 'internet://webvr-enable' into the address bar to enable it.

Here is the documentation by Samsung: http://developer.samsung.com/technical-doc/view.do?v=T000000270L where it says:

To enable WebVR visit the internet://webvr-enable URL in the Samsung Internet for GearVR browser (visit internet://webvr-disable to disable WebVR support).

Upvotes: 1

Related Questions