In my particular case, I have an aircraft model (f86sabre).

Each part of the sabre is it's own seperate 3ds model. (aerlon, wing root,
flaps, rudder, landing gear ect).

I load each of these parts into my viewer, and then add them to the scene to
create a working model of
the aircraft.  Each of these individual 3ds meshes use the same piece of
artwork.

I suppose that each is redownloading the texture file.

In the future, would it be possible to get/set a cache previous textures
option?

Fiasco
----- Original Message -----
From: John Wright <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 16, 2001 5:02 AM
Subject: Re: [JAVA3D] 3DS Loader Texture Error


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

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