OPENGL-ES Load COLLADA File

Tutorials concerning the OpenGL® ES cross-platform API for full-function 2D and 3D graphics on the Google-Android platform.

OPENGL-ES Load COLLADA File

Postby SkyNet800 » Tue Mar 03, 2009 3:48 pm

Does anybody knows any tutorial about loading collada file?

http://www.collada.org/mediawiki/index.php/Main_Page

Thanks for all.
SkyNet800
Junior Developer
Junior Developer
 
Posts: 20
Joined: Tue Feb 24, 2009 11:44 am

Top

Postby FlagellumDei » Tue Apr 28, 2009 4:19 pm

You could look into JCollada:

http://www.xquaker.com/projects_jc.html
FlagellumDei
Freshman
Freshman
 
Posts: 3
Joined: Sat Apr 18, 2009 3:19 pm

Postby 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 585 times
christomaszewski
Freshman
Freshman
 
Posts: 2
Joined: Mon Jun 29, 2009 9:09 pm

Postby trbecker » Tue Jun 30, 2009 10:35 pm

Put it on code.google.com so anyone can help you easily.
trbecker
Freshman
Freshman
 
Posts: 2
Joined: Tue Jun 30, 2009 10:31 pm

Postby christomaszewski » Wed Jul 01, 2009 7:03 am

good idea. Heres the link to the google code page: http://code.google.com/p/androidcolladaloader/
if anyone wants to help out that would be great. Otherwise feel free to use the code as a reference, albeit a pretty simple one.

I made the entire android project available on the google code page and made some revisions in order to segue to a new version in the future that supports multiple objects embedded in the collada file. If anyone knows of any good collada tag references please let me know as I am currently just experimenting.
christomaszewski
Freshman
Freshman
 
Posts: 2
Joined: Mon Jun 29, 2009 9:09 pm

Postby trbecker » Wed Jul 22, 2009 4:57 pm

I've found this collada implamentation in the java.net forums:

https://j3d-contrib-utils.dev.java.net/

Hope this helps a bit.
trbecker
Freshman
Freshman
 
Posts: 2
Joined: Tue Jun 30, 2009 10:31 pm

Top

Re: OPENGL-ES Load COLLADA File

Postby bigedward87 » Fri Oct 15, 2010 8:51 pm

Hey Christomaszewski,

I manage a small android DEV team and want to build upon your android loader hosted on Google Code, Let me know if your still interested in working on it. We want to setup mesh and skeletal animations support.

Thanks,
EDD ;)
bigedward87
Once Poster
Once Poster
 
Posts: 1
Joined: Sun May 23, 2010 12:36 am

Re: OPENGL-ES Load COLLADA File

Postby AION » Wed Nov 03, 2010 7:33 am

Hello everyone!

I have been working with a Collada reader for Android (openGL es) for a while now. To be honest it is pretty easy to get going with the reader because of the simple nature of the Collada files. Though there is some "higher-end" features which are pretty damn hard to read and interpret in code.

But the basic schema is easy to understand just by looking at the xml. Also useful (and pretty easily understandable) http://www.khronos.org/collada/
AION
Once Poster
Once Poster
 
Posts: 1
Joined: Wed Nov 03, 2010 7:27 am

Top

Return to Android 2D/3D Graphics - OpenGL Tutorials

Who is online

Users browsing this forum: Google [Bot] and 2 guests