Skip to main content

glbview 0.3.1 copy "glbview: ^0.3.1" to clipboard
glbview: ^0.3.1 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.1 #

  • gestures: any combination of GlbGesture.rotate, GlbGesture.tilt and GlbGesture.zoom (presets all, orbit, none). The view picks the narrowest recognizer, so e.g. a rotate-only view inside a vertical ListView lets the list scroll.
  • interactive is deprecated; interactive: false equals gestures: GlbGesture.none.

0.3.0 #

  • Precaching: GlbView.precacheAsset / GlbView.precacheMemory parse and upload a model ahead of time; showing it later takes about one frame. evictAsset, evictMemory, clearCache and maxUnusedModels manage the cache. GlbView.memory gains cacheKey.
  • 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.debugTimings logs load timings.
  • Breaking: GlbPrimitive now has indices; vertices holds unique vertices instead of one vertex per triangle corner.

0.2.0 #

  • materialOverrides on GlbView: 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.materialName and GlbPrimitive.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.
1
likes
0
points
94
downloads

Publisher

verified publishersamandar.dev

Weekly Downloads

Native GLB (binary glTF 2.0) viewer rendered with OpenGL ES on Android and Metal on iOS, shown through a Flutter Texture.

Repository (GitHub)
View/report issues

Topics

#graphics #gltf #opengl #metal #viewer

License

unknown (license)

Dependencies

flutter

More

Packages that depend on glbview

Packages that implement glbview