klaszlo8207 / flutter-obj-3d-viewer Goto Github PK
View Code? Open in Web Editor NEWFlutter obj 3d parser and viewer.
Flutter obj 3d parser and viewer.
I've set up the example project in Android Studio 4.1.2 and built it successfully. Then I attempted to load my own (simple) model:
I/flutter (32680): ----- -----_parseMtl START
I/flutter (32680): ----- -----_parseMtl END
I/flutter (32680): ----- -----_parseObj START
I/flutter (32680): ----- -----_parseObj usemtl default
E/flutter (32680): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: FormatException: Invalid number (at character 1)
E/flutter (32680):
E/flutter (32680): ^
E/flutter (32680):
E/flutter (32680): #0 int._throwFormatException (dart:core-patch/integers_patch.dart:129:7)
What are the requirements for a OBJ model to be loaded successfully?
Is it possible to create the 3D model without normals and uv's or to calculate them in real-time?
Regards Markus
P.S. this is my .obj file (condensed)
vn -0.5589991591519122 -0.40714397065320584 -0.7223252226166526
v 0.0670578554273 0.134484305978 -0.65794801712
vn 0.5145236087686594 0.6872121660382363 0.512840028535908
v 0.123673737049 0.16803739965 -0.650259852409
...
f 1 619 620
f 157 619 621
...
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.