Hi,
I've two problems trying to load collada models (i'm using the fantassin_cape.dae from xith-tk : SVN updated a month ago)
Here comes the code:
package main;
import java.io.IOException;
import org.xith3d.base.Xith3DEnvironment;
import org.xith3d.loaders.models.Model;
import org.xith3d.loaders.models.impl.dae.DaeLoader;
import org.xith3d.loaders.models.impl.dae.DaeModel;
import org.xith3d.loop.RenderLoop;
import org.xith3d.render.Canvas3D;
import org.xith3d.render.Canvas3DFactory;
import org.xith3d.render.config.OpenGLLayer;
import org.xith3d.scenegraph.BranchGroup;
public class TestScene extends RenderLoop
{
public Canvas3D canvas;
public Xith3DEnvironment env;
public TestScene()
{
super( 120f );
this.env = new Xith3DEnvironment( this );
this.canvas = Canvas3DFactory.createWindowed(OpenGLLayer.LWJGL, 640, 480, "TestScene");
this.env.addCanvas( this.canvas );
DaeLoader Mloader = new DaeLoader();
DaeModel mod = null;
try
{
mod = (DaeModel) Mloader.loadModel("fantassin_cape.dae");
}
catch (IOException e) {e.printStackTrace();}
catch (Exception e) {e.printStackTrace();}
//Model model1 = mod.getSharedInstance();
BranchGroup grp = new BranchGroup(mod);
env.addParallelBranch(grp);
this.begin();
}
}
This little sample works but :
1st problemIf I replace :
this.canvas = Canvas3DFactory.createWindowed(OpenGLLayer.LWJGL, 640, 480, "TestScene");
by
this.canvas = Canvas3DFactory.createWindowed(640, 480, "TestScene");
(I guess it leaves to the engine the choice of the renderer)
It gives me :
guillaume@rincevent:~/Bureau/TAF/TEST$ ./testlauncher.sh
lib/libext/
do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly.
Try adjusting the vblank_mode configuration parameter.
java: tnl/t_draw.c:232: bind_inputs: Assertion `inputs->BufferObj->Pointer' failed.
Aborted
2nd ProblemIf I replace :
//Model model1 = mod.getSharedInstance();
BranchGroup grp = new BranchGroup(mod);
by
Model model1 = mod.getSharedInstance();
BranchGroup grp = new BranchGroup(model1);
(Useful to display more than one time a single object)
I get :
guillaume@rincevent:~/Bureau/TAF/TEST$ ./testlauncher.sh
do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly.
Try adjusting the vblank_mode configuration parameter.
Exception in thread "main" java.lang.StackOverflowError
at org.xith3d.loaders.models.impl.dae.DaeModel.getSharedInstance(DaeModel.java:109)
at org.xith3d.loaders.models.impl.dae.DaeModel.getSharedInstance(DaeModel.java:109)
at org.xith3d.loaders.models.impl.dae.DaeModel.getSharedInstance(DaeModel.java:109)
And it get in a infinite loop

Is there a problem in my code ?
Maybe the launcher ?
#!/bin/sh
LIB=lib
#JAVA="java -agentlib:yjpagent"
JAVA=java
$JAVA -Djava.library.path=$LIB/libext/ -Xms64m -Xmx128m -classpath .:bin/:$LIB/gluegen-rt.jar:$LIB/jogl.jar:$LIB/lwjgl.jar:$LIB/joal.jar:$LIB/openmali.jar:$LIB/hial.jar:$LIB/jagatoo.jar:$LIB/joode.jar:$LIB/jops.jar:$LIB/xith3d.jar:$LIB/jinput.jar main/MainEntry
Thanks