Joerg, FYI. The bug is in BranchGroup under SharedGroup. Due to this bug, the use of BranchGroup under a SharedGroup should only be so if it is necessary, such as the need to detach/attach dynamically. In your test program, you've created a n-level deep sub-graph, with a BranchGroup at each begining level :
/** * Create subgraph of a certain depth. */ static int numNodesCreated = 0; Node createDeepSubGraph( int depth ) { BranchGroup g = new BranchGroup(); // If possible replace the above line with : // Group g = new Group(); // as a workaround. ..... deleted code ..... } and the final sub-graph is added to a SharedGroup. Hence creating a scene-graph consists of a SharedGroup with n BranchGroups, in a skewed arrangement; a possibly worst case for this bug. :-) The workaround to this bug is not to use BranchGroup under SharedGroup if possible. If BranchGroup is really needed under SharedGroup, use flat and shallow sub-graph rather than deep and skewed sub-graph. thanks, Chien Yang Java 3D Team. > Date: Mon, 08 Jul 2002 12:01:09 -0700 > From: Chien Yang <[EMAIL PROTECTED]> > Subject: Re: [JAVA3D] Trouble with Link/SharedGroup - is it a Java3D bug?? > To: [EMAIL PROTECTED] > MIME-version: 1.0 > Content-transfer-encoding: 7BIT > Content-MD5: 0EwVuxPPWB478A3irSZANg== > Delivered-to: [EMAIL PROTECTED] > > Joerg, > Thanks for your bug report. It is a regression bug in Java 3D 1.3 > beta1 and 2. Too bad we were unable to uncover this bug earlier, so it > will *not be* in the coming Java 3D 1.3 FCS release. We will try to > understand the cause of this bug. We'll post a workaround to this bug on > the alias, if we found one. > > thanks, > > - Chien Yang. > Java 3D Team. > > > > Date: Sat, 06 Jul 2002 11:19:53 +0200 > > From: Joerg 'Herkules' Plewe <[EMAIL PROTECTED]> > > Subject: Re: [JAVA3D] Trouble with Link/SharedGroup - is it a Java3D bug?? > > To: [EMAIL PROTECTED] > > MIME-version: 1.0 > > X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 > > Content-transfer-encoding: 7bit > > X-Priority: 3 > > X-MSMail-priority: Normal > > Delivered-to: [EMAIL PROTECTED] > > > > Hm, may a SUN guy should comment on the topic? SharedGroups are a powerful > > concept - if they work! > > > > ? Is it a bug, then will it be fixed? > > ? Is it a misunderstanding, then how should they be used? > > ? If non of the former, it should be documented that Links/SharedGroups > > should be avoided bc. they don't work and replaced by cloneTree() whereever > > possible? > > > > There are some constructs that are hard to do w/o SharedGroup, e.g. if you > > wanted to spin all trees on a terrain synchronously by just updating a > > single TG. > > > > Currently this can be done for a tree typically is a trivial sub-scenegraph. > > But dare the tree is a fractally computed one, that consists of many Nodes > > itself! See the effect from my sample.... > > > > - J > > > > ----- Original Message ----- > > From: "Lan Wu-Cavener" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Friday, July 05, 2002 9:05 PM > > Subject: Re: [JAVA3D] Trouble with Link/SharedGroup - is it a Java3D bug?? > > > > > > > Yes, memory usage is huge, performance is poor compared to what I am using > > > (Geometry By-Reference) now. I only turned the visibility on or off to > > > avoid detaching the BranchGroup( another performance drop). But has never > > > had geometry being altered or mix up. I don't use beta version either. > > > > > > > > > At 01:54 PM 7/5/2002 -0500, you wrote: > > > > > > >Increased memory usage, poorer than expected performance, renderbin > > > >crashes (stopped when sharedgroups/links were removed), and geometry > > > >seemingly getting altered and mixed up (a leg on one of my characters > > > >suddenly replaced by a tree). That sort of thing. That was with 1.2 > > > >though... haven't tried with the most recent beta. > > > > > > > > =========================================================================== > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > > of the message "signoff JAVA3D-INTEREST". For general help, send email to > > [EMAIL PROTECTED] and include in the body of the message "help". > > =========================================================================== > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff JAVA3D-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".