Introducing OSM Simple 3D Editor — buildings and indoor floor plans in one view

The two top sections are still missing.Ctrl+F5 doesn’t change anything either.Could it be a browser problem? Firefox 159.0 (on Windows 10) is having major issues with the Simple 3D Editor for me. Sometimes several parts of the buildings are missing, only to appear hours or even days later.

Chrome and Edge are significantly more stable. I haven’t noticed any missing building parts so far. Only with the Airport Tower do all three browsers agree: the upper sections are not rendered.

I’d say don’t bother about it, as long as it’s only happening to me .

Maybe I’ve missed something. Will have another look

How exactly does it determine that there is hole in the floor beside multifloor areas? (Question also open to other implementers of simple indoor scheme for how they perceive the tagging scheme)

I would expect that lack of any indoor room/hallway/area implies lack of walkable area thus floor.

Multifloor areas/rooms are fine in situations where they logically represent the area at bottom level. Like assembly halls or other rooms with extra tall ceilings or entrance halls without mezzanines. Sometimes the levels above might have halways connected to open space above, but it’s fine as long as they are outside the the outline of base level area.

But often in shopping centers and large public transport stations, they really are just holes in the floor which do not logically correspond to areas underneath. It seems silly to cut up areas in base level just because levels above doesn’t have floor there. Sometimes there are even rooms for smaller shops partially overlapping hole in floor above. It would be wrong to tag those as being multifloor.

Third case is various mezzanines and other cases where narrow hallways in top floors are partially above the bottom floor area. In case of lobbies or concert halls it even feels like the room at bottom floor extends to levels above. Problem is that navigable area in base level is bigger. It would be preferable to have single room which covers whole walkable area instead of artificially splitting it.

In summary:

  • rooms/areas where whole area extends to levels above → it’s fine and preferable to use level range
  • random cut outs in top floors, don’t correspond to logical layout of bottom level at all
  • halls with mezzanines → somewhere in the middle, feels like they span multiple levels, but also have bigger area

@Mannivu — that isn’t intended behaviour and sounds like a bug. Could you share links to some examples? Links copied directly from the editor’s address bar would be ideal. I’ll investigate.

@Hedaja — I also run into snapping issues and try to fix them as I find them. Could you share a short recording or an illustrated example of the behaviour you mean? It’s difficult to identify the exact problem from the description alone.

@Sunni24 — I checked the airport tower again, and all sections appear to render correctly on my side:

If yours still looks different, please try clearing the cache and reloading the building using the controls in the settings panel. Downloaded geometry is cached for up to 24 hours to reduce the load on Overpass and the OSM API, so a page refresh alone may not fetch fresh data.

@kaposts — that’s a very interesting question. I initially also assumed that an absence of indoor features on the floor above could indicate an opening. After reading the Simple Indoor specification more closely, my understanding is that multiple level values are the intended way to describe a space spanning several floors.

For example, indoor=room + level=0;1 describes a double-height room extending through levels 0 and 1. Similarly, indoor=room + room=elevator + level=0-10 can describe an elevator shaft spanning those levels. The same principle can be applied to atriums using indoor=area.

That’s the interpretation the editor currently uses. However, your examples raise a useful distinction: a space extending across several levels doesn’t necessarily have the same walkable footprint on each one. Mezzanines and openings that overlap several rooms below deserve a closer look, and I wouldn’t want to suggest artificially splitting otherwise coherent rooms just to satisfy the renderer.

The illustrations in my earlier posts came from these shopping centres and exhibition halls:

They show some of the layouts I’ve been testing. I’d be interested in comparing them with examples of the more complicated cases you describe.

2 Likes

Examples you linked demonstrates the problem I mentioned.

In first example having atrium area at the level=0 is what I consider artificial split.

Third example the part with circular hole shows it even better. Walkable area in level=-2 relation/17887025 is much bigger than hole Relation: 21843354 | OpenStreetMap . Although the tagging there seems somewhat messed up. relation/17887025 overlaps with relation/218243354 . Two indoor rooms/areas shouldn’t occupy the same space. In the first example at least the problem was avoided by subtracting atrium areas from rest of base level hallways using multipolygon inner shape. And what’s with the big circle in the middle, is that supposed to be open space from level -3 to level -1? The way columns are subtracted from areas containing them is also somewhat inconsistent. Some of the columns are subtracted from area some aren’t, one of them stops in the middle of empty space.

Second example also contains overlapping areas.

Thanks for explaining! Your justification makes sense to me for the case where someone spends half an hour creating a perfect 3D model of a building in OSM and forgets to add a height= tag themselves.

But what if I want to quickly go through a whole street and add roof shapes from a photo? In that case, I’m only interested in adding the roof shapes, and maybe roof material, nothing else. Maybe I can’t even see how tall the building is because I’m looking at an aerial photograph. In that case, adding height= or est_height= is nonsense, and there’s a risk that other mappers will use your editor in this way and not realise they are adding invented height values…

4 Likes

Just to be clear, indoor=room + level=0 + repeat_on=1 would have a roof/floor between level 0 and level 1?

2 Likes

@Felis_Pimeja see for example Changeset: 191329765 | OpenStreetMap (the editor’s URL is this one).

1 Like

@Mannivu — thanks for the example! It was a bug and should now be fixed.

@aighes — yes, exactly: there would be a floor/ceiling between the two levels. By default, the editor creates separate objects for rooms repeated on different levels, but you can also choose to use repeat_on.

@osmuser63783 @ivanbranco @karlos — I’ve reconsidered your arguments, and I agree. The editor no longer automatically adds height when changing the roof shape. Thanks for explaining the different mapping scenarios and helping me rethink this behaviour!

2 Likes

Thanks for taking such a close look at the examples. You’re right about the tagging issues: the inconsistently subtracted columns and the overlap between those two relations are simply my mistakes, and I’ll clean them up.

Let me explain how I arrived at the current approach, because I think it’s the root of what you’re describing.

Why the base level gets split. Simple Indoor has no dedicated feature for a floor opening or a double-height space, something like an indoor=void. The only tool the scheme offers for space spanning several levels is a level range (level=0;1). An atrium therefore ends up as a separate area on level 0, even when, as you say, it’s just part of the hallway down there. I agree that this split is artificial. It comes from a gap in the scheme, not from how the building is laid out.

Why I don’t infer a void from missing indoor features. It was my first idea too, but it breaks down quickly:

  • Incomplete mapping. Most of the time, an unmapped part of a floor means nobody has mapped it yet, not that there’s a hole. A renderer that turns every gap into an opening would show holes all over partially mapped buildings.
  • Ambiguity. Picture a building with a light well that starts above a solid ground floor (sketch attached). On level 1 and above, the absence of indoor features inside the well looks exactly like a double-height space over a ground-floor hall, or like a part of the floor that simply hasn’t been mapped yet. Simple 3D can tell them apart only if the building is modelled with building:parts. If there is only a building outline, the data can’t tell you which case it is.
  • Two schemes, no link. Simple 3D and Simple Indoor aren’t connected to each other, and where both are used on the same building I regularly see them contradict each other. So I’d rather not use the 3D shell as the source of truth for indoor voids either.

So I think a void has to be mapped explicitly, not inferred.

A possible explicit solution. The wiki describes indoor=level as the element that “describes the outline of the level”. If that outline is a multipolygon with an inner ring, the inner ring is a natural way to say “this level has no floor here”. That would solve your case neatly: the area below stays one coherent room or hallway, no level=0;1 atrium is needed just to express the opening, and a hole always means a hole, never just missing data. I haven’t implemented this yet, but I’d like to support it. What do you think? Does it match how you’d want to map shopping centres and stations?

On overlapping areas. As far as I can tell, Simple Indoor doesn’t forbid overlaps. The wiki only says that adjacent spaces should share nodes where they share a wall. I’m aware that “two spaces shouldn’t occupy the same area” is a common reading, but it isn’t written in the scheme. In the editor, I deliberately allow overlaps, and the smaller area is drawn on top of the larger one. I find this useful in a few situations:

  • a tall multi-level space with separate galleries or mezzanines mapped inside it;
  • a large shop floor with its departments, café, or checkout zones, which aren’t physically separated;
  • a restaurant occupying half a floor, mapped once with its own attributes, with the guest rooms and staff-only rooms mapped inside it.

I know this isn’t everyone’s view, and I’m happy to discuss it. It’s similar to how overlapping parts are sometimes used in Simple 3D.

Next steps. This is one of several important questions I’d like to raise later in a separate thread, both about Simple Indoor itself and about how it fits together with Simple 3D. I haven’t settled on a clear position yet: I’m still studying real-world examples and trying out different approaches in the editor. Until then, any examples like yours, especially the tricky ones, are very welcome.

1 Like

Here is an example.

In general I still struggle with snapping rooms to rooms on other floors or building parts (might be intentional behavior?)

Another thing that confused me is that when you add an entrance/exit which not on ground level (first floor) there is still a ghostly door shown on the ground floor.

1 Like

Wouldn’t A be different from B and C in terms of building:part=*?

C would be the default for a building with 3 levels and B would require indoor=room/area/corridor with level=0-1 or level=0;1.

It sounds reasonable to use indoor=level for the floor-area of a level in case the level is not fully covered with a floor. The fallback would be all the building-area has a floor. Otherwise you would end up drawing artificial indoor=area/corridor/room. At least I wouldn’t consider the open hall in a shopping mall like a corridor with level=0-5

Edit:
What seems to be missing at the moment is rendering the ceiling if you view the building on higher levels.


OpenStreetMap

1 Like

@aighes — agreed on both points, and that’s actually how the editor already works: if a level has an indoor=level outline, the floor slab is drawn only inside it (minus its inner rings). If a level has no indoor=level at all, the whole building section is treated as floor, and the unmapped parts are shown as unmapped space. So an open mall hall doesn’t need an artificial level=0-5 corridor: a hole in the upper levels’ outlines is enough.

On A vs B/C: yes, with building:parts the 3D shell can tell them apart. With only a building outline the data can’t, which is why I’d rather rely on an explicit indoor=level than infer it.

Your screenshot, I believe, is The Squaire, and it shows the flip side of this rule rather than a missing ceiling. The level 5 outline (r21876373) covers only about a quarter of the building footprint (≈10,750 m² of ≈39,200 m²). Levels 6 and 7 are similar. The editor takes the outline literally, so there’s no floor outside it, and you look straight down to level 4. My guess is the outline was drawn around the part that has been mapped so far, not around the actual floor. Extending it to the full footprint, or removing it until the level is fully mapped, would fix the rendering.

This is the trade-off: once indoor=level exists, it has to describe the whole floor, otherwise unmapped parts look like voids. I think that’s the right rule, because a hole should always mean a hole, but it does make partial indoor=level outlines visible as errors. A validator warning for “indoor=level much smaller than the building section” might help here.

@Hedaja — thanks for the examples, they helped a lot!

Snapping when moving a vertex. I’ve added a new snap: while you drag a corner, it snaps to the point where the extensions of the two adjacent sides meet, so the corner lines up again with the walls next to it. I’d run into this myself and just hadn’t got round to it. It has its own toggle in the snap types menu (“Extension of adjacent sides”).

Snapping to other levels and building parts. At the moment you can only snap to the level directly below the current one. I’m thinking about how to allow snapping to features on other levels without overcomplicating the UI.
For building:parts, only the outer outline is available as a snap target. Inside a building, parts often overlap or intersect in a fairly chaotic way that doesn’t reflect the real structure. So the editor builds the outer shell of the building from its parts and uses it as the outline of each level’s section, and the inner part edges are dropped.

One important caveat about moving shared geometry.
The move tool has two modes:

  • detached: the object moves on its own, independently of its neighbours;
  • with neighbours: every feature that shares edges or vertices with it moves along. This includes features on other levels!

I try to highlight all linked features while you move something, but this doesn’t always work reliably yet. So you may accidentally change the geometry of other features without noticing. I’m working on it. Until then, it’s worth checking the edit list before uploading, especially after moving vertices that are shared between levels or building parts.

The “ghost” door on the ground floor should now be fixed: entrances with a level other than 0 are now drawn on that level, not only those tagged indoor=door. Could you check whether it looks right for you now?

Push & pull for walls. I’ve been thinking about this too, but haven’t decided yet what it should do on a floor plan. One option is to “extrude” the thickness of walls. The other is to reshape rooms by pushing or pulling a wall, together with the rooms on both sides of it. The second sounds more useful to me, but it works quite differently from push & pull on building parts. You’re moving a shared boundary between spaces, not extruding a volume. So it probably deserves its own tool rather than being folded into push & pull. Ideas on how you’d expect it to work are very welcome.

1 Like

Maybe I wasn’t clear enough. Think about a mall with an open hall. On ground floor there is a shop with just one level. It feels strange to cover that shop with indoor=level+level=1 just to get a ceiling of that shop. I wouldn’t consider that area as an actual part of level=1 at all.

@Felis_Pimeja @aighes In case anyone missed I created separate topic for discussing the problem with holes. Indoor tagging lack of floor

3 Likes

I discovered this tool a few days ago, and I’m addicted!

I still have a lot to learn but… would it be a problem making the menus moveable/resizeable?

Sometimes I find myself scrolling huge lists inside a toolbox which is the size of a thin strip, quite frustrating :slight_smile:

Apart from this, I think S3DE an excellent tool. Thanks for your work!

1 Like

it might be interesting to know that the maplibre rendering ecosystem is also currrently moving towards this area, so using data produced by this editor “in the mainstream” might not be that far off.

3 Likes

This looks promising!

Thanks, now it works correctly!