153
edits
m (→Lightmap: we can work without LM, but then we won't have lighting, of course) |
m (→Install texture and lightmap: reflect recent code changes) |
||
Line 83: | Line 83: | ||
== Install texture and lightmap == | == Install texture and lightmap == | ||
* copy texture and lightmap to tex.src/ | * copy texture and lightmap to tex.src/ | ||
* add the snippet from "facade_24x19m.py" to textures.py | * add the snippet from "facade_24x19m.py" to textures/catalog.py | ||
If you're adding a roof, name your texture "roof_something.png" and append it to the list of ''roofs'' (instead of ''facades'') | If you're adding a roof, name your texture "roof_something.png" and append it to the list of ''roofs'' (instead of ''facades'') | ||
Line 94: | Line 94: | ||
Finally, run | Finally, run | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
osm2city.py -A | |||
</syntaxhighlight> | </syntaxhighlight> | ||
If there are no errors, your texture is registered and will be used next time you run osm2city.py. If your texture is GPL compatible, please consider | to re-create the texture atlas. If there are no errors, your texture is registered and will be used next time you run osm2city.py. If your texture is GPL compatible, please consider | ||
sending it (along with the meta data) to one of the osm2city.py devs to have it included in the official distribution. | sending it (along with the meta data) to one of the osm2city.py devs to have it included in the official distribution. | ||
[[Category:Modeling]] | [[Category:Modeling]] | ||
[[Category:OpenStreetMap]] | [[Category:OpenStreetMap]] |
edits