OSM2World icon indicating copy to clipboard operation
OSM2World copied to clipboard

door materials

Open Sinuhe20 opened this issue 2 years ago • 3 comments

Looks like different door materials like glass, metal etc. are unfortunately not supported:

grafik

Key materials is also not mentioned on the wiki page, but it would be nice to have the same support like for windows. Besides wouldn't it make sense to have the same tagging schema like door:material, door:shape, door:frame:* or door:breast? (min_height seems not to work, but not every door is directly on the ground).

Sinuhe20 avatar Jul 07 '22 14:07 Sinuhe20

I agree that materials and other attributes would make perfect sense for doors. This is simply a feature no one has gotten around to implementing yet. Notably, it would require better texturing – the current default door texture has the base material, frame and handle all combined in a single texture.

tordanik avatar Jul 08 '22 12:07 tordanik

For having a coloured door I helped myself a little by making the door texture colourless, shifting the white point a little and setting a default wood colour. This can also be done with all other (almost) monochrome textures:

grafik

material_ENTRANCE_DEFAULT_texture0_file = ./textures/DE19F1FreisingDoor00005_small.png
material_ENTRANCE_DEFAULT_texture0_width = 0.8
material_ENTRANCE_DEFAULT_texture0_height = 2.1
material_ENTRANCE_DEFAULT_texture0_colorable = true
material_ENTRANCE_DEFAULT_color = #c98953

So I can use my own colors:

grafik

That is what I wanted to achieve:

grafik

Sinuhe20 avatar Jul 08 '22 12:07 Sinuhe20

@Sinuhe20 Is it ok to include your colourless door texture in tordanik/OSM2World-default-style under that repository's CC0 terms?

In general, the de-coloring treatment would be good for a few other textures as well. I haven't gotten around to doing it myself yet, but I'm happy (and willing to merge the changes) if someone beats me to it.

tordanik avatar Jul 17 '22 09:07 tordanik