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
FBX Binary format not supported? #9860
Comments
Yes. Right now |
/ping @yamahigashi |
because there is no reference open-source implementation? if you know one, I would be curious to see it. |
Ah, wait, I thought it was about binary. For ASCII FBX below v7, I had the code here and a bunch of test models somewhere in my hard drive. |
Anyone here who has made or is making binary FBX parser? |
you have to love reverse engineering stuff to do this ) and, you may be lucky if it is simple tags, but if they serialize every data type uniquely, you are properf-ed: you're facing tweaking one number per model and saving it to see what has changed, at a time. |
Thanks for the advice. https://code.blender.org/2013/08/fbx-binary-file-format-specification/ I'll try to make ObjectParser which makes an object |
oh wow, someone already went through the hell ,and there are specs ) |
https://banexdevblog.wordpress.com/2014/06/23/a-quick-tutorial-about-the-fbx-ascii-format/ |
@takahirox It would be great if the new parser would have a similar structure like |
ok I'll try. And I'm thinking if I also can use that for BTW does anyone here know if FBX binary format remains the same even below version 7? |
I have no idea. Maybe @mrdoob knows? |
@takahirox did you share your binary fbx parser anywhere? |
Not yet... I'll do soon! |
@takahirox Any updates :) ? Thanks! |
Sorry I've been busy lately... but soon soon! |
@takahirox Awesome \o/ |
I'm gonna start to work on FBX binary parser again from April. |
@takahirox Do you have something rough to share? We're doing a presentation at the end of the week and could really use FBX binary loading for the demo. |
Hi @takahirox I'm actually in a hurry, is there any update on this? I can help where able, but this is all still new to me. |
I'm just starting to work on that again. |
How many weeks do you think? |
Hm, maybe two or three weeks? |
Just out of curiosity, could this be done in a week or so if i were able to sponsor some of the dev work? |
Well, I can't promise but I'll try. |
testfile.fbx.zip |
In the meantime... For https://with.in/watch/under-neon-lights/ we used plain-text FBX but we changed the extension to .fbx.txt so the server would gzip it. I also optimised quite a lot the I wonder if there is anything |
Side note: The FBX example already uses |
Hi! I'm also getting this error when trying to load an external .fbx model which is export from Autodesk. Can anyone give me a solution for this Thank you! |
|
@RicoLiu This is what I got when used THREE.FBXLoader. I implemented a loader_fbx example by replacing the URL of the model. And when I used THREE.FBXLoader2 I got the error |
You can use the webgl_loader_fbx.example:
and it should work. |
@jostschmithals I follow your step then getting a new error |
Seems that your model file is compressed? |
Add this line in your example.
|
As I wrote above, you have to deactivate the animation code (in the loading section and in the render loop), if you use the example code with a model file that doesn't contain any animations. |
I'm experiencing a different issue, im sure is related to materials. My problem is that under certain conditions some fbx models render and some dont. To reproduce:
Which basically just adds a skydome and ground with 2 images. Then after the scene is initialized, run: loadSkyDomeAndGroundBowl(scene); You will see that the 2 fbx models load and render fine within this new environment. Now, if you replace the xsi_man_skinning.fbx reference with the TestcudeWithImages.fbx (also comment out animation code) you will see that the code does not render at all. I've noticed this with other fbx files too. Binary fbx files do not seem to be compatible with environments. Or I could just be doing something wrong... |
This is my example code:
@jostschmithals can you give me a correct solution for this. I'm also deactive the animate code |
@adam-clarey I've tested it, and the reason that you can't see the cube is that it sits under the ground plane (if you orbit it with the camera you should see it). Besides this all is working fine for me with your code. |
@takahirox: The mesh inside the group created by FBXLoader is translated and rotated, so that the pivot point is not placed in the center of the cube like in the original model, but in the center of its upper side. This seems to be a minor bug? (the image is correctly displayed on top though ...) |
@hmtri1011 You have deactivated your animate() function. Therefore your scene is not rendered at all 😉 (It should be sufficient in this case to deactivate only the lines you already commented out.) |
@jostschmithals tks :D it works now |
Good spot @jostschmithals, thanks. Should it matter what binary version the file is? I've got fbx files with version 7400 that render fine, but one with version 7500 and it errors out. "FBXLoader: Unknown property type " |
@adam-clarey I have no detailed knowledge of fbx. I only joined this thread because I found the question interesting whether/how image data could be baked into the model file. So I would like to forward this question to @takahirox. |
I know the specification of >=7500 is a bit different from < 7500, and |
So after more testing, 7200 and 7500 seem to be fine. However, 6100 and 7300 dont render. |
Would you share the ascii version files? |
And I hope we close this issue because |
@takahirox Sounds good! |
@adam-clarey "FBXLoader: Unknown property type " in FBXLoader.js <line 4010>
|
Hello everyone, |
Description of the problem
FBXLoader only supports FBX text format?
Three.js version
Browser
OS
Hardware Requirements (graphics card, VR Device, ...)
The text was updated successfully, but these errors were encountered: