Java3d vrml files and TimeSensors
Hello.
I'm trying to load a vrml file to use with java3d.
I'm using the org.jdesktop.j3d.loaders.vrml97.VrmlLoader;
Now when i load the vrml and put it into the universe i see the object but it is not animated.
The timesensor is set to start immeditely and works fine in another viewer.
so i guess the file is ok.
I have put the TimeSensor node in such way that it is the first node in the file so
if i call
VrmlScene vs = (VrmlScene)scene;
BaseNode[] bnodes = vs.getObjects();
System.out.println(bnodes[0].getType());
i get TimeSensor as the output.
but even if i get a reference to this object i can't start the animation since it isn't a time sensor object.
Now the questions are:
How can I load a vrml file in java3d and start it's animation.
Should I use another loader?
We have been searching arround google for an answer 2 days now. So please don't say try google :)
Thanks

