The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
Re: Multiselection
[Originally posted by author]

I ran out of time when I was doing the book and never implemented the lasso
selection.

Although I haven't tried it, you might want to experiment with one of the
picking shapes, specifically PickBounds. Use a BoundingBox or
BoundingPolytope that is the same size as your lasso, and cast it into the
scene from the eye or, like in the book, from the floor plane. Theoretically,
any objects in the rectangular picking volume would be multi-picked.

Good luck
--jon

> Hi all,
>
> currently I'm implementing a 3D view of a machine. What I want to do is a
> multiselection of different devices. Therefore I set the scene into x-y plane
> with parallel projection mode. What I want to do now is a lasso selection
> (rectangle) on multiple devices. A 2d rectangle (or 3D box) should be
> displayed when dragging the mouse. I have absolutly no idea how to solve
> this in Java3D.
> There's a nice example in the book on p.182/183, the lasso example but
> there seems to be no source code.
>
> Regards
>
> Heiko
import-bot (20211) [Avatar] Offline
#2
[Originally posted by jaberg]

Hi all,

currently I'm implementing a 3D view of a machine. What I want to do is a
multiselection of different devices. Therefore I set the scene into x-y plane
with parallel projection mode. What I want to do now is a lasso selection
(rectangle) on multiple devices. A 2d rectangle (or 3D box) should be
displayed when dragging the mouse. I have absolutly no idea how to solve
this in Java3D.
There's a nice example in the book on p.182/183, the lasso example but
there seems to be no source code.

Regards

Heiko