kendzi
(Tomasz Kędziora)
8
After topic split I’m answers hire even if it is connected with my plugin.
Example building with windows textures:
Currently textures in my plugin are assigned to buildings using tags: “building:material=” or “roof.material=”.
For example building on the right is tagged as building.material=stone and tree building on left as building.material=birck. If there is more than one texture for building material, the display one is chosen randomly from texture set assign for this material. Of course in future it will be possible to make some more advanced assign using eg colors. But I am strongly against to put inside osm database texture names.
In my opinion wiki page http://wiki.openstreetmap.org/wiki/Texture_Library sholud conteins all textures and metadata, like texture size in real world (width x hetight) without any connection to osm data.
In other hand you have wiki page: http://wiki.openstreetmap.org/wiki/Kendzi3d/textures Where you can make assigment from osm tag to texture/material.
You can do it this way:
Let’s assume that you have new building material named “stone” to which we want assign texture.
You need to create new row to table in section “Key format for building facade” like this:
After using option “Load texture from wiki” new texture should appear in plugin.
If you don’t want use wiki page to configure it you can edit configuration inside xml file.
The same example. You want to add new texture to **stone **material. You need to add this lines to xml:
You need to put this lines to file: resources\textureLibraryInternal.xml inside kendzi3d.jar or to file:
“{JOSM_DIR}/plugins/kendzi3d/resources/textureLibraryWiki.xml”
which is created and overwritten after each use of function “Load texture from wiki”
You need to manually download texture to file “{JOSM_DIR}/plugins/kendzi3d/textures/any_unique_file_name.png”