google / filament

Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS, and WebGL2
https://google.github.io/filament/
Apache License 2.0
17.37k stars 1.84k forks source link

gltfio: Provide new loader suitable for remeshing #7782

Open poweifeng opened 2 months ago

poweifeng commented 2 months ago

Context

The current division of work between AssetLoader and ResourceLoader does not fit well with algorithms that require remeshing (e.g. flat shading in #6358).

Proposal

mbalajee commented 1 month ago

Will this enable the proper normal generation in Android? https://github.com/google/filament/discussions/7851

poweifeng commented 1 month ago

Will this enable the proper normal generation in Android? #7851

Yes, that's one of the goals of having a new loader.

mbalajee commented 1 month ago

Cool so I guess for Android only change that needs to be done is in the resource & asset loader. I actually tried to make some changes and I still don't see the flat normal shading but the model appears all white. can you please take a quick look & suggest if i should make any other changes? This is one of the blocker for us currently