Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with FBX Format #44

Open
MTMProject opened this issue Nov 22, 2024 · 1 comment
Open

Problem with FBX Format #44

MTMProject opened this issue Nov 22, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@MTMProject
Copy link

MTMProject commented Nov 22, 2024

Hi,
I'm trying to implement this package to display 3D objects in my app.

Many of my models are in "FBX" format, often with textures exported to a separate folder.

In the description of this package it says:
"The most complete Flutter package for rendering interactive 3D models in various formats (GLB, GLTF, OBJ, FBX), with the ability to control animations, textures, camera, and more."
I used the code and the example "glb/obj" models and the viewer works fine.
I put my "example.fbx" model in the "assets/" folder as I did for the example ones and it shows nothing.

I wanted to know if there were any special configurations for fbx models. I'm using the "flutter_3d_controller: ^2.0.2" version

Flutter3DViewer(
activeGestureInterceptor: true,
progressBarColor: Colors.orange,
enableTouch: true,
onProgress: (double progressValue) {
debugPrint('model loading progress : $progressValue');
},
onLoad: (String modelAddress) {
debugPrint('model loaded : $modelAddress');
},
onError: (String error) {
debugPrint('model failed to load : $error');
},
controller: controller,
src: 'assets/example.fbx',
)

The only noteworthy information I see in the logs is this (there are no errors/exceptions):


[ERROR:aw_browser_terminator.cc(165)] Renderer process (17821) crash detected (code -1).

I/flutter (27438): ModelViewer initializing... http://127.0.0.1:42622/

I/flutter (27438): model loading progress : 0.5
I/flutter (27438): model loading progress : 0.581796
I/flutter (27438): model loading progress : 0.601309
I/flutter (27438): model loading progress : 0.619505
I/flutter (27438): model loading progress : 0.636131
I/flutter (27438): model loading progress : 0.792876
I/flutter (27438): model loading progress : 0.812356
I/flutter (27438): model loading progress: 0.868675

[INFO:CONSOLE(570)] "SyntaxError: Unexpected token '#', "# Blender "... is not valid JSON", source: http://127.0.0.1:42622/model_viewer.min.js (570)

I/flutter (27438): model loading progress : 0.975


@m-r-davari
Copy link
Owner

Hi,
Sorry for now the package won't load fbx format.
I will fix it in next versions.

@m-r-davari m-r-davari self-assigned this Nov 24, 2024
@m-r-davari m-r-davari added the enhancement New feature or request label Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants