The loaders should really be able to accept model files specs as resource
strings. For example, the String path to your model would be something like
"com/myco/myproject/models/model1.mdl"
Then, whatever JAR holds the file should be included in the archive
parameter, and the class loader can be used to find the file. Not quite
sure why everybody writes loaders which just use File and URL specs...
resource specs are much easier with regard to deployment. My personal 3DS
loader takes resource specs, and then textures are based off the original
model file.
Have other authors of loaders considered this? Pretty easy to implement...
-Lee
> -----Original Message-----
> From: Higginbotham, David [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 13, 2001 11:24 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JAVA3D] Loaders in applets
>
>
> Just a guess...
> I had a similar problem with the .obj file loader until I
> realized that the
> texture loader wasn't using the current directory to look for
> the specified
> texture file. Try specifying the path of your vrml file;
> e.g., VrmlLoad
> .\vrml_file.wrl The texture loader might use that path to look for the
> corresponding texture.
>
> -----Original Message-----
> From: Nicolas Teissier [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 13, 2001 11:32 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JAVA3D] Loaders in applets
>
>
> I have a question to ask you.
> I use the NCSA loader to load a vrml file with texture but,
> when the file is
> loading, i haven' t more texture.
>
> have you the same problem???
> ----- Original Message -----
> From: "Fergus Murray" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, September 13, 2001 2:22 PM
> Subject: [JAVA3D] Loaders in applets
>
>
> >
> >
> >
> >
> > Apologies if this is a stupid question, but how do you use
> a loader in an
> > applet? I'm trying to convert my application using the
> NCSA loaders to an
> > applet, and I get
> >
> > >>
> > java.lang.NoClassDefFoundError: ncsa/j3d/loaders/ModelLoader
> > at soccer.client.LoadedModel.<init>(LoadedModel.java:55)
> > at
> soccer.client.FieldJ3D.constructContentBranch(FieldJ3D.java:205)
> > at soccer.client.FieldJ3D.<init>(FieldJ3D.java:154)
> > at soccer.client.SoccerMaster.init(SoccerMaster.java:621)
> > at sun.applet.AppletPanel.run(Unknown Source)
> > at java.lang.Thread.run(Unknown Source)
> > <<
> >
> > Do I need to make a .jar file including the relevant NCSA
> files? Will
> that
> > even work? Is there a simpler way?
> >
> > I haven't been able to copy any NCSA files - or indeed
> anything else -
> into
> > D:\Program Files\JavaSoft\JRE\1.3.1\lib\ext - it says
> 'Access denied,
> > source file may be in use,' whatever the source file is. So that
> > installation of the JRE doesn't have the NCSA files - if it
> did, would
> that
> > be likely to make it work? Does anyone have any clue why
> it's not letting
> > me change the ext directory?
> >
> > Thanks a lot
> >
> > - Fergus
> >
> > http://fergusmurray.members.beeb.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".
> >
> >
>
> ==============================================================
> =============
> 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".
>
===========================================================================
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".