aframevr / aframe

:a: Web framework for building virtual reality experiences.
https://aframe.io/
MIT License
16.61k stars 3.94k forks source link

vr issue and object loader #3883

Open EslamNemr opened 5 years ago

EslamNemr commented 5 years ago

aframe master version just extend the view when entering vr mode in in the two screen

1 2

and aframe 0.8.2 thres issue loading obj with material 4

object and material on current aframe master loading correctly 3

dmarcos commented 5 years ago

What browser, device? Do you have a link to an example to reproduce?

EslamNemr commented 5 years ago

my glitch not working the code but https://glitch.com/edit/#!/join/187b6783-9ddc-4f98-8ef3-860cd0868e13 and for live http://www.eskanengineering.ae/VR/VR.html
for live using last master windows 10 browser chrome70.035 firefox 63.0.3 ie edge

and for mobile iphone 7 ios 12 safari and chrome

androied 5.1.1 firefox and chrome

dmarcos commented 5 years ago

What phone? The problem above with stereo rendering seems to happen in mobile. Do you see the problem in both iOS and Android? In browsers with WebVR enabled (Daydream)?

EslamNemr commented 5 years ago

the problem in ios and androied both iphone 7 plus sony xperia z5 but vr working well with aframe 0.8.0

webvr enabled

i attached browser photo for obj loader issue with 0.8.0 and 0.8.2

EslamNemr commented 5 years ago

for phone ios chrome version 70.0.3538.75 safari 12.1

androied chrome 70.0.3538.110 firefox 63.0.2

EslamNemr commented 5 years ago

vr issue seems solved after remove the line i added this.renderer.setPixelRatio(window.devicePixelRatio); after line 75654 this line because resolution dropped for picture and obj after exiting vr any other solution for this resolution dropped after exit VR ?

dmarcos commented 5 years ago

I cannot reproduce this. I tested on A-Frame / Firefox / Oculus and canvas resizes as expected after exiting VR. The link provided above no longer loads. Useful info would be checking canvas both before entering and after exiting VR when the problem occurs:

document.querySelector('a-scene').renderer.getSize()

EslamNemr commented 5 years ago

yes same result given the same height and width in enter and exit vr event but i debug on windows browser may be stereo rendering the reason in changing render size i solve it with add this.renderer.setPixelRatio(window.devicePixelRatio); in exit vr event listener for now.

dmarcos commented 5 years ago

@EslamNemr can you supply a working link to reproduce?