Open ajaypv4 opened 6 years ago
Note that antialiasing is a setting you can control, have you tried putting antialias="true"
on the scene?
see also https://github.com/aframevr/aframe/issues/2666, i'm not sure where/if it is documented how antialiasing behaves by default.
Also I suggest checking the model against a "just threejs" viewer like https://github.com/aframevr/aframe/issues/2666, as Sketchfab's viewer is highly customized and will not necessarily match our results.
There are also some z-fighting artifacts in all versions, but those are part of the model itself.
Yes, I've tried that as well. No luck. The model still looks bad in VR on latest version while it looks fine on 0.5.0. With or without the setting.
We prioritize performance over visual fidelity. That’s why antialiasing is disabled by default. Sketchfab is a single model viewer with limited interactivity so they can make different choices.
I try to force antialias with <a-scene antialias="true />
in VR (GEAR - samsung S7) antialias is disabled. No way to force it ?
antialias="true"
does force it, you may be seeing just low resolution for other reasons? see https://github.com/immersive-web/webvr-polyfill/issues/273 and https://github.com/immersive-web/cardboard-vr-display/issues/7 ...there are some issues on Samsung phones, manually setting resolution in phone settings may help.
Appear alias after exit VR mode
Enter VR mode, edges are perfect
Before enter VR mode, edges are perfect
On A-Frame home page, When I turn back from VR mode, the aliases appears on the edges of shapes. Why that happened?
I think i've found a solution to this problem...
After manually setting antialias="true"
in a-scene
, there still appears to be some rough edges on the shapes.
It appears that after turning VR-mode on and off again, the pixel ratio
has changed in the renderer of the scene (WebGLRenderer.getPixelRatio()).
This is why this problem only appears to be on mobile devices where the device pixel ratio is higher than 1.
A manual fix (that worked for me) would be:
document.querySelector('a-scene').renderer.setPixelRatio( window.devicePixelRatio );
I hope this fix will be implemented soon.
So, I downloaded a gltf model from sketchfab and put it on different versions of A-frame, Here are my observations -
On A-frame version 0.5.0, the model looks good. There is minor aliasing issue in the edges but it is negligible. Link - http://aframe5gltf.surge.sh/
On A-frame version 0.7.0 which is the latest, There is a lot of aliasing and it looks very bad in VR. Link - http://aframe07gltf.surge.sh/
Interestingly if viewed in Sketchfab viewer in VR mode, the model looks perfect, not even minor aliasing. Link - https://sketchfab.com/models/192bf30a7e28425ab385aef19769d4b0
Please do watch in a VR headset to clearly observe the issue. I hope to get this solved with your help.