omchiii / model_viewer_plus.dart

A Flutter widget for rendering interactive 3D models in the glTF and GLB formats.
https://pub.dev/packages/model_viewer_plus
Apache License 2.0
82 stars 47 forks source link

Change the color by pressing the buttons, but nothing happen [FLUTTER] #62

Closed Thauanny closed 1 year ago

Thauanny commented 1 year ago

Describe the bug It is not possible to change the color of the obj as mentioned in the documentation " @https://modelviewer.dev/examples/scenegraph/#changeColor

To reproduce image

Expected behavior Change the color by pressing the buttons, but nothing happen

Screenshots LOG:

image

Flutter web, android.

Flutter 3.4.0-29.0.pre.84 • channel master • https://github.com/flutter/flutter.git Framework • revision c9edacb172 (4 months ago) • 2022-09-21 17:50:03 -0700 Engine • revision f0f4e1dee2 Tools • Dart 2.19.0 (build 2.19.0-226.0.dev) • DevTools 2.17.0

Foldblade commented 1 year ago

Hello, in #63 I added a new example: example/lib/materials_and_scene/change_color.dart In the upcoming version, you can set overwriteNodeValidatorBuilder to solve this issue😉