Jump to content

  • Log In with Google      Sign In   
  • Create Account

Can't get a decent Collada file from Blender?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 Waaayoff   Members   -  Reputation: 781

Like
1Likes
Like

Posted 27 October 2011 - 01:14 PM

I wrote a converter that converts a Collada file to my own binary format. However since Blender's exporter is a useless piece of shit, i have to go through this everytime i need to load a model into my game:

Export .fbx file from Blender -> Convert to .dae using Autodesk Converter -> Use Collada Refinery on .dae file -> Finally convert .dae file to my format.

But then i realized that for some reason, the Autodesk Converter converts the animation keyframes into interpolated keyframes. So instead of reading 2 keyframe data and doing the interpolation in real-time, i have to read 10^10 keyframes. And i can't reverse it because the original keyframe data isn't there anymore.

So, FOR THE LOVE OF EVERYTHING THAT IS HOLY, does anyone have a working collada exporter for blender?! If not, could you at least tell me how do you convert your Collada files? Assuming that you do..

I need a drink.
"Spending your life waiting for the messiah to come save the world is like waiting around for the straight piece to come in Tetris...even if it comes, by that time you've accumulated a mountain of shit so high that you're fucked no matter what you do. "

Sponsor:

#2 teutonicus   Members   -  Reputation: 518

Like
3Likes
Like

Posted 27 October 2011 - 02:41 PM

I can't help you with the Blender exporter, but I can suggest instead using Assimp to import from Blender and then dumping Assimp's structures into your own file format. It supports import of .blend files (among others, including COLLADA).

I recently replaced my old COLLADA parser with Assimp after being fed up with the different COLLADA formats that I was getting from different exporters. Took me an afternoon and I no longer have hassles with broken COLLADA exports whenever a new version of Maya is released. Assimp does the boring stuff for me :)

#3 kuroioranda   Members   -  Reputation: 304

Like
1Likes
Like

Posted 27 October 2011 - 03:58 PM

I wrote a converter that converts a Collada file to my own binary format. However since Blender's exporter is a useless piece of shit, i have to go through this everytime i need to load a model into my game:

Export .fbx file from Blender -> Convert to .dae using Autodesk Converter -> Use Collada Refinery on .dae file -> Finally convert .dae file to my format.

But then i realized that for some reason, the Autodesk Converter converts the animation keyframes into interpolated keyframes. So instead of reading 2 keyframe data and doing the interpolation in real-time, i have to read 10^10 keyframes. And i can't reverse it because the original keyframe data isn't there anymore.

So, FOR THE LOVE OF EVERYTHING THAT IS HOLY, does anyone have a working collada exporter for blender?! If not, could you at least tell me how do you convert your Collada files? Assuming that you do..

I need a drink.


Have you considered writing your own exporter directly from blender? The python API for blender is actually fairly easy to use, and you can do some really slick stuff with it like opening and dumping scenes directly from the command line. In my project, I don't manually export anything, I just run my build script and any changes in the game's blend files are automatically built into data for my engine and posted to the output directories for use.

http://www.blender.org/documentation/blender_python_api_2_59_0/info_quickstart.html

#4 Waaayoff   Members   -  Reputation: 781

Like
2Likes
Like

Posted 28 October 2011 - 02:14 AM

I can't help you with the Blender exporter, but I can suggest instead using Assimp to import from Blender and then dumping Assimp's structures into your own file format. It supports import of .blend files (among others, including COLLADA).

I recently replaced my old COLLADA parser with Assimp after being fed up with the different COLLADA formats that I was getting from different exporters. Took me an afternoon and I no longer have hassles with broken COLLADA exports whenever a new version of Maya is released. Assimp does the boring stuff for me :)

Assimp look promising. Though on their website they say .blend files aren't fully-supported yet. And i can't use COLLADA because Blender doesn't export animation to it correctly. Anyway i'll take a look at it thanks :)




I wrote a converter that converts a Collada file to my own binary format. However since Blender's exporter is a useless piece of shit, i have to go through this everytime i need to load a model into my game:

Export .fbx file from Blender -> Convert to .dae using Autodesk Converter -> Use Collada Refinery on .dae file -> Finally convert .dae file to my format.

But then i realized that for some reason, the Autodesk Converter converts the animation keyframes into interpolated keyframes. So instead of reading 2 keyframe data and doing the interpolation in real-time, i have to read 10^10 keyframes. And i can't reverse it because the original keyframe data isn't there anymore.

So, FOR THE LOVE OF EVERYTHING THAT IS HOLY, does anyone have a working collada exporter for blender?! If not, could you at least tell me how do you convert your Collada files? Assuming that you do..

I need a drink.


Have you considered writing your own exporter directly from blender? The python API for blender is actually fairly easy to use, and you can do some really slick stuff with it like opening and dumping scenes directly from the command line. In my project, I don't manually export anything, I just run my build script and any changes in the game's blend files are automatically built into data for my engine and posted to the output directories for use.

http://www.blender.o...quickstart.html

I really don't want to keep maintaining an exporter, the Blender API changes way too often. I did write a simple exporter that i had to update 3 times. I just can't be bothered.
"Spending your life waiting for the messiah to come save the world is like waiting around for the straight piece to come in Tetris...even if it comes, by that time you've accumulated a mountain of shit so high that you're fucked no matter what you do. "




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS