viromedia / virocore

ViroCore cross-platform AR/VR renderer
MIT License
370 stars 108 forks source link

3D Model Rendering flicker/distortion #327

Open gmartinsvrf opened 4 years ago

gmartinsvrf commented 4 years ago

Environment

Please provide the following information about your environment:

  1. OS: macOS Mojave 10.14.6
  2. Version: 1.17
  3. Device(s): Samsung Galaxy S8

Description

I've had this issue for a while now where the models I've been using don't seem to render well. The only "solution" thus far was to scale the model down to 0.001 which isn't ideal. One of my iOS colleague suspects that the ZNear-ZFar is too far apart leading to the Depth Buffer not being as accurate as it is on iOS/SceneKit.

I'm reporting this issue here with the hopes that someone can look into it or guide me towards the solution. Also, I can provide the model if needed for further investigation.

Reproducible Demo

Here are a couple of screenshots comparing the exact same model in GLB in SceneKit and ViroCore:

ViroCore virocore_pepe

SceneKit Scenekit Render

HedwigAR commented 4 years ago

This looks like a z-fighting issue, are you sure your model doesn't have overlapping faces?

yashukla47 commented 3 years ago

I am also facing the same issue, can someone help