Osm2city.py textures: Difference between revisions

Jump to navigation Jump to search
m
added images
m (added internal link)
m (added images)
Line 18: Line 18:
texGUI.py facade.png
texGUI.py facade.png
</syntaxhighlight>
</syntaxhighlight>
[[File:TexGUI calibrating width.jpg|thumb|texGUI: Calibrating a texture's width using an aircon as a reference object. Note the red line.]]
[[File:TexGUI added cut locations.jpg|thumb|texGUI: Added horizontal and vertical cut locations.]]


It is generally a good idea to use descriptive names, such as facade_industrial_old_white.png, but for this example we simply use facade.png.
It is generally a good idea to use descriptive names, such as facade_industrial_old_white.png, but for this example we simply use facade.png.


# Calibrate the image width/height. Find a feature in the image whose dimensions you know or can estimate. For example, simple windows are typically about 0.8 m wide. Here, we're using the aircon's width, estimated 0.82 m. Left drag to select that horizontal feature, then enter its length. Right drag for a vertical feature. You need only one of them. If both are given, both are used (e.g. if your image is stretched in one direction).
# Calibrate the image width/height. Find a feature in the image whose dimensions you know or can estimate. For example, simple windows are typically about 0.8 m wide. Here, we're using the aircon's width, estimated 0.82 m. Left drag to select that horizontal feature, then enter its length. Right drag for a vertical feature. You need only one of them. If both are given, both are used (e.g. if your image is stretched in one direction).
# mark locations at which osm2city.py may cut the texture. Use left and right mouse buttons. Shift+click removes the last marker.
# mark locations at which osm2city.py may cut the texture. Use left and right mouse buttons. Shift+click removes the last marker.
# Once you're satisfied, click "dump and quit". This writes calibration/cut data to a file "facade_24x19m.py". Note that texGUI added "_24x19m" to the texture file name (the original file is still in place), since you're likely to have more than one texture for an industrial facade.
# Once you're satisfied, click "dump and quit". This writes calibration/cut data to a file "facade_24x19m.py". Note that texGUI added "_24x19m" to the texture file name (the original file is still in place), since you're likely to have more than one texture for an industrial facade.


153

edits

Navigation menu