wasabia / three_dart

three.js rewrite by Dart, Dart 3D library. an easy to use, lightweight, cross-platform, general purpose 3D library.
MIT License
444 stars 77 forks source link

Crashed on windows 10 with 1050Ti #140

Open Remering opened 10 months ago

Remering commented 10 months ago

Example code is https://github.com/Remering/three_dart_playground, may be I don't know how to use this library, please help me. Thanks a lot!

Knightro63 commented 9 months ago

Hi @Remering,

Not sure if you have solved your issue yet, but I noticed in your viewer.dart code you have

    if (kIsWeb) {
      await glPlugin.prepareContext();
    }

please make this

    Future.delayed(const Duration(milliseconds: 100), () async {
      await glPlugin.prepareContext();
    });

this might fix the crashing issue since prepareContext is needed for all platforms.

Hope this helps.