Osm2city.py textures: Difference between revisions

Jump to navigation Jump to search
m
→‎Install texture and lightmap: reflect recent code changes
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:init() starting around line 300
* 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">
textures.py
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]]
153

edits

Navigation menu