OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

#1 2011-10-26 20:40:42

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

Kendzi3D - 3D Viewer as plugin for JOSM.

As you probably already noticed  I develop simple 3d viewer for JOSM.

It can visualize some basic object in 3d for examples buildings, trees, fence, roads. Here are samples of village Nowe Kramsko:

nowekramsko1.th.png


Samples of roof with dormers described in proposal:
http://wiki.openstreetmap.org/wiki/Roof_table

Type 0.x
81581204.th.png

Type 1.0.aaaa
18716002.th.png

Type 1.1
23031955.th.png

Type 2.0.aaa
20aaa.th.png

Type 2.1.aa
43143639.th.png

Type 2.2.aa
17333196.th.png

Type 2.3.aa
88915622.th.png

Type 2.4.aa.aa
58850945.th.png

Type 2.5.aa.a.a.a
25aaaaa.th.png

Type 2.6.aa.a
26aaa.th.png

Type 2.7.aa.a.a
27aaaa.th.png

Type 2.8
20771958.th.png

Type 2.9.a.a.a.a
29aaaa.th.png

Type 4.0.aaa.a
40aaaa.th.png


Type 9.0.aaa.a.aa.....a.....aaa
90aaaaaaaaaa.th.png

Type 9.0 is not working correctly in all cases. It has few numerical problems so don't wary.

20110927172954.th.jpg

Type 9.0.a..a..a.a......a
90aaaaa.th.png

Some other examples:
90aaaaaa.th.png

90aaaaaaaaaaaaaaaaaaaaa.th.png

90aaaaaaaaaaaaaaaaaa.th.png

68633233.th.png



You can watch examples by opening file (it is quite old):
http://www.openstreetmap.pl/kendzi/Kend … /dachy.osm

For ground textures you can use view from JOSM editor. But refreshing after modification in JOSM is not working.

style2.th.png

style1.th.png

You can download it using JOSM plug in manager. Search for kendzi3d smile

Last edited by kendzi (2012-04-18 18:53:37)

Offline

#2 2011-11-13 22:02:40

SunCobalt
Member
From: Eislingen
Registered: 2010-01-09
Posts: 3,514

Re: Kendzi3D - 3D Viewer as plugin for JOSM.

kendzi wrote:

SunCobalt: Yes, I working on it, in current version you can use tags 3dr:direction=begin|end on building nodes.

great, thanks a lot

kendzi wrote:

I think that we should move discussion in English here:
http://forum.openstreetmap.org/viewtopic.php?pid=198669

Ok, Kendzi, here we go wink


kendzi wrote:

SunCobalt:
for now I have textures for:
building:roof:material=roofingFelt
building:roof:material=roofTiles
building:roof:material=unknown

building:facade=brick
building:facade=plaster
building:facade=unknown

I can add any textures but somebody have to make them or find some free textures on net.
What textures you need?

It's a tpyo, you meant building:facade:material, right?
How about building:facade:color and building:roof:color with maybe 16 predefined colors red, black.....and if it begins with # then use it as Hex code value?

kendzi wrote:

Tags  3dr:dormer:heightX  work for all dormers on building.

I think for now the easiest way is to put dormers in right place is to use rows and empty dormers (dormer type '-') (please download current version of plugin: 53)

http://wiki.openstreetmap.org/wiki/Pl:R … 9Bciach.29

Please see examples here:
http://www.openstreetmap.pl/kendzi/Kend … /dachy.osm

Thanks a lot...I will keep you updated. The first results look pretty impressive


Thomas

Offline

#3 2011-11-13 22:37:25

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

Re: Kendzi3D - 3D Viewer as plugin for JOSM.

yes I mean:

building:facade:material=brick
building:facade:material=plaster
building:facade:material=unknown

I plan to add colors but it take some time.



In current version I added:

- multi row dormers: 3dr.dormers.front.row1

Example:

3dr:dormers:front:row2=a---a-a
3dr:dormers:front:row3=-a-a-a-
3dr:dormers:front:row4=--a-a--
3dr:dormers:front:row5=-

multirow.th.png



- dormers for wall split by dot : 3dr.dormers=aa.aa
- direction of roof as node tag: 3dr.direction=begin|end

[url=http://wiki.openstreetmap.org/wiki/File:BoundingBox1_en.svg/]
500px-BoundingBox1_en.svg.png[/url]

- empty dormer type: '-'
- places for dormers on rectangular roofs: 3dr.dormers.front, 3dr.dormers.back, 3dr.dormers.left, 3dr.dormers.right

Offline

#4 2011-11-13 22:58:31

SunCobalt
Member
From: Eislingen
Registered: 2010-01-09
Posts: 3,514

Re: Kendzi3D - 3D Viewer as plugin for JOSM.

I played a bit with the dormer rows...Looks promising. I have seen that pitched roof dormers were mentioned in some places in the wiki. Do you plan to support it?
I am wondering if the same as you are doing with dormer rows would be possible for windows.

Unfortunately I see only 2.0 roofs when looking around, maybe I will try a more interesting place later
3dsample.jpg

...but I will not upload the building:facade:material=plaster, it is not the reality but good for presentation.

Thanks again for this good work.


Thomas

Offline

#5 2011-11-13 23:22:58

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

Re: Kendzi3D - 3D Viewer as plugin for JOSM.

For now only dormers type 'a' and '-' are supported. I plan to support some more types in near future. I think that we can add roof window (skylight) as new type of dormer?

http://wiki.openstreetmap.org/wiki/DE:3D_building#Gaube

By plaster material I mean: http://en.wikipedia.org/wiki/Plaster
Yes I know that texture shouldn't contain windows. But there isn't any schema for tagging windows for now.

Offline

#6 2011-11-14 19:54:00

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

Re: Kendzi3D - 3D Viewer as plugin for JOSM.

roof window (skylight) - good idea. Please do it.

Offline

#7 2011-11-20 22:17:43

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

Re: Kendzi3D - 3D Viewer as plugin for JOSM.

Some changes:

- tree models for type: unknown|broad_leaved|conifer
treestypeunknownbroadle.th.png

- support for dormer type B
10ababa.th.png

- support for roof type word alias as 3dr:type=flat|gabled|gambrel|half hipped|hipped|pitched|pyramidal|skillion

- support for building:part=yes

- initial support for colors. They can't be mix with tags: building:facade:material, building:roof:material. Hex values or color names from list: http://download.oracle.com/javase/6/doc … Color.html

    - building:facade:color
    - building:roof:color

colorsy.th.png


- example of complex building polygon:
complex.th.png


- support for tags height, min_height for fence
- support for tag building:color
- support for tag roof:color
- support for world alias in tag building:roof:shape=flat|gabled|gambrel|half hipped|hipped|pitched|pyramidal|skillion
- support for world alias in tag roof:shape=flat|gabled|gambrel|half hipped|hipped|pitched|pyramidal|skillion

- support for height, min_height, est_height in [m], [ft], [feet] for building
- support for tag building:roof:orientation=along|across
- support for tag direction on buildings (the name of tag change)

Last edited by kendzi (2011-11-27 18:41:16)

Offline

#8 2012-03-27 20:26:01

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

Re: Kendzi3D - 3D Viewer as plugin for JOSM.

Several new things:

* New texture from viw for facade plaster.

* Forest and tree line:
treeswood.th.png

* Example of cloning relation (type=clone:height) for building parts, window and fence:
cloneheight2.th.png

Example file:
http://openstreetmap.pl/kendzi/Kendzi3d … height.osm

Another example:
http://forum.openstreetmap.org/viewtopi … 13#p206113

* Custom models:
From now you can use your own models to visualize nodes. Eg mail box or wind turbine:
Example view:
custommodels.th.png
Configuration window:
custommodelsconfigurati.th.png

Currently configuration window have not been completed yet and input values are stored only till JOSM is running. More information about configuration in xml file:
http://wiki.openstreetmap.org/wiki/JOSM … tom_models


* 3D Slippy Map, Title renderer:
Nowe Kramsko
http://www.openstreetmap.pl/kendzi/Kend … index.html

Warszawa
http://www.openstreetmap.pl/kendzi/Kend … szawa.html

It is only example. It is not live. Unfortunately I don't have time and server to continue it. Titles can be generated by command line program which as input can use xml data and title number.
Currently example titles are generated only for Nowe Kramsko and Warsaw at zooms 17, 18. As background it is used osmapa.pl.

Source codes are available here:
https://github.com/kendzi/kendzi3dTitleRenderer

Offline

#9 2012-04-18 19:08:54

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

Re: Kendzi3D - 3D Viewer as plugin for JOSM.

Added:
- skybox
- roof type 5.6

53543589c.th.png


action for load texture library
Now you can load texture configuration from xml file. Use menu "3d>Load texture library from file". Format well be shortly described on page: http://wiki.openstreetmap.org/wiki/JOSM … figuration

Texture configuration can be used to setup single color buildings:
singlecolormaterial.th.png

Example library configuration:
http://openstreetmap.pl/kendzi/Kendzi3d … ibrary.xml
You need to load example and answer Yes on question “Overwrite values“.

Offline

#10 2012-04-18 21:22:32

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

Re: Kendzi3D - 3D Viewer as plugin for JOSM.

Cool! Thank You!
Marek

Offline

#11 2012-04-30 15:16:53

Athemis
Member
From: Düsseldorf, DE
Registered: 2008-03-25
Posts: 38
Website

Re: Kendzi3D - 3D Viewer as plugin for JOSM.

kendzi wrote:

Example library configuration:
http://openstreetmap.pl/kendzi/Kendzi3d … ibrary.xml
You need to load example and answer Yes on question “Overwrite values“.

That doesn't quite work for me. Loading the xml file causes an error:

javax.xml.bind.JAXBException: "kendzi.josm.kendzi3d.dto.xsd" doesnt contain ObjectFactory.class or jaxb.index

Happens as well when the plugin tries to load its built-in texture library, hence I only get placeholder textures. I tried the latest versions of Java 7 and 6 under both Windows 7 and Linux with no luck.

Last edited by Athemis (2012-04-30 15:17:33)

Offline

#12 2012-04-30 21:20:20

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

Re: Kendzi3D - 3D Viewer as plugin for JOSM.

Send Kendzi eMail. I´m not sure how often he visit fhis topic.

Offline

#13 2012-05-02 10:43:21

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

Re: Kendzi3D - 3D Viewer as plugin for JOSM.

Athemis wrote:
kendzi wrote:

Example library configuration:
http://openstreetmap.pl/kendzi/Kendzi3d … ibrary.xml
You need to load example and answer Yes on question “Overwrite values“.

That doesn't quite work for me. Loading the xml file causes an error:

javax.xml.bind.JAXBException: "kendzi.josm.kendzi3d.dto.xsd" doesnt contain ObjectFactory.class or jaxb.index

Happens as well when the plugin tries to load its built-in texture library, hence I only get placeholder textures. I tried the latest versions of Java 7 and 6 under both Windows 7 and Linux with no luck.


Currently I don't have access to my computer, I will investigate it at monday.

Offline

#14 2012-05-02 23:22:54

Athemis
Member
From: Düsseldorf, DE
Registered: 2008-03-25
Posts: 38
Website

Re: Kendzi3D - 3D Viewer as plugin for JOSM.

kendzi wrote:
Athemis wrote:
kendzi wrote:

Example library configuration:
http://openstreetmap.pl/kendzi/Kendzi3d … ibrary.xml
You need to load example and answer Yes on question “Overwrite values“.

That doesn't quite work for me. Loading the xml file causes an error:

javax.xml.bind.JAXBException: "kendzi.josm.kendzi3d.dto.xsd" doesnt contain ObjectFactory.class or jaxb.index

Happens as well when the plugin tries to load its built-in texture library, hence I only get placeholder textures. I tried the latest versions of Java 7 and 6 under both Windows 7 and Linux with no luck.


Currently I don't have access to my computer, I will investigate it at monday.

Thanks! smile

Offline

#15 2012-05-07 21:09:56

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

Re: Kendzi3D - 3D Viewer as plugin for JOSM.

Athemis wrote:

That doesn't quite work for me. Loading the xml file causes an error:

javax.xml.bind.JAXBException: "kendzi.josm.kendzi3d.dto.xsd" doesnt contain ObjectFactory.class or jaxb.index

Fixed in v84

Offline

#16 2012-05-17 00:30:24

AndreR
Member
Registered: 2008-05-26
Posts: 19

Re: Kendzi3D - 3D Viewer as plugin for JOSM.

Hm, I still have this error in version 88, when I try to load the textures from the wiki:

Error downloading textures from wiki: Provider com.sun.xml.internal.bund.v2.ContextFactory could not be instantiated: javax.bind.JAXBException: "kendzi.josm.kendzi3d.dto.xsd" doesnt contain ObjectFactory.class or jaxb.index

Any idea?

Best regards
André

Offline

#17 2012-05-22 11:30:06

alv
Member
Registered: 2008-06-03
Posts: 196

Re: Kendzi3D - 3D Viewer as plugin for JOSM.

Is there a todo-list or a better place than github issues list? In josm trac there's so far just one "plugin crashed" ticket for kendzi3d. If there is some better place, I could write each of the things needing attention as a separate ticket somewhere, but I'll start with some of them here. I know this is still in the early stages and already gives nice results with very few tags only, but communication shall make me tag them frantically...

I've been tagging facade colours, building:levels and roof shapes, and I already have identified lots of minor glitches in rendering - and inconsistent documentation on supported tags. Even the presets linked to in the other thread on this forum use roof:orientation=*, but the plugin seems to respect building:roof:orientation=* only. I would believe some of these "issues" have been discussed in the 3d workshop, but there's little documentation of the results.

Also; for a long time the osm wiki page listed the shape pitched (and still does), but it's now "gabled" at least in the plugin; is this an agreement between other osm 3d-stuff developers, that is, from the workshop?

If I model a building with several building:part=yes ways (as horizontal slices), and I also have the building=apartments way, at the moment the JOSM plugin does not recognize this and draws both the building=* way and the building:parts, with them partially covering each other. I also think that the building=* way should have the total number of floors in the building:levels=* tag, to classify the building as having that number of floors. Currently, it just changes how much of the building gets this overlapping walls problem. So will the plugin eventually supress the building=* way automatically, or if it is tagged with building:parts=horizontal?

Where a building has one wall with a different colour, how should it be modelled (as in how it might be eventually supported)? Just an extra way with plain building:facade:color=#fffff? Doesn't work yet. Another common case I've come across is that the longer walls are one colour and the "ends" of a building are of another colour?

Offline

#18 2012-05-22 12:43:26

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

Re: Kendzi3D - 3D Viewer as plugin for JOSM.

Hello Alv,
i would say - lets write tickets together on the separate wiki subpage. I hope we can find helpers for this tool. Let´s comunicate together- if possible in german language.

The specification (roof table) from the wiki page is still incomplete because i have not enough time for finishing the description of all that 3D aspects like texturing+ multitexturing specification, street area in 3d, OSM4D specification for the developers etc.etc.

What I would suggest is the detailed specification of user interface and description of wishful functions for the new version of the Plug In.
What do You think about? Best regards,
Marek

Last edited by marek kleciak (2012-05-22 13:03:56)

Offline

#19 2012-05-22 19:58:41

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

Re: Kendzi3D - 3D Viewer as plugin for JOSM.

AndreR wrote:

Any idea?

It was problem with classloader. It was solved in v88

alv wrote:

Is there a todo-list or a better place than github issues list? In josm trac there's so far just one "plugin crashed" ticket for kendzi3d.

“Official” todo and issues list is on github, but you can write proposal wherever you like I will try to answer.

Most of agreements from workshop is write here [1] .

alv wrote:

roof:orientation

On 3d workshop we agree for using roof:orientation (fixed in v100)

alv wrote:

Also for a long time the osm wiki page listed the shape pitched (and still does), but it's now "gabled" at least in the plugin;

We agree to use name gabled but both should work in plugin. But for me pitched roof have only one surface like this [2]

alv wrote:

If I model a building with several building:part=yes ways (as horizontal slices), and I also have the building=apartments way, at the moment the JOSM plugin does not recognize this and draws both the building=* way and the building:parts, with them partially covering each other.

From the meeting. All parts and outlines from single building should be added to relation type=building . This allow to render building outline or building parts if they exist. So one of both will be rendered outlines or parts. But this hasn’t been implemented yet. Read [3] and [4]

alv wrote:

Where a building has one wall with a different colour

We  didn’t discuss on this. So it isn’t implemented. But probably in future it will be done by splitting building outline (or part)  to single walls and connecting them together using relation.


[1] - http://wiki.openstreetmap.org/wiki/Simple_3D_Buildings
[2] - http://wiki.openstreetmap.org/wiki/File … 0_parm.svg
[3] - http://wiki.openstreetmap.org/wiki/Simp … ding_parts
[4] - http://wiki.openstreetmap.org/wiki/Simp … g_relation

Offline

#20 2012-05-22 20:15:31

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

Re: Kendzi3D - 3D Viewer as plugin for JOSM.

I have solution for walls with different colors and textures but please, wait a few days and I specify this in the wiki.
And Alv - thank You for all sugestions, comments, and angagement. Please help to make it better: Kendzi do really great job, but it is really lot to do. Support is helpful, ideas are helpful.
Best regards,
Marek

Offline

#21 2012-05-28 16:32:05

AndreR
Member
Registered: 2008-05-26
Posts: 19

Re: Kendzi3D - 3D Viewer as plugin for JOSM.

[delete]

Last edited by AndreR (2012-05-28 16:46:50)

Offline

#22 2012-06-02 17:28:15

alv
Member
Registered: 2008-06-03
Posts: 196

Re: Kendzi3D - 3D Viewer as plugin for JOSM.

I see there's a possible problem with the current use of building:levels=*. High, pitched roofs, and the points below are not in the wiki, except for a mention of building:cullis:height=* at a page that describes itself as a proposal.

This came up when I was tagging an office building with two different parts; the higher part is a bit narrower and several floors higher. Say that the lower part has 4 levels and a "gabled" roof on top of that, but the apex is about, or less than, a half level's height higher than the cullis, and that the same roof continues "around" the higher part. If I then draw a second building:part=yes way for the higher, narrower part, and I add a building:min_level=4 tag to it, it appears as floating above the gabled roof. This happens, because the said gabled roof is drawn as sloping down from the "floor roof" height of the 4th level.

Composite image of a photo, and how the plugin shows it now: http://wiki.openstreetmap.org/wiki/File … _level.png

On the other hand, I know that for many single family houses the roof does slope down from the second floor ceiling at the apex, to possibly even to the ceiling height of the first floor at the side walls and the cullis. However, all it takes is one tag, if such is agreed upon, to tell whether the roof's lowest edge, or the apex is at the "height" specified by building:levels=*.

Or, the alternative is to draw yet one more way just for the building:part=roof and to use maybe just (in this case) building:min_level=4; although at the moment that makes it think that the ceiling is still at somewhere just above "level 1".

Offline

#23 2012-06-03 09:22:55

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

Re: Kendzi3D - 3D Viewer as plugin for JOSM.

alv wrote:

Composite image of a photo, and how the plugin shows it now: http://wiki.openstreetmap.org/wiki/File … _level.png

You can specify height of building using tags “height” and “min_height” this tags should solve problem with building ending on middle floor. To describe how many floors are inside roof you can use tag “roof:levels” [1] (but this hasn't been implemented yet.). And for roof height you can use tags:  roof:angle in degrees or roof:height (this is calculated from building top to cullis)

[1] - http://wiki.openstreetmap.org/wiki/Simp … dings#Roof

Offline

#24 2012-06-04 21:38:37

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

Re: Kendzi3D - 3D Viewer as plugin for JOSM.

New features:
- debug view - now it is remember settings
- support for roof type 8.0 (it is implemented little different then description on wiki)
8.0
32250457.th.png

8.0.3
803.th.png
8.0.6
806w.th.png

8.0
with set up heights
80h2.th.png
80h2.th.png

- tag emergency=fire_hydrant
firehydrant.th.png

- tag roof:shape=onion
onion.th.png
- fix for loading resource on linux
- new version of JOGL it should work now on mac, can anyone test it?

Offline

#25 2012-07-30 12:35:40

Julien Gouesse
Member
Registered: 2012-07-30
Posts: 1

Re: Kendzi3D - 3D Viewer as plugin for JOSM.

Hi

kendzi wrote:

- new version of JOGL it should work now on mac, can anyone test it?

I was looking for a way of getting the elevation/altitude of nodes with JOSM and I've just found your project, it seems very interesting. I'm responsible for engine support for the JogAmp Foundation:
http://jogamp.org/wiki/index.php/Mainta … d_Contacts

Maybe we could add your project to the main page of JOGL here:
http://jogamp.org/jogl/www/

Keep up the good work big_smile

Offline

Board footer

Powered by FluxBB