Skip to content

Problem with FBX Format #44

@MTMProject

Description

@MTMProject

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


Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions