Osm2city.py textures: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 72: Line 72:
== Lightmap ==
== Lightmap ==


A lightmap <del>is required for every texture, having</del>has the same file name with a postfix "_LM".  So for our example this would be
A lightmap has the same file name with a postfix "_LM".  A lightmap is NOT required for each texture, but highly recommended to make the buildings visible during low light periods (e.g. night, bad weather).
"facade_24x19m_LM.png"
 
So for our example this would be "facade_24x19m_LM.png". The file must be stored in the same directory as the texture file.


Osm2city uses
Osm2city uses
* red channel for window lights
* the red channel for window lights
* green channel for ambient street lights shining onto facade
* the green channel for ambient street lights shining onto facade
* blue and alpha unused
* (the blue and alpha channels are unused)
 
TODO describe add_streetlight.py


== Install texture and lightmap ==
== Install texture and lightmap ==
671

edits

Navigation menu