Real time 3D map using WebGL

There seems to be a problem with the F4 map recently - both in Firefox and Chrome it started to insists I do not have WebGL, whereas it worked perfectly up to now (and I’m perfectly sure I changed nothing). Chrome is up-to-date to the most recent. ANY OTHER PAGE WITH WEBGL ON THE INTERNET is still working fine for me in both browsers. What’s going on…?

Since a few weeks many overlapping roof shapes are no longer show up correctly:-(
I hope, they will revert to an earlier version or fix it soon.

@marek kleciak : we’ll take a look

@Asztalos Attila Oszkár : are you using windows XP ? chrome uses a software WebGL since a few months so we disabled it by default.

@pyram : we did not notice problems on our side, so do not hesitate to give us links showing problems

Yes, XP is what I have. On two different PCs, both useless now. The hardware is sufficiently recent and quite capable but upgrading the OS is not an option. It would be regrettable if F4 deliberately chose to exclude a certain proportion of its visitors who would otherwise be perfectly capable of viewing the map in excellent conditions just because the rendering choice of certain browsers fell out of favour. Incidentally, I’m not aware of any other browsers beyond Chrome and Firefox that could access the map - are there any? Having no other options left than looking at it on a 4" (and definitely underpowered) smartphone screen in a mobile browser is absolutely not an improvement over the previous situation; are you sure this was a good idea, or should I expect to see that disabled as well, so I can pack up shop and stop adding 3D buildings to the map altogether?

ie 11 handles it (using an old webGL, but it still works), but is not available under windows XP.
we’ll try to re enable it for firefox though, since its webGL is still using hardware on XP.
I’ll keep you posted on this.

and chrome disabled hardware webGL on windows XP, even if the graphic card is recent, so we cannot do much about it. (it still renders but it’s so slow it’s not usable)

i’ve updated f4 map, it should allow webGL under windows XP for firefox, if firefox handles webGL, can you give it a try ?

Thank you, it’s working now. Much appreciated! On an unrelated note, as others noted, many roofs seem to have problems now (that used to be fine)… :slight_smile:

examples of those would be greatly appreciated, so we can work to fix them :slight_smile:

Sure, here are a few I’ve looked at:

http://demo.f4map.com/#lat=46.5348777&lon=24.5821911&zoom=21&camera.theta=62.876&camera.phi=16.157 vs. http://www.opensciencemap.org/map/#&scale=20&rot=12&tilt=59&lat=46.534&lon=24.582

http://demo.f4map.com/#lat=46.5418232&lon=24.5574246&zoom=20&camera.theta=46.49&camera.phi=3.438 vs. http://www.opensciencemap.org/map/#&scale=19&rot=9&tilt=50&lat=46.541&lon=24.557

http://demo.f4map.com/#lat=46.5461173&lon=24.5632906&zoom=21&camera.theta=28.957&camera.phi=99.705 vs. http://www.opensciencemap.org/map/#&scale=20&rot=96&tilt=37&lat=46.546&lon=24.563

http://demo.f4map.com/#lat=46.5464447&lon=24.5671803&zoom=21&camera.theta=65.054&camera.phi=-113.045 vs. http://www.opensciencemap.org/map/#&scale=20&rot=-109&tilt=64&lat=46.546&lon=24.567

Ok, the opensciencemap guys have their problems too with domes turning into pyramids (and heights being generally squashed), but it should be enough to illustrate the problem: it’s almost as if geometry got aggressively oversimplified somehow - many shapes under the roofs are also affected. Also, the last example is an older existing issue, I just never quite got around mentioning it (long ago even that used to work even in F4, it went bad after the major roof update mentioned in this very thread a while ago)…

ok this should be better now !
Thanks for the feedback ! :slight_smile:

If you notice anything else acting weird, reports are much appreciated ! :slight_smile:

looks like our postgres crashed, so while it’s recovering, buildings might not show up (if they’re not in our cache), this usually takes around 7 hours :confused:

Nice job! :slight_smile: I guess that only leaves the last example I gave - the four little corner spires are supposed to have two perpendicular “roofs” (not just one) as also seen here: http://www.panoramio.com/photo/92401196

Thank you, the problem now seems no longer to occur. No Idea why.
(e.g. this http://demo.f4map.com/#lat=49.4462984&lon=11.0824797&zoom=21&camera.theta=63.048&camera.phi=-93.679 was shown with wrong directions).

A still remaining problem: F4 never shows that building. I have tried some versions (with vertical, horizontal and overlapping parts)
http://demo.f4map.com/#lat=49.4442192&lon=11.0409865&zoom=19&camera.theta=63.048&camera.phi=-93.679
versus
http://opensciencemap.org/s3db/#scale=18&rot=-95&tilt=65&lat=49.444&lon=11.041

Marek’s Problem is, that he wants to map a gabled roof and F4 renders a hipped roof at the west side. But he tagged also a gabled at the east side and wants to see a hipped roof at the east of this part and a gabled roof at the inner west side.

Look at this very simple example to understand:
http://demo.f4map.com/#lat=49.4716455&lon=11.1088273&zoom=20&camera.theta=46.432&camera.phi=72.193
versus
http://maps.osm2world.org/?h=128&view=W&zoom=18&lat=49.47206&lon=11.10807&layers=B0FFFF

This area does not seem to have been updated in months:
http://www.openstreetmap.org/#map=19/40.74044/-74.00378

@robgeb : what’s missing ?

@pyram : i dit not find a difference in buildings between f4map and opensciencemap , which building is never shown ?

indeed there is a bug where we render gabled as hipped, we’ll try to work on it

@Asztalos Attila Oszkár : what you want is a cross_gabled (6.2 in OSM-4D) unfortunately i do not think we handle it yet. (http://wiki.openstreetmap.org/wiki/Roof_table#Subtype_6)

Sure, that would be the ultimate goal, but as we know special roofs are still rarely implemented in general (not just in F4) - so in the mean time people usually get by with what works; that’s why at the moment there are TWO perpendicular simple roofs in that particular model, and both Kendzi3D and opensciencemap render them both, but F4 does not (although is used to, long ago). So, unless this is some kind of deliberate decision to not allow that sort of construct, they should still both be rendered… :slight_smile:

ha ! i dit not notice the second roof ! i’ll take another look ! :slight_smile:

@cactusbone: the whole block between 8th and 9th avenue and 14th and 15th street is rendered without 3d details, except height, on F4 on my devices.

http://demo.f4map.com/#lat=40.7408574&lon=-74.0037252&zoom=19&camera.theta=46.312&camera.phi=-70.474
http://opensciencemap.org/s3db/#scale=18&rot=-74&tilt=54&lat=40.74&lon=-74.003