nordfalk / gvr-android-jme

JMonkeyEngine integration with Google VR SDK
4 stars 2 forks source link

Partially rendered boxes #3

Open ScienceOfficer opened 7 years ago

ScienceOfficer commented 7 years ago

Hi there!

I really like your work there, but if I run startravel on my Android Phone, the boxes render partially. For example, I can only see the left side and the box bottom. I also tried to write a minimal example with just one box myself and the problem remains :/ Is the problem common to you?

I'm looking forward to an answer! Sincerly, ScienceOfficer

Edit: After some more playing around, I recognized, that all axis are mirrored. Well. At least, if I mirror all axis (root element), it draws my shapes at the right places. But camera seems to look at (0,0,1) then instead of (0,0,-1).

I hope, it's ok for you that I am reporting my experiences to you. I am also trying to figure out, what could have gone wrong..

nordfalk commented 7 years ago

Try to disable culling: https://github.com/nordfalk/gvr-android-jme/commit/0a393252b1943d415fe534917867670291c755f0

About mirroring I didnt have any time to make progress. Please see discussion at https://hub.jmonkeyengine.org/t/google-cardboard-support/31684/36 and let me know if you solve this.

It would be great if you leave a message in that thread, thanks! Jacob