Skip to main content
gamedev.net
🔒 Locked

Sample Collada Animation

Started by daimyo 5 replies 8.5k views
Original Post
daimyo
daimyo

I'm trying to write a Collada parser to import animated meshes into my game. Previously, I had written one for Wavefront .OBJ files - and the process was (relatively) easy: open up the specification, open up a sample .OBJ file, and keep trying until it worked.

However, I'm having a harder time with Collada. I've got the huge specification file - but I can't seem to find any example Collada (.dae) files containing animation. It seems like there used to be a few repositories, but now they all return 404 errors.

Does anyone have any simple model I can play with?

Thanks!

Don Carnage
Don Carnage

Tree.js has a Collada loader. They had this among their examples:

http://threejs.org /examples/models/collada/monster/monster.dae

It is I, the spectaculous Don Karnage! My bloodthirsty horde is on an intercept course with you. We will be shooting you and looting you in precisely... Ten minutes. Felicitations!
daimyo
daimyo

Tree.js has a Collada loader. They had this among their examples:

http://threejs.org /examples/models/collada/monster/monster.dae

Thanks - this looks great!

Waaayoff
Waaayoff

Is there a reason why you want to code the importer yourself and not just use one of the many tools out there such as Assimp? It will save you a lot of headaches and let you focus on your game.

"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. "
gameloop.io
gameloop.io

Hi, as it happens I have developed a Collada loader in C# a few years ago. The basics all work (materials, textures including normal maps, joints/bones, bone animations).

So if you want some example code and Collada models, take a look at this GitHub repo:

https://github.com/Bunkerbewohner/ColladaXna

The library was originally developed for usage with XNA, but also works indepedently.

The repository contains two animated DAE files under ColladaXna Standard Sample / ColladaXna Standard SampleContent.

A very simple one with only two joints and a more complex one.

Mathias

Currently working on https://nationsonline.net - turn-based multiplayer 4X browser game

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.