On Tue, 26 Jun 2001, Anders wrote:

> I'm going to create a small 2D/3D CAD tool using Java3D. One thing that
> a user should be able to do with the tool is to draw 2D geometries
> (rectangle, ellipse, etc.) using the mouse. My idea is that the user
> should be able to rotate the 3D scene to an arbitrary view (in order to
> get a 2D work plane), then draw 2D geomtries using the mouse, having the
> locked 3D view as background. I have tested a couple ways of doing this
> but no way that looks good or is fast enough. Maybe someone can give me
> some help here?

So you are going to lock the scene before letting someone draw? Are you
wanting to have them start moving it again and have the drawn geometries
move with the rotation or are you wanting to have them stay in front of
the camera?

If you are locking the scene it doesn't seem like you need to be drawing
onto the card anyhow. You could just get an image of the canvas and draw
over that. It would save having to transfer stuff to the card. (I have
been learning about the costs of transfering stuff to the card over the
last couple days.)

Could you maybe give a more in depth explanation of the behavior that you
are wanting with user interaction? The overlay stuff that David Yazel
posted a couple days ago might be useful. That is what I have been playing
with. I wrote an ant (http://jakarta.apache.org/ant) buildfile for it so I
have javadocs and jars now. I will put a page together and post it later
on today.

Will Holcomb

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