jondyne / ARcore_mobileVRHeadset

ARcore for use in VR headset
31 stars 12 forks source link

Eye separation control #3

Open greigs opened 5 years ago

greigs commented 5 years ago

I found the eye separation to be wrong for my phone. Even with the two sliders provided I wasn't able to get the centre of each eye image lined up using my google cardboard. Needs an eye separation distance control.

greigs commented 5 years ago

Hacky workaround for now.. Scaling the viewport on the rendering camera seems to fix this.

Zumbalamambo commented 5 years ago

@greigs May I know what change did you have made in the viewport?

greigs commented 5 years ago

@Zumbalamambo I'm going from memory here so this might be not it... Look at the changes for these two files Main.unity - https://github.com/greigs/ARcore_mobileVRHeadset/commit/88987c56811858205151ee2b4fc7654df7cdae37#diff-a1648f263062dbeeef430dc2562ffc5b

SampleScene.unity - https://github.com/greigs/ARcore_mobileVRHeadset/commit/4b214b98880e11350dcdfe337443620b127c93f9#diff-dca392625388ba4f10e9a74e164946ef

If it doesn't help I can have a proper hunt later on.

Zumbalamambo commented 5 years ago

@greigs Have you tried to save the image from the camera?

greigs commented 5 years ago

no