Thanks!

Some times I think my brain gets turned off...

After I sent the note, I realized that I should have looked in the
Java 3D documentation to see if there is a PointArray.  I have used
LineArray many times is the past, so I was stuck in thinking about LineArray
only.  I was also in a big hurry to go to an appointment, so I didn't have
time to look it up until much later.  When I did, I found the PointArray,
tried it and it works just fine.

Sorry to take up your time.

Now, how do you make each point independently "Pickable"?
If I have a point at each integer (x, y, z) for the cube 10x10x10
(so 1,000 points) how do I make each one pickable without a big
performance problem?  I did 1 PointArray with all these points, and
rotations of view orientation performance was still O.K.  I am
concerned that to make each point pickable I'll have to define 1,000
individual Shape3D's, add these 1,000 Shape3D's to may branchgroup,
which the Java 3D engine will have to search through every time I click on
a point.  So I think the performance will go way down.  Now there will
be 1,000 things in the branch group where before there was only the
1 pointarray.  Rotation of the scene may be too slow.

Any thoughts on how to keep the performance good but allow pickable
of many many objects/points?

Bob Gray

-----Original Message-----
From: Christopher Collins [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 12, 2000 3:32 PM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] Simplest dot.


Hi Bob!

You can display dots using a PointArray geometry.  With this you can have as
many or few dots as you want.  You can also change the size or color by
setting the appearance of your point array with setAppearance( myAppearance
= new Appearance ()) then changing the PointAttributes with
myAppearance.setPointAttributes( new PointAttributes(...)).

Good luck,

Chris

-----Original Message-----
From: Bob Gray [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 12, 2000 4:14 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Simplest dot.


What's the best way to display a point in Java 3D.

I think a small sphere would be far more complex than
I am looking for.  I just want to put "dots" all over the place that
look like "dots" from any orientation.  And I don't want the
number of dots to degrade performance.  So I am looking for a
very "simple" dot.

Closest I've come to what I want is to make a Geometry
with only 2 vertices very close to each other and to
render it with a Line type appearance.

Is there some way to specify just one vertex?  It throws an
error when I try to specify just one vertex in the geomtry.

Bob Gray

===========================================================================
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".

Reply via email to