On Saturday 16 February 2002 17:26, Justin Couch wrote:
> Andreas Bauer wrote:
> > I am using the Xj3d loader to load this. In the Engine model is a
> > TransformGroup named SHELL. Now I want to load the engine, get the named
> > group (the TransformGroup) and add the shell Model to this. However the
> > loader doesn't give me any named Objects. What I am doing wrong?
>
> I'm assuming that this is the current Xj3d and now the old code floating
> around with J3DFly. This seems rather odd. Can you send me the test file
> and test Java code that you are using so we can check this out. The
> sooner the better because we're going to be wrapping up the M4 release
> today.
I found the error:
The loader say he couldn't find Class BranchGroup, and so can't load the
file, as the complete Scene is nside a BranchGroup. I replayed the
BranchGroup with a Transform and the file was loaded well.
I attached both files. But why is the class BranchGroup not found?
--
Andreas Bauer
[EMAIL PROTECTED]
#VRML V2.0 utf8
Transform {
translation 0 0 0
children [
Transform {
scale 1.0 0.1 1.0
children [
Shape {
geometry Box {
}
}
]
}
DEF SHELL Transform {
translation 0.0 2.0 0.0
}
]
}
#VRML V2.0 utf8
BranchGroup {
children [
Transform {
scale 1.0 0.1 1.0
children [
Shape {
geometry Box {
}
}
]
}
DEF SHELLTransform {
translation 0.0 1.0 0.0
}
]
}