mapbox / mapbox-maps-ios

Interactive, thoroughly customizable maps for iOS powered by vector tiles and Metal
https://www.mapbox.com/mapbox-mobile-sdk
Other
482 stars 157 forks source link

Support for larger glb files and textures? #73

Open cclaan opened 3 years ago

cclaan commented 3 years ago

New Feature

I tried using ModelExample.swift to load a larger glb with around 300k or so vertices. The model did not render correctly ( no texture, and lots of artifacts. ) The console logged a warning a maximum vertex count being reached, though I don't have the text anymore. Is there a setting or something I could change to enable larger files? Or perhaps a different file format that supports bigger models? If not, would some custom metal rendering be possible, and if so where might be a good place to start to learn more about that?

Why

Loading larger models ( 500k - 1m vertices ) with textures ( 2k - 8k ) would be very useful to my application.

Thanks

ajbraudev commented 3 years ago

We are digging into this as well, any documentation would be much appreciated.

cclaan commented 3 years ago

@ajbraudev I believe there is a SceneKit example now that might work better for loading models.. I haven't tried it yet.