Hehe

The only way to recognize that would be to check that all the polys have 4 points.
Well, you know, how the COLLADA files are structured (I don't). IIRC in the OBJ files there are header information about the vertex count for each polygon. I just thought, the COLLADA files might contain such information, too.
Yep, example with the "polylist" element :
<mesh>
<source id="position" />
<source id="normal" />
<vertices id="verts">
<input semantic="POSITION" source="#position"/>
</vertices>
<polylist count="3" material="#Bricks">
<input semantic="VERTEX" source="#verts" offset="0" />
<input semantic="NORMAL" source="#normal" offset="1" />
<vcount>4 4 3</vcount>
<p>0 0 2 1 3 2 1 3 4 4 6 5 7 6 5 7 8 8 10 9 9 10</p>
</polylist>
</mesh>
Here we should just check that vcount contains only the number 4.
With the "polygons" element, however, it's a bit more complicated :
<mesh>
<source id="position" />
<source id="normal" />
<vertices id="verts">
<input semantic="POSITION" source="#position"/>
</vertices>
<polygons count="1" material="#Bricks">
<input semantic="VERTEX" source="#verts" offset="0"/>
<input semantic="NORMAL" source="#normal" offset="1"/>
<p>0 0 2 1 3 2 1 3</p>
</polygons>
</mesh>
Here we have to divide the number of values in each "p" element (which corresponds to one polygon) by the biggest offset + 1. Example here we have 8 values in a single "p" element. The biggest offset is 1. 8 / 2 = 4. So yes sir, it's a quad.
Is there a way to encrypt resources(tex,models,etc) in some way?
It would be a pleasure to integrate some encryption/decryption in Xith3D itself. Which algorithm were you using with your 2D games ? We could add it easily, I think.
What are the URL's to the repositories of xpal, joode, hial, and collada?
XPAL has parts both in Xith3D (abstract part) and JOODE (concrete part).
COLLADA Loader has code both in Jagatoo (abstract part) and Xith3D (concrete part). The code provided by the COLLADA designers is of no use to us, because it's a C++ API, and we're Java devs. I had to build a Java API from the
COLLADA spec with
JiBX.
URL for JOODE :
https://joode.svn.sourceforge.net/svnroot/joode joode
URL for HIAL :
https://hial.svn.sourceforge.net/svnroot/hial hial
URL for JaGaToo :
https://jagatoo.svn.sourceforge.net/svnroot/jagatoo jagatoo
Note that jagatoo and hial have built jars in the Xith3D repository, in the "third-party" directory.