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/MapBuilder.jar! > /mapFiles/MapTiles/Office/objects/ > Error loading Image > jar:file:/C:/Documents%20and%20Settings/nbl8/Desktop/app/MapBuilder.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".