glbview 0.3.0
glbview: ^0.3.0 copied to clipboard
Native GLB (binary glTF 2.0) viewer rendered with OpenGL ES on Android and Metal on iOS, shown through a Flutter Texture.
0.3.0 #
- Precaching:
GlbView.precacheAsset/GlbView.precacheMemoryparse and upload a model ahead of time; showing it later takes about one frame.evictAsset,evictMemory,clearCacheandmaxUnusedModelsmanage the cache.GlbView.memorygainscacheKey. - Models are now cached across views and screen visits: parsed once,
uploaded to the GPU once, shared by every
GlbView. - Faster cold loads: indexed geometry (about 4x less parse work and data for typical models), parallel texture decoding, and the shader compiles in the background when the plugin starts.
- Android: one GL thread and context for all views instead of one per view.
- iOS: one shared Metal pipeline and model store.
- Material overrides are applied per view on the GPU, without re-uploading geometry.
GlbView.debugTimingslogs load timings.- Breaking:
GlbPrimitivenow hasindices;verticesholds unique vertices instead of one vertex per triangle corner.
0.2.0 #
materialOverridesonGlbView: replace a material's base color texture, normal map, metallic-roughness map or base color at runtime, keyed by material name. Changes re-upload the cached model without re-parsing or recreating the texture.GlbPrimitive.materialNameandGlbPrimitive.copyWith.- Example: cube faces drawn at runtime with
dart:ui.
0.1.1 #
- No functional changes; republished after 0.1.0.
0.1.0 #
- Initial release.
- GLB (binary glTF 2.0) parser in Dart: node hierarchy, all accessor types, base color, metallic-roughness, normal maps (with generated tangents) and clearcoat.
- Native renderers: OpenGL ES 2.0 on Android, Metal on iOS, shown through a
Flutter
Texture, with 4x MSAA. - Glossy PBR shading with a procedural studio environment and sparkle; style changes apply live without recreating the texture.