aframevr / aframe

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

The model material is flashing all the time #3822

Closed wkl-coder closed 5 years ago

wkl-coder commented 5 years ago

Description: image image

dbj1nja 18s_ b w8 jbumn It seems that FPS is very high and flickering all the time. Is there any solution?

wkl-coder commented 5 years ago

image There is nothing under the eye normally, and the banana is not damaged

donmccurdy commented 5 years ago

Is this using ARjs? It sound like a known issue there (https://github.com/jeromeetienne/AR.js/issues/146), the camera's near/far planes are automatically chosen and too far apart.

If it is a glTF file, do you see the same problem on http://gltf-viewer.donmccurdy.com/?

wkl-coder commented 5 years ago

gltf but import to http://gltf-viewer.donmccurdy.com/ , it show this image

wkl-coder commented 5 years ago

image

wkl-coder commented 5 years ago

but my gltf is use fbx2gltf export , image image

wkl-coder commented 5 years ago

yes , I use AR.js,and follow your give link add code for image image new Three.VREFFCT is error in console . say can't find this method

donmccurdy commented 5 years ago

This is an ARjs bug — that workaround appears to be outdated, and unfortunately I don't know if they have actually fixed the bug or can provide a newer workaround.. You may need to ask there.

It sounds like viewing the model on http://gltf-viewer.donmccurdy.com/ is probably not really part of the problem, but if you drag all related files including a .gltf or .glb file (in a ZIP, if necessary) you should be able to see the result with correctly-configured camera settings.

vadermemo commented 4 years ago

using antialias and logarithmicDepthBuffer on scene works for me:

<a-scene renderer="antialias: false; logarithmicDepthBuffer:true"