Hi Dani,
This code will give you all your labels: 
 
            Hashtable objs= new Hashtable();
            objs= scene.getNamedObjects();
            Set keys = objs.keySet();
            Iterator ite = keys.iterator();
            while (ite.hasNext()){
                Object obj3d = ite.next();
                String nameobj =(String) obj3d;
                ...
            }
 
Hope this help
 
Olivier.
 
 
----- Original Message -----
Sent: Friday, December 21, 2001 4:31 PM
Subject: Re: [JAVA3D] Object labels from a 3ds model - Can they be loaded ?

Dani,
I am using Starfire's Loader3DS too.  Once you load the scene, you can get the named objects using the following:

    Scene scene = loader.load(url);
    Hashtable children = scene.getNamedObjects();

Is this what you were looking for?
-Lisa

Daniel Moscoso wrote:

Hi all !!

I have been currently working with 3ds models, loading them with Starfire 3ds Loader. The models are usually composed of sub-objects. Opening them with a model browser (like 3D Exploration), the objects appear with a label.

Can these labels be imported from Java3D ? I have not found them in the BG's, TG's or Shape3D's created after loaded the models. This could be a good way to distinguish the sub-objects in a 3ds model.

Any suggestion ?

Thanks in advanced !!

Dani

--

Diese E-Mail enth�lt vertrauliche und/oder rechtlich gesch�tzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt�mlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

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