Fbx-conv tool source code

Fbx-conv tool source code
0.0 0

#1

Is it possible to get the code of the fbx-conv tool?

Thanks!


#2

our tool is based upon: https://github.com/libgdx/fbx-conv with only some minor modifications.


#3

Are those minor modifications somewhere to be seen?


#4

I took a look around and I think this is it: https://github.com/Trace0429/fbx-conv


#5

I’ll try to build it in linux :smile:
Thanks!


#6

ok, let me know if I can help. You’re welcome.


#7

I got it working on linux but it seems there’s a small difference between the c3t files bundled with the CppTests:

orc.c3t (the file that works)

{
    "version": "1.2",
    "mesh": [
...

My file (doesn’t work :frowning: )

{
    "version": [0 , 2],
    "mesh": [
...

Could you check if you pushed everything to that repository?
Thanks a lot!


#8

I can’t check that but I can ask the right person to.


#9

This is how I did it in Linux (Ubuntu):


fbx-conv
download: https://github.com/cocos2d-x/fbx-convert

Need to download FBX SDK too : http://usa.autodesk.com/adsk/servlet/pc/item?id=24314456&siteID=123112

Install FBX SDK then
    from console:
export LD_LIBRARY_PATH="/path/to/libfbxsdk.so"
	maybe need to issue this every time you launch fbx-convert or write a sh script or such to automate it .
	
change src/modeldata/Node.h:
	#include <algorithm>
	
change src/modeldata/FileIO.cpp:
	#include <string.h>
	
change build/gmake/fbx-conv.make cflags:
	  CFLAGS    += $(CPPFLAGS) $(ARCH) -g -w -std=c++11
	  
I needed to install premake4 :
	apt-get install premake4
	
export FBX_SDK_ROOT=/path/to/fbx_sdk/
./generate_makefile
make


#10

Thanks for the linux install tips; this ended up working for me; except I had to ./generate_makefile before I edited the fbx-conv.make file

Also I was running CentOS 6.5 which only has gcc 4.4 (doesn’t recognize -std=c++11 flag) so I upgraded by doing this:

wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo
yum install devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++

Then adding the install location of devtools to my path (you can make this permanent by adding to ~/.bashrc):

export PATH=/opt/rh/devtoolset-2/root/usr/bin/:$PATH

Verify by typing:
g++ --version
(you should see 4.8.2; if so you can complete the last part of gabdab’s instructions and issue the make command)

Finally I also had to copy the library file from the sdk (depending on your sdk path)
cp /opt/autodesk/lib/gcc4/x64/release/libfbxsdk.so /usr/lib64/


#11

Well done .
I don’t remember how the c++11 is needed here or if it can be avoided .


#12

Is the windows source code available anymore? I notice the links above have gone dead…?


#13

Link: https://github.com/cocos2d-x/fbx-conv