Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

door materials #195

Open
Sinuhe20 opened this issue Jul 7, 2022 · 3 comments
Open

door materials #195

Sinuhe20 opened this issue Jul 7, 2022 · 3 comments

Comments

@Sinuhe20
Copy link

Sinuhe20 commented Jul 7, 2022

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).

@tordanik
Copy link
Owner

tordanik commented Jul 8, 2022

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.

@Sinuhe20
Copy link
Author

Sinuhe20 commented Jul 8, 2022

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

@tordanik
Copy link
Owner

tordanik commented Jul 17, 2022

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants