OSM2World icon indicating copy to clipboard operation
OSM2World copied to clipboard

HTML color codes in HEX format appear incorrect in OpenGL rendering

Open HikeAndMap opened this issue 1 year ago • 2 comments

I add a screenshot again first

image On the left is the actual real true colour from the orthographic imagery right of it you can see how I tagged it right of that the html colour from https://htmlcolorcodes.com/

This is "close enough for me"

below how that looks on OSM2World image

So clearly html colour coding isn't supported, or something else is missing (on my end or OSM2World's side?)

But I may just make a mistake in tagging here so please let me know if I do anything wrong

HikeAndMap avatar Jan 15 '25 22:01 HikeAndMap

image

oh if I add building:colour it's working fine for the sides (building) so it's really some rendering issue with the roof - again I may be doing something wrong, please let me know if I'm missing something.

Thank you so much

HikeAndMap avatar Jan 15 '25 22:01 HikeAndMap

As you've discovered, HTML color codes in HEX format are already supported and work correctly for walls and some other features. But I can confirm that they don't appear to have much, if any, visible effect for tiled roofs for some reason.

Interestingly, this bug only seems to affect OpenGL rendering (e.g. the graphical interface) and not, say, models exported as glTF files. I suspect it's related to the use of clampedBaseColorFactor in JOGLTargetFixedFunction. Need to investigate further.

tordanik avatar Jan 16 '25 10:01 tordanik