Print at Dec 17, 2025, 11:19:25 AM
Posted by alied at Nov 23, 2009, 9:36:17 PM
External Textures Catalog
Another fine feature would be to have an external textures catalog, like the furniture catalog. It is not too difficult to implement. Again, had I have the time, I'll send it to Emanuel.

Posted by alied at Dec 23, 2009, 4:54:20 PM
Re: External Textures Catalog
As I promessed, this files include support for external Texture Catalogs.(read the code comments)
Also, in File UserPreferences there is a fix so Vista and next versions use the APPDATA file for per user dada. As Puybaret pointed me, this can lead to uncompatibilities with previous version, so use it at your own risk.
----------------------------------------
Attachment ExternalTextureCatalog.zip (9976 bytes) (Download count: 2660) (FileUserPreferences.java and DefaultTextureCatalog.java)


Posted by hansmex at Dec 27, 2009, 7:51:35 PM
Re: External Textures Catalog
Sounds nice, but how do I use this?

Hans
----------------------------------------
Hans

new website - under constuction
hansdirkse.info

Posted by alied at Dec 27, 2009, 9:28:17 PM
Re: External Textures Catalog
copy your texture catalog to the same directory where furniture catalogs lie.
The texture catalog is mostly the same as the furniture catalog: A jar (zip) file where there is a PluginTexturesCatalog.properties (and its localized versions) with the same structure as the built-in texture catalog:

name#1=Cherry
category#1=Doors
image#1=/Texturas/Muebles/cherry.jpg
width#1=64
height#1=64


in fact there can be a Texture catalog and a furniture catalog on the same sh3f.

Posted by hansmex at Dec 28, 2009, 8:27:24 PM
Re: External Textures Catalog
Newbie:

Okay, I use the Linus variety of SH3D.
I unzipped the file into .eteks/sweethome3d/furniture
and there are two *.java files there now.
How do I proceed? Maybe you can help me further?

Muchas gracias por su ayuda :-)

Hans
----------------------------------------
Hans

new website - under constuction
hansdirkse.info

Posted by alied at Dec 28, 2009, 9:24:57 PM
Re: External Textures Catalog
well, it´s not that easy.
I assumed you had the source code (sorry)
you need to have the source code, overwrite these files and build the jar. I'll publish a FileUserPreferences.java without the Vista fix to isolate the external texture feature.

Also I'll publish this enhancement on the developpers forum.

Posted by hansmex at Dec 29, 2009, 1:44:15 AM
Re: External Textures Catalog
Well, that sounds as something far too complicated for me :-)

But I have lots of imported textures and a tool that makes it easier to deal with them, would be very nice.

Ciao, Hans
----------------------------------------
Hans

new website - under constuction
hansdirkse.info

Posted by alied at Dec 29, 2009, 9:18:05 PM
Re: External Textures Catalog
I posted it on the developpers forum. Maybe someone can build and share the jar so others can use it.
Unfortunatelly I'm kinda short of time and I can't do it

Posted by Puybaret at Feb 22, 2010, 11:27:06 PM
Re: External Textures Catalog
alied, I added support for SH3T files in the version 2.3 Beta.
I changed the DefaultTextureCatalog class and other GUI classes.
Thank you for your suggestions.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator