Thanks for your advice.
I probably didn't describe my problem clearly. Each individual tree has
distinct property and is shown in different color scheme according to
certain characteristics, such as species, diameter, etc.
For instance, when user clicks to see trees in species, the same type of
trees shared the color set for that species. when user clicks to see trees
in diameters, the trees are shown in different colors according to their
diameter ranges.
Lan
At 12:29 PM 5/16/2001 -0400, you wrote:
>You might want to look at the SharedGroup object in the Java3D API.
>You could have a collection of SharedGroups, one for each tree type, and
>use these to create your forest. The advantage here is that you get to
>reuse the
>Shape3D for each tree by sharing a single instance, instead of creating a
>new
>Shape3D for each tree. Additionally, if you modify a SharedGroup, all the
>objects
>that link to it will reflect the changes made, so you could change the
>colors or properties
>of a particular tree contained within a SharedGroup and all trees using this
>SharedGroup
>would reflect the color change.
>
>-Pedro
>
>----- Original Message -----
>From: "Lan Wu-Cavener" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, May 16, 2001 10:50 AM
>Subject: [JAVA3D] Memory or performance
>
>
> > Hi, all:
> >
> > I am working on a Virtual Forest Java3D system for forestry management. I
> > have a rather strategic question. Since the system will represent huge
> > numbers of trees for thousands of acres of forest, currently the tree 3D
> > shapes are generated on fly. The system should feature choices of showing
> > the trees in different color according to different properties that user
> > interested without changing the current scene. My question is that what is
> > the best way to create trees in terms of Java3D programming and keep track
> > each individual tree information in order to have a good performance? I am
> > new to Java3D. I would like to have some advice from you and to know
> > what choices that I have.
> >
> > My thoughts are either I can use an array to store all the tree shapes.
> > Whenever I need to assign different color to trees, I go back to the array
> > and set the color(will I have memory burn here?), or I create different
> > BranchGroups with different color set for the trees, and rest of the scene
> > remains the same. I don't know how to switch among the branchGroups (is it
> > possible and will the performance be acceptable?)
> >
> > Thank you in advance for any suggestion!
> > Lan Wu-Cavener
> >
> >
>===========================================================================
> > 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".