react-native-arkit icon indicating copy to clipboard operation
react-native-arkit copied to clipboard

ARKit.snapshot() aliasing

Open ambewas opened this issue 7 years ago • 2 comments

When taking a screenshot with ARKit.snapshot() (or other libraries to capture the viewport), there's a lot of aliasing visible on the 3D models, which is not apparent when viewing the models in the scene live.

Here's a screenshot for reference: img_0006

How would I go about applying anti-aliasing to the models captured in the screenshot?

ambewas avatar Jul 15 '18 10:07 ambewas

the screenshot is taken directly from the current frame as far as i remember. Maybe you don't notice the alasing when its live because of slight movement?

macrozone avatar Jul 17 '18 21:07 macrozone

Yeah, after closer examination the aliasing is indeed present in the live view as well. I started looking for a way to change up (or turn on?) the anti-aliasing as described here - but as far as I can see this library does not expose a setting for that.

I haven't been able to look into your source code much so far, but if you can confirm you don't enable anti-aliasing in this library yet, I'm willing to look into it and submit a PR?

ambewas avatar Jul 18 '18 07:07 ambewas