Fiasco,
Each texture should be loaded only ONCE. If you turn the detail
reporting on high enough you should see it loading each texture so
unless you built your model such that it requests the same file twice it
should not double load it. If on the other hand you loaded a second
model then there is no memory of previously loaded textures.
- John Wright
Starfire Research
Fiasco wrote:
>
> Thanks John, works like a charm.
>
> One more question.
>
> I have a model a model I am viewing consisting of several 3ds meshes. Each
> of these meshes
> uses the same texture file. When I load all the meshes does each mesh have
> to re-retrieve that same texture
> image over the internet, or does the starfire loader cache the previously
> downloaded texture image so
> that any other meshes referencing it can use it?
>
> Fiasco
>
> ----- Original Message -----
> From: John Wright <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, March 15, 2001 3:56 PM
> Subject: Re: [JAVA3D] 3DS Loader Texture Error
>
> > Fiasco,
> >
> > The call to setURLBase() should be passed a String not a URL (you have
> > it typed as setBaseUrl() - I'm assuming that is just a typo in your
> > e-mail).
> >
> > As for more informative error messages {grin}... sure... get Sun to
> > provide more informative errors (*joke*). But seriously, ok, I'll look
> > at the code to see if I can have it spit out some better error messages.
> >
> > - John Wright
> > Starfire Research
> >
> > Fiasco wrote:
> > >
> > > Here's my code
> > >
> > > try {
> > > Loader3DS modelLoader = new Loader3DS();
> > > modelLoader.setDetail(2);
> > > modelLoader.setBaseUrl( new
> > > URL("http://localhost/jbuilder/TargetWare/f86sabre/" ) );
> > > scene = modelLoader.load( new
> > > RL( "http://localhost/jbuilder/TargetWare/f86sabre/" +
> geometryfilename ) );
> > > } catch () {}
> > >
> > > When I run it I get a very unhelpfull
> > > Malformed URL trying to make texture URL
> > > error message. Would be nice if this error message included the URL
> that
> > > was trying to be created.
> > >
> > > Is it something wrong in my code above?
> > >
> > > Fiasco
> > >
> > >
> ===========================================================================
> > > 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".