Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (476)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (533)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  COLLADA Loader  (Read 3133 times)
0 Members and 1 Guest are viewing this topic.
Offline croft

Junior Member




Java, Java, Java


« Posted 2005-04-22 22:05:39 »

I'm getting ready to resume work on a COLLADA Loader for Xith.  If someone has already written an Open Source COLLADA Loader for Xith or is currently doing so, please let me know.

More info on COLLADA:
http://www.collada.org/

Our Xith application:
http://whoola.sourceforge.net/

David Wallace Croft / www.CroftSoft.com / (214) 636-3790 m / Advanced Java Game Programming
Offline Amos Wenger

Senior Member




Everything's possible, but not everything's fun...


« Reply #1 - Posted 2005-04-23 10:31:27 »

I don't think anybody started one, but I would be very interested by one.

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Offline aNt

Senior Member




AFK


« Reply #2 - Posted 2005-04-23 11:04:02 »

same here Smiley would be great to have a full on loader:

- animation (key frame not baked)
- groups (with animation)
- shape names.
- bones (for kicks)

good luck dude- if u need models to test with i can
try and make u some Smiley
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Amos Wenger

Senior Member




Everything's possible, but not everything's fun...


« Reply #3 - Posted 2005-04-25 09:07:38 »

And, to speed up the things I would be pleased to help ( in the limits of my knowledge... ).

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Offline aNt

Senior Member




AFK


« Reply #4 - Posted 2005-04-25 11:10:51 »

i've also started lookin into it.. xml format- nice....
i will update and test the new xith3d (bit behind)
sodding day job....
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #5 - Posted 2005-05-01 01:42:38 »

Quote
same here Smiley would be great to have a full on loader:

- animation (key frame not baked)
- groups (with animation)
- shape names.
- bones (for kicks)

good luck dude- if u need models to test with i can
try and make u some Smiley


Here here, that would be excellent.

Even if we could satisfy all tasks with different loaders that would also be good.

Let's make sure any such loader is in the toolkit so it can be supported into the future Smiley

Cheers,

Will.

Offline ap_kelly

Junior Member




Java rocks!


« Reply #6 - Posted 2005-05-02 03:16:24 »

I'd be interested in helping out as well.

Andy.

Offline shawnkendall

Senior Member





« Reply #7 - Posted 2005-05-19 12:14:25 »

I and my team have had quite a bit of experience writing loaders for Java3D.

We are currently on the process of writing a new X3D loader  (interchange only - geom) and COLLADA is right up that alley since both are using XML and have allot similarities. (it woudl be great to set up a properties file or other that simple switches the loader syntax between the two)

It would be nice if we could at least share idaes if not code between these projects.

So I'll start...How are you building your parse processor?  We started using SAX of the parsing of course, but right now this means the element/node processing is hand coded (as it has been in past binary formats).  But the Xj3D loader uses Javacc to generate the parse processor...

Comments?...

Shawn Kendall
Cosmic Interactive, LLC
http://www.facebook.com/BermudaDash
Offline aNt

Senior Member




AFK


« Reply #8 - Posted 2005-05-19 14:34:54 »

i was thinking SAX also... hows is your loader coming
along?
Offline croft

Junior Member




Java, Java, Java


« Reply #9 - Posted 2005-05-19 22:33:50 »

Quote
i was thinking SAX also... hows is your loader coming
along?



You can see a demo here:
http://earth.whoola.com:8080/space/dock/

In the demo, there are two space shuttles in the opening scene.  The shuttle on the left is loaded with a pre-existing OBJ loader.  The shuttle on the right is loaded with the COLLADA loader I am developing.

The source code is available but I would not dive into it just yet.  Give me another month or so to fix it, clean it up, and make it reusable.  I will announce then.
http://whoola.sourceforge.net/

I'm using JAXB to parse the COLLADA files.  JAXB automatically converts the COLLADA XML Schema files into Java classes.  I had tried this with the X3D XML Schema files some time ago but it did not work.

I am learning 3D as I go.  I would prefer to do networking code.  If anyone else starts writing an Open Source COLLADA Loader for Java, please announce.

David Wallace Croft / www.CroftSoft.com / (214) 636-3790 m / Advanced Java Game Programming
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline arne

Senior Member




money is the worst drug- we should not let it rule


« Reply #10 - Posted 2005-05-24 19:09:59 »

Hi
It seems, that collada supports lot of things other file-formats don't support, like bones and skin in contrast to key animation, which are the only way for animations in other file-formats.
I think for implementing these features we would need a loader which automatically creates the xith representation and a physical representation, like in odejava. + the loader should support the adding of jointAmotors to the bones for controlling the object.

This may only be a minor detail, but I think it is very important for the design of the loader.

I think it would be a bad idea for us to program such a loader independently. I suggest to create a new project (at java.net?) and maybe to use crofts code as a starting point. This will also help us to update to newer releases of the collada format.

So, what do you think?

Arne

:: JOODE :: Xith3d :: OdeJava ::
Offline croft

Junior Member




Java, Java, Java


« Reply #11 - Posted 2005-05-26 18:33:37 »

Quote

I think it would be a bad idea for us to program such a loader independently. I suggest to create a new project (at java.net?) and maybe to use crofts code as a starting point. This will also help us to update to newer releases of the collada format.




Should we put it here?:
https://xith-tk.dev.java.net/

David Wallace Croft / www.CroftSoft.com / (214) 636-3790 m / Advanced Java Game Programming
Offline darkprophet

Senior Member




Go Go Gadget Arms


« Reply #12 - Posted 2005-05-26 21:27:11 »

Quote

It seems, that collada supports lot of things other file-formats don't support, like bones and skin in contrast to key animation, which are the only way for animations in other file-formats


X? md5? ms3d?

i have to say, im very impressed with md5, see if what you are trying to accomplish can be done in md5 (Doom3), there are alot of available resources on the net regarding its format. Its also ASCII....

Just my 2 un-needed pence...

Friends don't let friends make MMORPGs.

Blog | Volatile-Engine
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #13 - Posted 2005-05-27 00:55:36 »

Quote




Should we put it here?:
https://xith-tk.dev.java.net/


Definitally!  Please do.

Some info on doing so is here: http://xith.org/XithToolkitContributions
Before doing so, please ensure it satisfies our requirements:  http://xith.org/XithToolkitGuidelines  (namely, that it is licensed the same as Xith3D itself (a BSD-like license), and the API is well documented).

The benifits are outlined in the wiki, but the two big ones are:  It is distributed along side Xith3D in every build, and if changes are made to the Xith3D core API, your code will normally be updated at the same time by one of our developers.

Feel free to email me directly if you have any questions regarding this process, and please apply for developer status on the xith-tk project.

Thanks,

Will.

Offline arne

Senior Member




money is the worst drug- we should not let it rule


« Reply #14 - Posted 2005-05-27 12:37:20 »

Quote


X? md5? ms3d?

i have to say, im very impressed with md5, see if what you are trying to accomplish can be done in md5 (Doom3), there are alot of available resources on the net regarding its format. Its also ASCII....

Just my 2 un-needed pence...


we've got loaders for those ?

I've created a system for my own 3d-models that contains of 4 files
- one with geometry and bones for xith (the bones should be able to affect vertex positions, I still have to implement that)
- one with the geometry of the bodies for odejava
- one with the joints between the bodies
- one for synchronization with xith

Because I use my own fileformat it would be good if it could be converted somehow into such a system with collada. This way I wouldn't have to write my own exporters Wink

Arne

:: JOODE :: Xith3d :: OdeJava ::
Offline darkprophet

Senior Member




Go Go Gadget Arms


« Reply #15 - Posted 2005-05-27 13:08:37 »

Quote

we've got loaders for those ?


I dont think so, but then again, i dont use Xith, so you might have.

Im just saying that all of the above formats are easier to create a loader from because they have such a big following. Alot of resources are available on all three, and importers/exportors for X and md5 are available for every single modeler known to man!

my 2 pence...

Friends don't let friends make MMORPGs.

Blog | Volatile-Engine
Offline croft

Junior Member




Java, Java, Java


« Reply #16 - Posted 2005-06-02 21:25:58 »

Quote



Should we put it here?:
https://xith-tk.dev.java.net/

Definitally!  Please do.

[...]

Feel free to email me directly if you have any questions regarding this process, and please apply for developer status on the xith-tk project.


There's a complication.  I am using JAXB to parse the XML.  My understanding is that JAXB will be integrated into the Java Core when Java 6 comes out.  In the interim, I am including the JAXB JARs as part of the Java Web Start installation of the demo.   Take a look:
http://earth.whoola.com:8080/space/jaxb/

I could include just my code in the Xith distribution with instructions to developers that they would need to download and distribute the JAXB JARs like I do to make this work for pre-Java 6.0 systems.  What do you think?

David Wallace Croft / www.CroftSoft.com / (214) 636-3790 m / Advanced Java Game Programming
Offline arne

Senior Member




money is the worst drug- we should not let it rule


« Reply #17 - Posted 2005-06-02 22:12:11 »

Yeah I think it is a good idea to include the code into the xith-tk and then to put there also some kind of readme file with a link to a download site for the jars.

:: JOODE :: Xith3d :: OdeJava ::
Offline croft

Junior Member




Java, Java, Java


« Reply #18 - Posted 2005-06-03 01:33:14 »

Yeah I think it is a good idea to include the code into the xith-tk and then to put there also some kind of readme file with a link to a download site for the jars.

OK, I did that.  I uploaded it here:
http://whoola.sourceforge.net/

When I get access to xith-tk, I will upload it there as well.

Not thoroughly tested, etc., so you might want to wait a couple of weeks for the next release before downloading.

Release early, release often.

David Wallace Croft / www.CroftSoft.com / (214) 636-3790 m / Advanced Java Game Programming
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #19 - Posted 2005-06-03 03:21:49 »

Great stuff Smiley

Yeah I think it is a good idea to include the code into the xith-tk and then to put there also some kind of readme file with a link to a download site for the jars.

When I get access to xith-tk, I will upload it there as well.


Done.

Will you commit it to the TK CVS as part of the official toolkit?  If so, what package?  org.xith3d.loaders.collada sounds good, what do you think?

Cheers,

Will.

Offline arne

Senior Member




money is the worst drug- we should not let it rule


« Reply #20 - Posted 2005-06-03 10:17:37 »

+1 for org.xith3d.loaders.collada

but weren't the xith packages all at com.xith3d.* and not org.xith3d.* Huh

Arne

:: JOODE :: Xith3d :: OdeJava ::
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #21 - Posted 2005-06-03 10:56:41 »

Arne,

com.xith3d.* designates a core package (and uses the xith3d.dev.java.net CVS)
org.xith3d.* designates a tool that is part of the official toolkit distribution (which must confrom to these standards: http://xith.org/XithToolkitGuidelines) (and uses the xith-tk.dev.java.net CVS)

It is setup that way so that upon a glance one can see what the code is.  Non-conforming tools can still use the xith-tk CVS, but not the org.xith3d. package prefix.   More info here:  http://xith.org/XithToolkitContributions

There are some core packages which really shouldn't be in the core and one day will be moved, but that is another topic.

The idea of the structure is to have a high QA policy on the core classes, and a more relaxed policy on the tools to facilitate more community involvement, but still making sure that the tools meet some standards (namley in the areas of: license, javadoc, API change policy, and future support).

Cheers,

Will.


Offline arne

Senior Member




money is the worst drug- we should not let it rule


« Reply #22 - Posted 2005-06-03 12:56:17 »

com.xith3d.* designates a core package (and uses the xith3d.dev.java.net CVS)
org.xith3d.* designates a tool that is part of the official toolkit distribution (which must confrom to these standards: http://xith.org/XithToolkitGuidelines) (and uses the xith-tk.dev.java.net CVS)


Ok - that's what got me confused Wink I thought both were using com.  (I haven't use parts of the xith-tk very much yet)

Arne

:: JOODE :: Xith3d :: OdeJava ::
Offline arne

Senior Member




money is the worst drug- we should not let it rule


« Reply #23 - Posted 2005-06-05 21:32:13 »

I wanted to try out the loader, but I only found the jar. Is somewhere also the source? A javadoc would also help me. Without anything I don't even know which class is the main class !!!

Arne

:: JOODE :: Xith3d :: OdeJava ::
Offline croft

Junior Member




Java, Java, Java


« Reply #24 - Posted 2005-06-06 20:24:19 »

I wanted to try out the loader, but I only found the jar. Is somewhere also the source? A javadoc would also help me. Without anything I don't even know which class is the main class !!!

I uploaded it here:
https://xith-tk.dev.java.net/servlets/ProjectDocumentList?folderID=3484&expandFolder=3484&folderID=372

Please see the install.txt file inside the zip.

David Wallace Croft / www.CroftSoft.com / (214) 636-3790 m / Advanced Java Game Programming
Offline arne

Senior Member




money is the worst drug- we should not let it rule


« Reply #25 - Posted 2005-06-06 20:45:23 »

Good - but the jars don't contain any sources, right? (It's the same file as in sourceforge, right? - the date is the same ) So you should at least add a javadoc. Or have I missed something there?

:: JOODE :: Xith3d :: OdeJava ::
Offline croft

Junior Member




Java, Java, Java


« Reply #26 - Posted 2005-06-07 21:46:39 »

Good - but the jars don't contain any sources, right? (It's the same file as in sourceforge, right? - the date is the same ) So you should at least add a javadoc. Or have I missed something there?

Yes, same file.  The javadoc is the same as for interface Loader in the Java 3D API.

David Wallace Croft / www.CroftSoft.com / (214) 636-3790 m / Advanced Java Game Programming
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

pw (18 views)
2014-07-24 01:59:36

Riven (17 views)
2014-07-23 21:16:32

Riven (14 views)
2014-07-23 21:07:15

Riven (17 views)
2014-07-23 20:56:16

ctomni231 (45 views)
2014-07-18 06:55:21

Zero Volt (40 views)
2014-07-17 23:47:54

danieldean (32 views)
2014-07-17 23:41:23

MustardPeter (36 views)
2014-07-16 23:30:00

Cero (51 views)
2014-07-16 00:42:17

Riven (50 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!