Hi, Enrique,
> fc2.addChild(lBehavior);
like you write, the Behavior is add to a BranchGroup, then it will report
information from that root, if there are many BranchGroups, the results will
be confusing. now, for my project due this Friday, I write it ugly as
letting each Behavior instance report its own information to a place in the
main application, but I think it would be nice to have only one Behavior
instance for all BranchGroups.

I'm glad to know your interest for the text labels, I test it as part of my
application, and the code is too cumbersome, I'll sent you a smaller one,
after I submit my project. well, this is student life.

xiaohua

----- Original Message -----
From: "Enrique Dumas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 14, 2002 12:34 PM
Subject: Re: [JAVA3D] universal behavior


> Did you try this sort of things :
>
> Behavior lBehavior = new MyBehavior();
> lBehavior.setSchedulingBounds(new BoundingSphere(new
> Point3d(),100.0));
> BranchGroup fc2 = new BranchGroup();
> fc2.addChild(lBehavior);
> locale.addBranchGraph(fc2);
>
>
> __________________________________________________
>
>
> --- xhsun <[EMAIL PROTECTED]> wrote:
> > Hi, Could anyone help me out with my "behavior"
> > problem? In my application,
> > I need to add new scenes to the loacle and remove
> > some old ones from it
> > frequently. I added to each scene the same series of
> > behaviors when it was
> > created. Then, when I want to execute one kind of
> > behavior, those instances
> > in each Branchgroup will be woken up, and return
> > different results.
> > Actually, what I need is only one set of universal
> > behaviors which can
> > execute on all the scenes as a whole. Is there a way
> > and an universal place
> > I can add these behaviors to?
> >
> > Thanks in advance.
> >
> > xiaohua
> >
> >
>
===========================================================================
> > 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".
>
>
> __________________________________________________
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/
>
>
===========================================================================
> 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".

Reply via email to