jpnurmi / assimp.dart Goto Github PK
View Code? Open in Web Editor NEWAssimp for Dart
Home Page: https://pub.dev/packages/assimp
License: Other
Assimp for Dart
Home Page: https://pub.dev/packages/assimp
License: Other
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.
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
...
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
Can you give me example of how to load vertices color of PLY model in dart ui
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.