Cesium: VR renders the same image for both eyes

Created on 11 May 2016  路  10Comments  路  Source: CesiumGS/cesium

When enabling the VR mode (useWebVR / vrButton), two images are rendered side by side.

http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Cardboard.html&label=

I would expect these images to be slightly different, simulating the position of the eyes to create the 3D effect. However, the images I see are exactly the same (subtracting them in GIMP gives a completely black image).

vr
vr2

Tested with Firefox and Chromium.

category - graphics onramping type - enhancement

All 10 comments

@bagnell we should probably look at this for the next release.

Thanks for the report @jmgomezpoveda!

@bagnell can you look at this in time for the release next week?

@bagnell are you able to look at this for the 1.23 release tomorrow?

The images are different for objects close to the camera so you wouldn't see anything different in those two example screen shots. I'll push out the default near plane and add parameters to make it adjustable. It won't make the 1.22 release, but will make the 1.23.

Here's an example with the camera close to the basket of a hot air balloon. The rendering for each eye:
vr0
vr1
And here's the diff (the pixels different are pink):
vrdiff

@bagnell this is labeled 1.23, but do we really need to do anything for this release?

OK to close this?

No, it doesn't render the same for both eyes when you have things close to the viewer, so I want to add options to push that distance out.

@jmgomezpoveda thanks again for submitting this issue. This was fixed in #5917. Please let us know if you build something cool with Cesium and VR.

Was this page helpful?
0 / 5 - 0 ratings