The .mtl file must reside in the same directory as the .obj file.  You
should also use the call setBasePath().

I don't think the Lw3dLoader works with the current version of Lightwave.
It works fine with the examples included, but not with the models I've made.


----- Original Message -----
From: "Thomas Gick" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 06, 2002 8:48 AM
Subject: Re: [JAVA3D] does nobody knows an answer?


Hi,

no no, i can load the file auto.obj, but not the included
material file auto.mtl.

Thomas


Discussion list for Java 3D API <[EMAIL PROTECTED]> schrieb am
06.03.02:
> I think  that u have to replace line
> filename = "auto.obj"; with this line
> filename = ".\\auto.obj";
>
> Kostantinos Rekalidis
>
>
>
> -----Original Message-----
> From: Discussion list for Java 3D API
> [mailto:[EMAIL PROTECTED]]On Behalf Of Thomas Gick
> Sent: Tuesday, March 05, 2002 11:15 PM
> To: [EMAIL PROTECTED]
> Subject: [JAVA3D] does nobody knows an answer?
>
>
> Hi,
>
> does nobody knows an answer?
>
> Thomas
>
>
>
> Re:     [JAVA3D] Import Material Information out of a .mtl file
>
>
> Thomas Gick <[EMAIL PROTECTED]> wrote on 02.03.2002 20:12:18:
> >
> >Hi,
> >
> >I want to load a object with its material information into my java 3d
> program.
> >I use a wavefront .obj file. I have the referenced material .mtl file,
too.
> >But how can import a object with all the texture information in the java
3d
> programm?
> >Now my code looks like that:
> >
> >protected Node buildShape() {
> >
> >ObjectFile f = new ObjectFile();
> >Scene s = null;
> >filename = "auto.obj";
> >        try {
> >            s = f.load(filename);
> >        } catch (Exception e) {
> >            System.out.println("Objektdatei nicht gefunden!");
> >            System.exit(1);
> >        }
> >       return s.getSceneGroup();
> >}
> >
> >
> >Thank you beforehand,
> >
> >
> >                                 \\ll//
> >                                   @ @
> >                         --ooo------(_)----ooo--
> >
> >                        Thomas
> >
>
>===========================================================================
> >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".
>
>
>                                  \\ll//
>                                    @ @
>                          --ooo------(_)----ooo--
>
>                         Thomas
>
> This e-mail and any attachment is for authorised use by the intended
> recipient(s) only.  It may contain proprietary material, confidential
> information and/or be subject to legal
> privilege.  It should not be copied, disclosed to, retained or used by,
any
> other party.  If you are not an intended recipient then please promptly
> delete this e-mail and any
> attachment and all copies and inform the sender.  Thank you.
>
>
===========================================================================
> 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".


____________________________________________________________________________
__
Ohne Risiko spielend zum B�rsenguru werden. Haben Sie schon eine
Strategie? Spekulieren und tolle Preis gewinnen http://boersenspiel.web.de
=========================
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