Hi Katja,

If you are loading a 3D file, e.g., a VRML file, you can just add a switch node to the 
base node of the loaded scene graph.

josh

----------------------------------------------------
Joshua L. Richmond, BASc, MSc.  
Systems Engineering (R&D)

MD Robotics
9445 Airport Rd, Brampton, ON, Canada
(905) 790-2800 x4332
http://www.mdrobotics.ca
-----------------------------------------------------

>>> [EMAIL PROTECTED] 07/29/02 11:16AM >>>
Hi Georg,

thanks for your answer. I really appreciate it.

My problem is that I want the user to be able to open ANY j3d file e.g. some
downloaded or self programed virtual world. That means there is no switch
group in that file. All functionality has to build into my application (main
window). Unfortunately I can't come up with anything but recompilation (I don't
like that either) after I put in the spheres. Is there any other way? Is
there any possibility of changing parts of the scenegraph without recompilation
from the main application?

Regards,
Katja

> Dear Katja,
>
> > I want the user to see the picked path (points). If the user highlights
> an
> > point in the list, the point on the canvas needs to be "highlighted" too
> (and
> > the other way around). What is the best way of doing that? I can only
> come up
> > with the idea of putting little spheres in the scenegraph and
> recompiling
> > it.
>
> The sphere is a good idea, recompilation is not IMHO. Have the
> sphere (or more of them) in your scenegraph under a TransformGroup
> and that under a Switch from the beginning:
>
> + someGroup
> | |
> | + aSwitch
> |   |
> |   + tg1
> |   | |
> |   | + sphere1
> |   |
> |   + tg2
> |   | |
> |   | + sphere2
> .   .
>
> That way you can transform each indication sphere/object and
> switch it's visibility on and off at will.
>
> > But that still does not solve the problem of showing on the canvas which
> > point is marked in the list.
>
> JList has an associated ListSelectionModel that will notify
> ListSelectionListeners about selection changes. Implement your
> own ListSelectionListener, that gets the selected value(s),
> transforms the indication sphere(s) accordingly and switches
> visibility on; add that to your JList/ListSelectionModel.
>
> Hope this is what you asked for, regards
>
> Georg
>  ___   ___
> | + | |__    Georg Rehfeld      Woltmanstr. 12     20097 Hamburg
> |_|_\ |___   [EMAIL PROTECTED]           +49 (40) 23 53 27 10
>
>
===========================================================================
> 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".
>

--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net 

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

BEGIN:VCARD
VERSION:2.1
X-GWTYPE:USER
FN:Josh Richmond
TEL;WORK:4332
ORG:MDRobotics Ltd.;Systems Engineering #211
EMAIL;WORK;PREF;NGW:[EMAIL PROTECTED]
N:Richmond;Josh
TITLE:BASc., MSc.
ADR;INTL;WORK;PARCEL;POSTAL:;Mailstop 23;9445 Airport Rd;Brampton;ON;L6S 4J3;Canada
LABEL;INTL;WORK;PARCEL;POSTAL;ENCODING=QUOTED-PRINTABLE:Josh Richmond=0A=
Mailstop 23=0A=
9445 Airport Rd=0A=
Brampton, ON  L6S 4J3=0A=
Canada
LABEL;DOM;WORK;PARCEL;POSTAL;ENCODING=QUOTED-PRINTABLE:Josh Richmond=0A=
Mailstop 23=0A=
9445 Airport Rd=0A=
Brampton, ON  L6S 4J3
END:VCARD

Reply via email to