External Textures Catalog

This topic has been viewed 36213 times and has 8 replies
Thread status: Active
Features you would like to see [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
User avatar
alied
Posts: 40
Joined: Tue Sep 08, 2009 9:53 pm
Country: Rosario, Santa Fe, Argentina

External Textures Catalog

Post by alied »

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.
User avatar
alied
Posts: 40
Joined: Tue Sep 08, 2009 9:53 pm
Country: Rosario, Santa Fe, Argentina

Re: External Textures Catalog

Post by alied »

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.
Attachments
ExternalTextureCatalog.zip
(9.74 KiB) Downloaded 3790 times
User avatar
hansmex
Posts: 4027
Joined: Sat Sep 26, 2009 11:36 am
Country: Netherlands

Re: External Textures Catalog

Post by hansmex »

Sounds nice, but how do I use this?

Hans
Hans

new website - under constuction
hansdirkse.info
User avatar
alied
Posts: 40
Joined: Tue Sep 08, 2009 9:53 pm
Country: Rosario, Santa Fe, Argentina

Re: External Textures Catalog

Post by alied »

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:

Code: Select all

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.
User avatar
hansmex
Posts: 4027
Joined: Sat Sep 26, 2009 11:36 am
Country: Netherlands

Re: External Textures Catalog

Post by hansmex »

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
User avatar
alied
Posts: 40
Joined: Tue Sep 08, 2009 9:53 pm
Country: Rosario, Santa Fe, Argentina

Re: External Textures Catalog

Post by alied »

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.
User avatar
hansmex
Posts: 4027
Joined: Sat Sep 26, 2009 11:36 am
Country: Netherlands

Re: External Textures Catalog

Post by hansmex »

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
User avatar
alied
Posts: 40
Joined: Tue Sep 08, 2009 9:53 pm
Country: Rosario, Santa Fe, Argentina

Re: External Textures Catalog

Post by alied »

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
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: External Textures Catalog

Post by Puybaret »

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
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 2 guests