Code Monkey home page Code Monkey logo

assimp.dart's Introduction

ArkUI Bash C C++ Dart Flutter Husky JavaScript Linux OpenHarmony Python QML Qt Raspberry Pi Rust Slint TypeScript Ubuntu Yocto

assimp.dart's People

Contributors

jpnurmi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

assimp.dart's Issues

Material color values should be returned as typed lists

While trying to load a model with materials, I found that assimp.dart
returns the material property values always as Floats or other single values.
For properties like colors the values should be returned as typed lists instead
so that all the value components can be accessed.

Currently in material.dart:85
the getter always returns just the first value pointed by the property pointer, even
when _property.mDataLength is larger than a single value.

As a suggested fix, the value getter should return a typed list when the data length is greater than a single value.

Tests are broken on Jammy

The tests are passing in the CI running 20.04. Focal has Assimp 5.0.1 whereas Jammy has 5.2.2. Was something fixed in Assimp that broke the tests generated with an earlier version of Assimp, or has there been a breaking ABI change?

$ dart test
00:01 +7 -1: test/anim_mesh_test.dart: 3mf [E]                                                                                                                                          
  RangeError (index): Invalid value: Only valid value is 0: 0
  dart:_internal                  EmptyIterable.elementAt
  test/anim_mesh_test.dart 39:29  main.<fn>.<fn>
  test/test_utils.dart 34:9       testSceneFromFile
  test/test_utils.dart 59:5       testScene
  test/anim_mesh_test.dart 37:5   main.<fn>
  
00:01 +8 -2: test/anim_mesh_test.dart: collada [E]                                                                                                                                      
  Expected: not null
    Actual: <null>
  
  package:test_api                expect
  test/test_utils.dart 33:3       testSceneFromFile
  test/test_utils.dart 59:5       testScene
  test/anim_mesh_test.dart 220:5  main.<fn>
  
00:03 +15 -3: test/face_test.dart: 3mf [E]                                                                                                                                              
  RangeError (index): Invalid value: Only valid value is 0: 0
  dart:_internal             EmptyIterable.elementAt
  test/face_test.dart 60:35  main.<fn>.<fn>
  test/test_utils.dart 34:9  testSceneFromFile
  test/test_utils.dart 59:5  testScene
  test/face_test.dart 59:5   main.<fn>
  
00:03 +16 -4: test/face_test.dart: collada [E]                                                                                                                                          
  Expected: not null
    Actual: <null>
  
  package:test_api            expect
  test/test_utils.dart 33:3   testSceneFromFile
  test/test_utils.dart 59:5   testScene
  test/face_test.dart 3795:5  main.<fn>
  
00:04 +28 -4: test/bone_test.dart: fbx                     
...

Compability: Update dependencies

I can't use assimp.dart with the latest graphql-flutter version:

Because path_provider >=2.0.0 <2.0.8 depends on path_provider_windows ^2.0.0 and path_provider >=2.0.8 depends on path_provider_windows ^2.0.2, path_provider >=2.0.0 requires path_provider_windows ^2.0.0.
And because graphql_flutter >=5.0.0-beta.1 depends on path_provider ^2.0.1, graphql_flutter >=5.0.0-beta.1 requires path_provider_windows ^2.0.0.
And because path_provider_windows >=0.1.0-nullsafety.3 depends on ffi ^1.0.0 and assimp <0.1.0-dev.0 depends on ffi ^0.1.3, graphql_flutter >=5.0.0-beta.1 is incompatible with assimp <0.1.0-dev.0.
So, because syndb_client depends on both assimp ^0.0.6+1 and graphql_flutter 5.0.0, version solving failed.
pub finished with exit code 1

vertices Colors

Can you give me example of how to load vertices color of PLY model in dart ui

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.