hi everyone, if got this code-snip defining a viewbranch. but the error is that the ViewPlatform is not attached to the BranchGroup. everytime i try to attach it, i get an MultipleParentException. does anyone know how to attach it and where it is attached right now
 
public class ViewBranch extends BranchGroup {
  :
  :
  public ViewBranch(Canvas3D canvas) {
    platform = new ViewPlatform();
    phyBody = new PhysicalBody();
    phyEnv = new PhysicalEnvironment();
 
    view = new View();
    view.setPhysicalBody(phyBody);
    view.setPhysicalEnvironment(phyEnv);
    view.setBackClipDistance(BACK_CLIP_DISTANCE);
    view.setFrontClipDistance(FRONT_CLIP_DISTANCE);
    view.attachViewPlatform(platform);
    view.addCanvas3D(canvas);
    :
    :
  }
}
 
 
thanx in advance
--
Timo Ropinski
[EMAIL PROTECTED]  Institut f�r Informatik
Tel.: (+49) 251 - 83 33753                  Westfaelische Wilhelms-Universitaet
Fax: (+49) 251 - 83 33755                  Einsteinstr. 62, 48149 Muenster, Germany

Reply via email to