Russia
Joined: Jan 9, 2010
Post Count: 13
Status:
Offline
Utility for creating SH3F libraries
I've created a simple program, that allows user to make SH3F file from a folder with models. It sorts model automatically, creates PluginFurnitureCatalog.properties file and compresses it all to ZIP archive with SH3F file extension. Now it is Russian lang only, but soon I will make multilanguage support and translate it into English. My homesite is https://sites.google.com/site/sh3fcreator/ (it's Russian too), and download link is https://sites.google.com/site/sh3fcreator/hom...ip?attredirects=0&d=1
---------------------------------------- My homepage
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: Utility for creating SH3F libraries
Nice and easier to use in English (at least for me)!
I tried your program with the content of Contributions library, and it worked but miserably only partially. As OBJ files and PNG files are in the same directory, something got wrong and some pieces in the SH3F file were incorrect. Then, I separated the OBJ and PNG files in two different directories and it worked. It's funny to see all the objects in a 50x50x50 cm box!
By the way, I started to develop a SH3F editor too a few weeks ago. Don't be mad after me, I couldn't guess you would program that kind of tool too. Maybe, I should have be more explicit in that thread, but I couldn't speak too much about that editor in november 2009 because I didn't start to program it yet.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Russia
Joined: Jan 9, 2010
Post Count: 13
Status:
Offline
Re: Utility for creating SH3F libraries
Yes, models and prewiews must be in different directories, but the next version will support common folder for models and pictures. It's explained on the prog's webpage, but only Russian lang now :)
"50x50x50 cm box" - I'm a newbie in the 3D programming and unfortunately I don't know how to recognize actual models' dimensions, make a prewiew etc. I'm planning to realize this features, but I don't have any ideas now :( It would be really nice if you can give some hints about...
"I started to develop a SH3F editor too" so, users may have some choice ;) I think, you will use Java - and your prog will be crossplatform then. My prog is inflexibly tied to Windows + .NET
---------------------------------------- My homepage
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: Utility for creating SH3F libraries
"50x50x50 cm box" - I'm a newbie in the 3D programming and unfortunately I don't know how to recognize actual models' dimensions, make a prewiew etc. I'm planning to realize this features, but I don't have any ideas now :( It would be really nice if you can give some hints about...
The getBounds method could have helped you but as you program in C#, you won't be able to reuse the classes of Sweet Home 3D.
I think that for OBJ files, you can guess easily the dimensions of the model: compute the min vertex and the max vertex by parsing the lines starting with a "v" and followed by 3 numbers (x, y, z) in the OBJ text file.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Russia
Joined: Jan 9, 2010
Post Count: 13
Status:
Offline
Re: Utility for creating SH3F libraries
Anybody knows some implementation of OpenGL wrapper working under Windows 7 / VisualStudio 2008 ???! SharpGL and CsGL don't work properly :-(
---------------------------------------- My homepage
Russia
Joined: Jan 9, 2010
Post Count: 13
Status:
Offline
Re: Utility for creating SH3F libraries
New version 0.15 released. Changelog:
- previews are filtered by extension (only *.PNG allowed, letter case independent). Thus, you can place them in the same folder as models. - OBJ models' size is calculated automatically. Other models are still displayed 50*50*50 - You can scale OBJ models if they are too small. Turn on the "Scale models" checkbox and enter the desired size of the model's smallest dimension. It will be scaled automatically (proportions are saved) - English translation fully finished - The prog can remember last opened filders and user settings now - Two modes of operation: "Models without preview are forbidden" - this is, the prog creates two sorted by name lists of files (one for models, other for previews) and the first preview in the list is associated to the first model etc. All models must have a preview in this model. If you select "Models without preview are allowed", for every model prog will associate a preview file with the same name (for Model_1.obj - Model_1.png etc.). If such filename does not exist, model will be added to library without preview.