jeromeetienne / AR.js

Efficient Augmented Reality for the Web - 60fps on mobile!
MIT License
15.79k stars 2.22k forks source link

Model Render Issue #413

Closed qu1ckdry closed 6 years ago

qu1ckdry commented 6 years ago

Do you want to request a feature or report a bug? Bug?

What is the current behavior? When I load the glTF model using ar.js there seems to be an issue with displaying the textures. It's like the renderer isn't sure what layer to show. For example a model of a bottle with a label on partially shows the bottle underneath the label. This severity varies on each render cycle. However it only happens on a certain model. But if load the same model in a glTF viewer like:

https://gltf-viewer.donmccurdy.com/

It displays correctly.

If the current behavior is a bug, please provide the steps to reproduce. Loading the model using ar.js. If I load the model with a web viewer it displays as expected.

What is the expected behavior? For the model to show solid.

I know this is a broad question/issue. I'm just wondering if there are any textures/colours or something I should avoid when creating a model? Or if there are any camera/renderer settings I can adjust?

I can post any code that might be relevant? Just not sure what bit to share right now!

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information such as the browser version, Operating System and Device Name All test have been performed chrome

qu1ckdry commented 6 years ago

It turns out my problem was 'incorrect orientation of normals' - so not arjs related at all, sorry! I found an explanation of the solution here:

https://aframe.io/docs/0.8.0/introduction/models.html#my-model-looks-distorted