Re: 2D Symbols

by dorin » Sun May 17, 2015 9:01 pm

A) Prepare the system:
1. Install LibreOffice
2. Install GIMP
3. Download 2DSymbols 1.2.sh3f
4. Unzip in a folder named 2DSymbols (autodetect folders)
5. Make a new folder with name Electrical (for eg.)
6. Locate in 2DSymbols 1.2 the file with names:
-invisibleCube.obj
-PluginFurnitureCatalog.properties

7. Copy this files to Electrical folder
8. Open PluginFurnitureCatalog.properties and erase all exept the entry for the first symbol
*Learn whats mean every entry in this kind of file
B) Made the symbols:
1. Open a new LibreOfficeDraw file
1a. Draw the symbol whit the tools provided by LibreOffice
1b. Export it as png
1b1. Select the draw objects -> group it
1b2. Select the group -> convert as bitmap
1b3. File -> Export... -> as PNG [select the Electrical folder (give some-name.png)]
1b4. File -> Export... -> as PNG [select the Electrical folder (give some-namePlanIcon.png)]
2. Open the some-name.png in GIMP
2a. Image -> Auto Crop
2b. Colors -> Color to Alpha... (select white backgound to convert to alpha)
2c. File -> Owerwrite some-name.png
3. Open the some-namePlanIcon.png in GIMP
3a. Image -> Auto Crop
3b. Image -> Canvas Size... (make a square canvas to be showed in furniture catalog)
3c. File -> Owerwrite some-namePlanIcon.png
C) Prepare the library:
1. Open the PluginFurnitureCatalog.properties in a text editor
1a. edit every entry
1b. for every entry select for model#[nr]= /invisibleCube.obj
1c. for every entry set width and depth as is for some-name.png
1d. ZIP the library
D) Test library in SH3D