EddyVerbruggen / nativescript-ar

Augmented Reality NativeScript plugin
https://www.nativescript.org/blog/preview-of-augmented-reality-in-nativescript
MIT License
118 stars 36 forks source link

Textures with transparency look odd on Android #76

Open EddyVerbruggen opened 4 years ago

EddyVerbruggen commented 4 years ago

If you look at the rings of Saturn in the image below, you can see the transparent part of the image is actually a little opaque.

New Project

@nickolanack Do you perhaps have any idea why this happens?

nickolanack commented 4 years ago

That might be a reflection/lighting. I think we could add

gltf.materials[0]["extensions"] = {
                "KHR_materials_unlit": {}
              };

to material factory to create an unlit material I don't think that we want to do this in general, but I'll experiment with it...

nickolanack commented 4 years ago

In the meantime, you could use a ~cylinder~ tube with innerRadius=0, and height=0 (or close to)

EddyVerbruggen commented 4 years ago

That actually works pretty well!