Sign in to follow this  

Collada to JSON converter (O3D?)

Recommended Posts

Hey all,

Up until now I've been doing basic obj files to load simple 3D meshes into my game. I'm starting to get to more advanced things such as animation and it seems like Collada (.dae) is the best 3D file format out there. Does anyone know of a DAE to JSON converter? I've looked at O3D's converter, but everything I see from them says that its deprecated. What is the standard for loading Collada files into browser games?
I could write my own python script to convert it, but Collada seems pretty dynamic with lots of different options to consider... it would be very time consuming.


Share this post

Link to post
Share on other sites
[url=""]JSON[/url] isn't a model format -- it's a generic data storage format like [url=""]XML[/url].

COLLADA (dae) files are actually stored as XML documents, so you could use a XML->JSON converter.... but I don't know what that would achieve (it would still just be a collada file represented in a different form).

Because collada is so complicated, most games don't import collada files directly. Usually they've got an external program that you can run to convert from collada into the game's internal model format.
To illustrate -- I've got a 60MB DAE file which converts to a 1MB model file...

I'm ([i]foolishly?[/i]) writing a converter at the moment, and yes it is very time consuming :(

Instead of starting from scratch, you could check out [url=""]Assimp[/url], [url=""]COLLADA-DOM[/url] or [url=""]OpenCOLLADA[/url].

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this