Ok, the whole system functions now, but there is a serious memory issue.
The program ready for webstart distribution (using resources) leaves a
footprint of over 150mb in memory,
My original program, which is identical apart from loading the textures
in the traditional (non-resource) way only requires about 50mb.
Has anyone got any ideas regarding this, we are fairly confident that
the only difference between the two programs is that one uses setURLBase
(and fetches the textures from a jar) and the other uses setTexturePath
(and fetches the textures from a folder).
Any help would be much appreciated...we are hoping this is not some kind
of starfire loader bug!

Thanks
 

>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
>Sent: 23 January 2004 13:12
>To: [EMAIL PROTECTED]
>Subject: Re: [JAVA3D] Starfire Loader
>
>Hm, you refuse to lookup the working code samples, so I did it for you:
>
>
>
>public FiledObjectLoader( URL url )
>{
>        mURL = url;
>        mLoader3DS.setLogging(false); // turns on logging to a 
>disk file "log3ds.txt"
>        mLoader3DS.setDetail(0); // sets the level of detail 
>to be logged
>        mLoader3DS.setTextureLightingOn(); // turns on 
>modulate mode for textures (lighting)
>
>
>        String urlBase = url.toExternalForm();
>        urlBase = urlBase.substring( 0, urlBase.lastIndexOf( 
>'/' ) + 1 );
>        mLoader3DS.setURLBase( urlBase ); }
>
>
>Ben Logan <[EMAIL PROTECTED]> schrieb am 23.01.2004, 11:38:32:
>> Hi
>> Thanks for the help, much appreciated! There is still a problem 
>> though, with textures.
>> Here is the code;
>>
>> URL url1 = cl.getResource(fileName);
>>
>> int index = url1.toString().lastIndexOf("/"); String temp = 
>> url1.toString().substring(0, index+1);
>>
>> Inspector3DS loaded3DS = new Inspector3DS(url1);
>>
>> System.out.println("THE URL BASE? " + temp); 
>> loaded3DS.setURLBase(temp);
>>
>> What I have done is consistent with your quick answer where 
>my texture 
>> files would be in the whatever folder. But I am getting the 
>following 
>> message on the console;
>>
>> THE URL BASE?
>> 
>jar:file:/C:/Documents%20and%20Settings/nbl8/Desktop/app/MapBui
lder.jar!
>> /mapFiles/MapTiles/Office/objects/
>> Error loading Image
>> 
>jar:file:/C:/Documents%20and%20Settings/nbl8/Desktop/app/MapBui
lder.jar!
>> /mapFiles/MapTiles/Office/objects/ceiling .jpg
>>
>
>===============================================================
>============
>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