Closed martinloretzzz closed 5 years ago
Thanks for posting your solution to that problem. I am not totally sure if this is something that could be fixed at the library level or if it's something that should be being applied in user land code with Three.js?
Maybe you can set the default near plane of the camera to 0.1 or 0.01, I think it would be an better default value than 0.0001.
One possibility is my workaround or maybe use the setProjectionNearPlane in arjs.artoolkit.debug.js
@0b01001101 thanks for the advice. Do you happen to have a reproduceable model / example source code I can play with by any chance?
Added it to: https://github.com/0b01001101/THREEAR/tree/zfighting model/zfighting examples/bug-zfighting.html
On line 75/76 in bug-zfighting.html you can "enable/disable" the bug
@0b01001101 thanks so much! I will take a look
In theory this is fixed now, will release soon.
Same bug as in Ar.js, solved it by myself see: https://github.com/jeromeetienne/AR.js/issues/146#issuecomment-474017046