by christomaszewski » Mon Jun 29, 2009 9:19 pm
Hey, I've been looking around for a solution to this as well. I don't think jcollada is a viable option because i don't think android has the jogl bindings, unless someone wants to port it to opengl es.
Since I could not find a solution, I decided to start work on my own collada object loader. Right now its pretty simple - parses the xml and grabs the first vertices and triangle indices it finds. This means that depending on the complexity of the collada model, not all of it may be shown. Also, I didn't bother including support for textures or colors. If anyone wants to help out and maybe expand the loader so it can read multiple objects and possibly support at least colors that would be cool. I'm attaching the code I wrote - keep in mind its pretty crappy but it works. Feel free to borrow and enhance as you guys wish.
- Attachments
-
colladaloader.tar.gz
- (2.63 KiB) Downloaded 491 times