You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#176 2013-10-30 16:36:47

marek kleciak
Member
Registered: 2010-10-11
Posts: 8,439

Re: Real time 3D map using WebGL

No problem. I believe You can fix it in near future. Ther are some important point of Interest whoch need it (stadions).

regards,
Marek

Offline

#177 2013-10-31 08:20:14

things-change
Member
Registered: 2011-10-27
Posts: 351

Re: Real time 3D map using WebGL

j3d wrote:

@things-change: Not sure how to name this kind of roof in natural language. The problem is more the algorithmic part. The first question is how to subdivide the outline into rectangles. Method 7. described in http://wscg.zcu.cz/wscg2003/papers_2003/g67.pdf could produce the result you wish but it also requires to provide the exact outline and height
...

Maybe there is no name for this kind of roofs. As descriped in the document in Point 7, these forms are grown up through the addition of extensions f.e.

The method ist very interesting an allows a lot of shapes to create. But it could be to specific for the OSM commuity. But I think even this kind of modelling has no possibility to create the roof that I have posted. Until now I've seen nowhere a 3D model for this roof.
The point is that there is a ridge which is not at the top of roof but splitted from the middle of one side. I fear even even the descriped process in the document would create a splitted roof.

Offline

#178 2013-10-31 18:31:45

j3d
Member
Registered: 2013-05-07
Posts: 53

Re: Real time 3D map using WebGL

Marek,  with S3DB there are still lots things that need to be addressed on the implementation side before I would approach more advanced themes. This could be worked out on the wiki in my opinion. If there will be a meeting I might attend if time permits, but for future 3D development I'm staying a side-line viewer for now smile

Offline

#179 2013-10-31 18:32:57

j3d
Member
Registered: 2013-05-07
Posts: 53

Re: Real time 3D map using WebGL

... maybe should start a 3D mailing-list instead of being constantly off-topic in this thread

Offline

#180 2013-10-31 18:39:50

cmif4
Member
From: Paris
Registered: 2013-06-10
Posts: 121
Website

Re: Real time 3D map using WebGL

j3d wrote:

... maybe should start a 3D mailing-list instead of being constantly off-topic in this thread

+1 (or a dedicated thread on this 3D forum so we could touch more osm contributors)

Offline

#181 2013-10-31 18:39:52

j3d
Member
Registered: 2013-05-07
Posts: 53

Re: Real time 3D map using WebGL

things-change: the first part I mentioned as an example how one could extract a likely rectangle subdivision from the outline. the other part is to handle the constraint that the smaller roof must connect with its ridge to the edge of the main roof - with this constraint height of both roofs(parts) could be inferred automatically as there seems to be only one solution smile

Last edited by j3d (2013-10-31 18:40:40)

Offline

#182 2013-10-31 18:54:43

j3d
Member
Registered: 2013-05-07
Posts: 53

Re: Real time 3D map using WebGL

cmif4: for my interpretation of an open dome no skeleton is needed. when the center is inside the inner ring:
1 connect lines from center to all points in outer ring
2 clip lines to building footprint
3 interpolate height along lines - this way the height is constant at the inner ring

I'll try that soon

Though when center is not inside the inner ring (or there are more inner rings) things get more complicated. Then one could build the triangle mesh for the rounded dome shape (as usual) and then insert the lines from the inner rings, put all that in a constrained delaunay triangulation and filter out the triangles inside the hole afterwards.

Offline

#183 2013-11-06 12:19:53

marek kleciak
Member
Registered: 2010-10-11
Posts: 8,439

Re: Real time 3D map using WebGL

cmif4,
look here:
http://www.openstreetmap.org/browse/way/79799800
There is no right interpretation in 3D.
A bug?

Regards,
Marek

Offline

#184 2013-11-06 12:28:19

cmif4
Member
From: Paris
Registered: 2013-06-10
Posts: 121
Website

Re: Real time 3D map using WebGL

As already said few post before, for now we don't handle roof:shape when polygons have holes.
The building part http://www.openstreetmap.org/browse/way/244031566 makes a hole on the outline when we merge building relation so outline roof shape is not handled.

I am currently working on buildings roof it should work in a few days, i already got dome, skillion and pyramidal working with holes (like the Pantheon in Roma).

Offline

#185 2013-11-06 13:00:55

!i!
Member
Registered: 2009-11-28
Posts: 3,313
Website

Re: Real time 3D map using WebGL

f4 maps processing is outdated >20hrs, can you please fix it?


privater Account von KVLA-HRO-Mei

Offline

#186 2013-11-06 13:19:14

cmif4
Member
From: Paris
Registered: 2013-06-10
Posts: 121
Website

Re: Real time 3D map using WebGL

!i! wrote:

f4 maps processing is outdated >20hrs, can you please fix it?

We're already working on it, some osm data import broke our database.

Edit: check out this relation: http://www.openstreetmap.org/browse/relation/1980619 (prepare yourself for Internal Server Error big_smile)

Last edited by cmif4 (2013-11-06 13:36:28)

Offline

#187 2013-11-06 14:11:40

marek kleciak
Member
Registered: 2010-10-11
Posts: 8,439

Re: Real time 3D map using WebGL

i already got dome, skillion and pyramidal working with holes (like the Pantheon in Roma).

Congratulations!!

Offline

#188 2013-11-07 12:38:00

cmif4
Member
From: Paris
Registered: 2013-06-10
Posts: 121
Website

Re: Real time 3D map using WebGL

marek kleciak wrote:

Hello cmif4,
do You already have implemented roof type "gabled" for donut topology?

Got it working locally, check out the screen below.

j3d wrote:

I currently try to figure out to create proper 'gabled' roof types from the outline skeleton. It seems to be reasonable to extend only those ridges nodes to the outline which have two incoming edges that directly connect to the outline and where the edge pair must roughly have an angle of 90 degrees and point away from the ridge.

I'm working on straight skeleton aswell and i'm having some spectacular result on very complex shapes, but unfortunately it is very instable and it screws up very simple buildings that worked fine with the old method roll.

I'm also dealing with artifacts on buildings outlines incompletely used for rendering due to our "remove building:part from outline", skeleton goes outside and does not really match the 3d shape...

Anyway there is a sample of how it looks on some spots:

StraightSkeleton_00.jpg

Offline

#189 2013-11-07 14:45:05

marek kleciak
Member
Registered: 2010-10-11
Posts: 8,439

Re: Real time 3D map using WebGL

cmif4,
please contact me.
I see, You´re very talented programmers. I teached architects geometry over 15 years.
There is an geometric approach for fixnix this problem, which is used by architect for construction of such building shapes.

Offline

#190 2013-11-07 15:18:37

cmif4
Member
From: Paris
Registered: 2013-06-10
Posts: 121
Website

Re: Real time 3D map using WebGL

You can contact me using the "Email" button under my avatar (it is not a trap lol)

Offline

#191 2013-11-07 15:39:46

j3d
Member
Registered: 2013-05-07
Posts: 53

Re: Real time 3D map using WebGL

cmif4: building heights of 'hotel des invalides' look wrong. did you mess with the map data?

BTW do you calculate the minimal distance through the skeleton to the outline to retrieve the relative heights? There should be a patch in sfcgal soon so that the skeleton contain the correct distances as z (or m) value :)

Offline

#192 2013-11-07 15:48:29

cmif4
Member
From: Paris
Registered: 2013-06-10
Posts: 121
Website

Re: Real time 3D map using WebGL

j3d wrote:

cmif4: building heights of 'hotel des invalides' look wrong. did you mess with the map data?

I split the building into 3 parts this morning as they do not have the same height http://binged.it/1cX4pJl

j3d wrote:

BTW do you calculate the minimal distance through the skeleton to the outline to retrieve the relative heights? There should be a patch in sfcgal soon so that the skeleton contain the correct distances as z (or m) value smile

Height is computed on client side (we do not add z in the database) so it can't be calculated during straight_skeleton process.

Offline

#193 2013-11-07 15:51:42

j3d
Member
Registered: 2013-05-07
Posts: 53

Re: Real time 3D map using WebGL

cmif4 wrote:

I split the building into 3 parts this morning as they do not have the same height http://binged.it/1cX4pJl

Oh indeed, you are right. I looked at some images of that building recently and was sure they were the same height..

Offline

#194 2013-11-07 19:45:02

kendzi
Member
Registered: 2008-08-20
Posts: 250

Re: Real time 3D map using WebGL

You plan to use skeleton algorithm only for roof tagged with roof:shape=hipped?

Offline

#195 2013-11-08 10:14:54

cmif4
Member
From: Paris
Registered: 2013-06-10
Posts: 121
Website

Re: Real time 3D map using WebGL

We plan to use it on

gabled, half-hipped, hipped, gambrel, mansard and round 

maybe with some condition on the polygon (for example if shape is convex there is no point to build the skeleton, the old obox approach should work).

I started with hipped as skeleton does not need to be processed and can be used "as it" for triangulation.

I'm currently wondering how to handle the "roof:orientation=across" tag with skeleton on complicated shapes roll

Offline

#196 2013-11-15 08:28:18

marek kleciak
Member
Registered: 2010-10-11
Posts: 8,439

Re: Real time 3D map using WebGL

What is this?
http://map.f4-group.com/#lat=52.5199191 … hi=-13.178
lol
We really need sphere as a point with height and radius for such purposes..

Offline

#197 2013-11-15 09:57:40

cmif4
Member
From: Paris
Registered: 2013-06-10
Posts: 121
Website

Re: Real time 3D map using WebGL

marek kleciak wrote:

What is this?
http://map.f4-group.com/#lat=52.5199191 … hi=-13.178
lol
We really need sphere as a point with height and radius for such purposes..

We really need contributor to stop doing buildings inside buildings overlapping with buildings and all together inside a building relation (how about using part and shapes defines in S3DB tongue)

Offline

#198 2013-11-29 11:36:27

marek kleciak
Member
Registered: 2010-10-11
Posts: 8,439

Re: Real time 3D map using WebGL

I see,
you´ve problems with rendering of roof:shape pyramidal with too many points.
See Heinrich Herz Tower in Hamburg / Germany
http://map.f4-group.com/#lat=53.5628755 … id=Hamburg

Btw.:

We really need contributor to stop doing buildings inside buildings overlapping with buildings and all together inside a building relation

Absolutely yes.

Offline

#199 2013-11-29 12:01:53

chris66
Member
From: Germany
Registered: 2009-05-24
Posts: 10,128

Re: Real time 3D map using WebGL

Hi,
let me know how to tag boats:

16602733fv.jpg

and how to avoid that they are driving above the bridges.


Mapper aus dem Münsterland.

Offline

#200 2013-11-29 12:02:28

cmif4
Member
From: Paris
Registered: 2013-06-10
Posts: 121
Website

Re: Real time 3D map using WebGL

There is no issue, i got the same rendering as Kendzi3D, the only difference is the outline that got a hole and is higher in F4Map due to the man_made=tower tag (our random height is based on building or man_made values).

Add "building:part=no" to the outline way and it will look what you expect.

Offline

Board footer

Powered by FluxBB