where's xith-tk with the whoola collada loaders...

i got what came with xith 0.7.1 + third party stuff and not surpsingly its out of date with respect to all of Croft’s collada additions…i’ve got a xith-tk.jar dated April 28th, 2006 which doesn’t have a “dae” directory in org/xith3d/loaders/
i downloaded the files in whoola_collada_xith_2006-03-14, and i can find ColladaLoader but its of course in whoola’s class hierarchy rather than xith-tk’s, and i’d prefer to use the version incorporated in the xith-tk package
i’m assuming i have to grab something from cvs, but i can’t find the relevant packages at https://xith-tk.dev.java.net/. if someone could give me a direct link to what i need that would be much appreciated. :slight_smile:

sorry maybe i’m dumb, but there’s a whole lot of dead links trying to rummage through the forums and get caught up.

side note…whoola_collada_xith’s readme is out of date:
"
For installation instructions, please see
http://earth.whoola.com:8080/javadoc/core/com/whoola/core/media/xith/package-summary.html
"
the link gives a 404

downloaded the most recent one here, and it doesn’t seem to have the “dae” package either…
https://xith-tk.dev.java.net/source/browse/checkout/xith-tk/libs/xith-tk.jar

i’m assuming i need this as well for the collada schema?
https://xith-tk.dev.java.net/source/browse/checkout/xith-tk/libs/whoola_collada_jaxb.jar

so was it neccessary for me to download and install all the jwsdp stuff?

used this page:
https://xith-tk.dev.java.net/source/browse/xith-tk/
and followed the CVS client setup instructions for command line…
easy enough… i’m not sure where i’m supposed to place the xith-tk directory when i run ant from within it…
i have the libraries installed in /Library/Java/Extensions and the source in my a subdirectory of my home…
i assume i compile with xith-tk as a sister directory of xith-3d
i get the errors starting with this:
[javac] Compiling 298 source files to /Users/brimley/Code/Documentation/Java/xith-tk/classes
[javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/DaeCreator.java:5: package org.collada._2005._11.colladaschema.impl does not exist
[javac] import org.collada._2005._11.colladaschema.impl.*;
[javac] ^
[javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/DaeCreator.java:24: cannot find symbol

i’m assuming i have to place the whoola_collada_jaxb.jar file somewhere…do i have to unarchive it first??
sorry for all the noise, i’m new to cvs and all this

You have to have xith3d and xith-tk like that :
YourDevFolder
| - xith3d
| - xith-tk
I think croft forgot to include whoola_collada_jaxb.jar file in the build.xml

Thanks. I had a couple of files that I uploaded in March that were obsoleted by the recent move of the source code from whoola.sourceforge.net to xith-tk. I deleted them.

The updated documentation is here:
http://earth.whoola.com:8080/javadoc/xith-tk/org/xith3d/loaders/dae/whoola/package-summary.html

You will need to add it to your classpath but you do not need to unzip it.

[quote="<MagicSpark.org [ BlueSky ]>,post:4,topic:27550"]
You have to have xith3d and xith-tk like that :
YourDevFolder
| - xith3d
| - xith-tk
I think croft forgot to include whoola_collada_jaxb.jar file in the build.xml
[/quote]
I did not mess with the build.xml file previously because I knew it would not build without the JAXB JARs. Now that I am going to add the JAXB JARs to CVS, I will modify the build to include all of the necessary JARs.

Where should I put whoola_collada_jaxb.jar and the JAXB JARs? Sub-directory xith-tk/libs or xith-tk/third-party?

I prefer xith-tk/ext where “ext” stands for “external” myself. In fact, I usually use 3 letters for all of my CVS sub-dirs:

arc
bin
bld
doc
ext
key
lib
res
src
tmp

ok, so i’ve had the directories like you suggested, side-by-side, so i don’t think thats the issue.
i think the directory structure for xith-tk is confusing…
i.e. why is hial.jar in both the “libs” and “third-party” directories. i know i’m new to this, but it seems like it would make sense to have a single directory and call it one of “ext”, “lib”, or “third-party” rather than keeping three separate ones, especially if they have overlapping contents. again, sorry if i’m missing something as to why this isn’t done.
so for the time being i’ve placed the whoola_collada_jaxb.jar file within the third-party directory because the ant buildfile is already looking in that directory for jars





still, i get lots of errors, they’re different now though:

javac] Compiling 298 source files to /Users/brimley/Code/Documentation/Java/xith-tk/classes
[javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/DaeExporter.java:13: package javax.xml.bind does not exist
[javac] import javax.xml.bind.JAXBException;
[javac] ^
[javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/DaeExporter.java:126: cannot find symbol
[javac] symbol : class JAXBException
[javac] location: class org.xith3d.loaders.dae.whoola.DaeExporter
[javac] throws IOException, JAXBException
[javac] ^
[javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/DaeSaver.java:5: package javax.xml.bind does not exist
[javac] import javax.xml.bind.JAXBException;
[javac] ^
[javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/collada/ColladaLoader.java:6: package com.whoola.core.io does not exist
[javac] import com.whoola.core.io.ReaderInputStream;
[javac] ^
[javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/collada/ColladaLoader.java:8: package javax.xml.bind does not exist

doh, i didn’t realize at first that some of the errors were from not finding jaxb so adding this to the element helped clear up some ofthe errors:


so now all the errors are internal to xith-tk at least:

[javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/collada/ColladaLoader.java:6: package com.whoola.core.io does not exist
[javac] import com.whoola.core.io.ReaderInputStream;
[javac] ^
[javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/collada/ColladaLoader.java:12: package com.whoola.core.text.xml.bind does not exist
[javac] import com.whoola.core.text.xml.bind.JaxbCoder;
[javac] ^
[javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/collada/ColladaLoader.java:32: cannot find symbol
[javac] symbol : class JaxbCoder
[javac] location: class org.xith3d.loaders.dae.whoola.collada.ColladaLoader
[javac] private final JaxbCoder jaxbCoder;
[javac] ^
[javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/misc/JaxbCoder.java:14: package com.whoola.core.io does not exist
[javac] import com.whoola.core.io.Coder;
[javac] ^
[javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/misc/JaxbCoder.java:15: package com.whoola.core.io does not exist
[javac] import com.whoola.core.io.StringCoder;
[javac] ^
[javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/misc/JaxbCoder.java:29: cannot find symbol
[javac] symbol: class Coder
[javac] implements Coder
[javac] ^
[javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/misc/JaxbCoder.java:36: cannot find symbol
[javac] symbol : class StringCoder
[javac] location: class org.xith3d.loaders.dae.whoola.misc.JaxbCoder
[javac] private final StringCoder stringCoder;
[javac] ^
[javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/collada/ColladaLoader.java:62: cannot find symbol
[javac] symbol : class JaxbCoder
[javac] location: class org.xith3d.loaders.dae.whoola.collada.ColladaLoader
[javac] jaxbCoder = new JaxbCoder ( ColladaConstants.JAXB_CONTEXT );
[javac] ^
[javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/collada/ColladaLoader.java:80: cannot find symbol
[javac] symbol : class ReaderInputStream
[javac] location: class org.xith3d.loaders.dae.whoola.collada.ColladaLoader
[javac] return load ( new ReaderInputStream ( reader ) );
[javac] ^
[javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/misc/JaxbCoder.java:50: cannot find symbol
[javac] symbol : class StringCoder
[javac] location: class org.xith3d.loaders.dae.whoola.misc.JaxbCoder
[javac] stringCoder = new StringCoder ( StringCoder.UTF_8 );
[javac] ^
[javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/dae/whoola/misc/JaxbCoder.java:50: cannot find symbol
[javac] symbol : variable StringCoder
[javac] location: class org.xith3d.loaders.dae.whoola.misc.JaxbCoder
[javac] stringCoder = new StringCoder ( StringCoder.UTF_8 );
[javac] ^
[javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/tds/kinostudios/ChunkChopper.java:613: cannot find symbol
[javac] symbol : method getTexture(java.lang.String)
[javac] location: class com.xith3d.loaders.texture.TextureLoader2
[javac] return TextureLoader2.getInstance().getTexture(textureImageName);
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 12 errors

alright, please let me know what i’m doing wrong. also i was wondering do your collada packages work okay with jaxb 2.0?

sorry one other question…i was wondering what file on the whoola cvs i should see for how you loaded the space shuttle. thanks!

OK, thanks. I committed some changes. Please do a CVS update and try again.

No JAXB 2.0 support yet but that is something I plan to do within the next few months.

http://earth.whoola.com:8080/javadoc/game/src-html/com/whoola/game/cyber/CyberSpace.html#line.200

I have not yet received an answer to this question. Are there any objections my creating an “ext” directory and putting the JAR files there?

I agree for the unique folder for jars.

thanks for the update…originally i got some errors along the lines of
package org.collada._2005._11.colladaschema does not exist
so i modified the build.xml file to include whoola_collada_jaxb.jar

my classpath setup now looks like:

still getting one error though, in a totally different package…

[javac] Compiling 143 source files to /Users/brimley/Code/Documentation/Java/xith-tk/classes
[javac] /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/loaders/tds/kinostudios/ChunkChopper.java:613: cannot find symbol
[javac] symbol : method getTexture(java.lang.String)
[javac] location: class com.xith3d.loaders.texture.TextureLoader2
[javac] return TextureLoader2.getInstance().getTexture(textureImageName);
[javac] ^
[javac] Note: /Users/brimley/Code/Documentation/Java/xith-tk/src/org/xith3d/ui/swingui/UIWindowFrame.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error

[quote="<MagicSpark.org [ BlueSky ]>,post:12,topic:27550"]
I agree for the unique folder for jars.
[/quote]
OK, I made the changes and updated the build.xml. Please do a CVS update on xith-tk and run the new build.

Yeah, now that I added the JAXB JAR files to the xith-tk build, I’m getting that too now. I suspect it is due to a recent change to TextureLoader2 but not sure. I need this to be fixed by the appropriate code owner(s) before I can proceed with integrating COLLADA into the xith-tk build.

Indeed it’s a recent change : the getTexture(String fileName) method didn’t exist until I added it. The previous one was getTexture(String fileName, boolean mipMap) my method just calls getTexture(fileName, true).

[quote="<MagicSpark.org [ BlueSky ]>,post:16,topic:27550"]
Indeed it’s a recent change : the getTexture(String fileName) method didn’t exist until I added it. The previous one was getTexture(String fileName, boolean mipMap) my method just calls getTexture(fileName, true).
[/quote]
OK, it took me almost an hour but I think I figured it out. Please update xith3d/libs/xith3d.jar. This will fix the xith-tk build.

I updated the xith-tk build.xml file in the process.

Please add .project to your .cvsignore file so it does not get committed. It messes up my checkout.

[quote]Please update xith3d/libs/xith3d.jar. This will fix the xith-tk build.
[/quote]
I just got a new tree of xith3d from cvs and that built cleanly. then got xith-tk, built that and got the same textureloader2 error.

I just got a new tree of xith3d from cvs and that built cleanly. then got xith-tk, built that and got the same textureloader2 error.
[/quote]
Yes, the xith-tk build will continue to be broken until the xith3d/libs/xith3d.jar file is updated to include the new release of TextureLoader2.

Is Amos Wenger (BlueSky) the person who would update this JAR file?