OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

#26 2012-08-28 21:08:23

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

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

Thanks Julien Gouesse. Sorry but I don't look here for while. If you think this project to be worthy of put on this site, I will be happy to see it there.


Currently I work on windows like described here:
http://openstreetmap.pl/kendzi/Kendzi3d … ldings.pdf

new:
flatwindows.th.png

old one:
oldwindows.th.png

Offline

#27 2012-09-22 12:49:50

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

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

In new release:
- completely new building builder
- basic support for building as multi-polygons without holes
So you can change color, material or assign windows to single wall.
buildingmultipolygon.th.png

Example:
http://www.openstreetmap.org.pl/kendzi/ … ample4.osm

- windows, entrance build into walls (tags building=entrance, building=window)
old:
oldwindows.th.png
new:
flatwindows.th.png

It is possible to tag mixed window and entrance with tags: width=X and height=Y

- windows rows as multitextures. By assigning tag windows=X you can setup windows rows. Windows will be repeated on each level.
- roof and facade colors as colored textures
- support for tags: building:levels:aboveground and building:levels:underground

bugs:
- it is far from ready
- simple  multipolybons without holes
- currently all textures are mixed with color. So materials configuration need new parameter “colorable” like in osm2world

I would like to remind that this is not in ready state. So I will by grateful for any advice or bug report.

Offline

#28 2012-09-24 08:38:15

awoland
Member
From: Russia
Registered: 2011-02-07
Posts: 6
Website

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

The current version of the plugin does not support rendering multpolygon relations such as buildings (building=*) and their parts (building:part=yes) and outer contours (building=outline)?

Offline

#29 2012-09-24 17:36:41

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

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

Do you have current version v111? It should support multipolygon relation with tags:
type=multipolygon
building=* or building:part=*

Please see example:
http://www.openstreetmap.org.pl/kendzi/ … ample4.osm

Offline

#30 2012-09-24 17:59:15

awoland
Member
From: Russia
Registered: 2011-02-07
Posts: 6
Website

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

I use latest version from github.

Offline

#31 2012-09-24 18:45:58

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

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

Jar on gitHub was old. I updated it. Please use JOSM plugin manager for download/update plugin. Edit > Preferences > Plugin tab

Offline

#32 2012-09-29 13:42:36

Tordanik
Moderator
From: Germany
Registered: 2008-06-17
Posts: 2,269
Website

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

I have played around with the latest version of your plugin and noticed that you are indeed able to combine multitexture rendering of windows with the building=window node mapping technique. That's an interesting feature, but I wonder about one aspect of this approach. (To clarify: The approach based on wall segments tagged with the number and attributes of windows is not affected.)

Namely, I assume (and it looks like it based on the debug wireframe) that you need to create additional vertices within the building to achieve this, i.e. vertices on the building's base that do not correspond to on a node in OpenStreetMap. Inserting additional vertices like that is something I have generally tried to avoid. The reason is that two adjacent areas will not necessarily be rendered visually clean unless they precisely share vertices. If you insert an vertex into only one of them, creating a "t-junction", this may cause gaps or other graphical glitches because of the limited precision of the rendering - particularly if you have large scenes where the floating point numbers become less dense. This might show up in cases where the building outline shares OSM nodes with an area of e.g. grass or asphalt directly connected to the building.

Do you have taken steps to avoid this or do you expect that it simply will not cause problems?

On an unrelated note, it appears that your code supports multipolygons with non-closed outer ways for the walls only if these ways are either all clockwise or all counterclockwise. Consistent winding is not normally required for multipolygon members in OSM, though. Is this a known limitation?

Offline

#33 2012-09-30 08:07:30

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

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

Thanks for testing my plugin smile

Tordanik wrote:

Namely, I assume (and it looks like it based on the debug wireframe) that you need to create additional vertices within the building to achieve this, i.e. vertices on the building's base that do not correspond to on a node in OpenStreetMap. 

I don't now if I understand the problem. I'm using nodes with window definition (tagged building=window). In my implementation windows are cut out from wall. The reason that you can see vertical lines like this:

windowsdebug.th.png


It is that i don't implemented any real 2d polygon union and intersection algorithm. I emulate this by simply cutting polygon by line. Cutting creates additional vertex which you can see by vertical line (first cut) and t-junction. But this can be easily fixed replacing my algorithm and using polygon union/ intersection function. Maybe you know some opens source (no gpl inside) library for 2d polygon union/intersection or algorithm description?

Currently this implementation don't cause any visible problems so fixing this is not priority.


Tordanik wrote:

On an unrelated note, it appears that your code supports multipolygons with non-closed outer ways for the walls only if these ways are either all clockwise or all counterclockwise. 

Multipolygons are work in progress so I fixed this.

I wonder if we can assume for buildings that:
- end or begin of not closed way is always connected to only one way (no Y-junction)
- inner never touch outer
- inner never touch other inner

Offline

#34 2012-11-03 20:47:28

Amiga4000
Member
Registered: 2012-10-07
Posts: 76

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

Moin

Just to note: current JOSM plugin had a link to openstreetmap.pl - which is no more reachable.
It moved to openstreetmap.org.pl
Just to note you

Amiga4000

Offline

#35 2012-11-04 16:55:41

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

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

I had change links, so both plugin and preset should be available by JOSM plugin and preset manager.

Offline

#36 2012-11-28 09:23:27

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

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

Hi Kendzi,

I try to get the latest version working using the JOSM plugin manager. But If I restart, I get

The plugin requires: lemdzid3d-jogl, log4j

.
Using the ubuntu package manager, I installed already log4j and jogl2 of course, so what is missing?


privater Account von KVLA-HRO-Mei

Offline

#37 2012-11-28 14:30:34

Amiga4000
Member
Registered: 2012-10-07
Posts: 76

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

Moin

Kendzi did change some parts and moved some functions out into several JOSM plugins. Go to JOSM settings for plugins and install those two plugins extra, restart JOSM and 3D does work again.

Amiga4000

Offline

#38 2012-12-31 22:36:05

viw
Member
Registered: 2010-05-15
Posts: 2,623

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

At the moment I could not download Kendzi3d Plugin or the simple3D builsdings in Josm. Do I something wrong?

Offline

#39 2013-01-01 11:53:13

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

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

viw wrote:

At the moment I could not download Kendzi3d Plugin or the simple3D builsdings in Josm. Do I something wrong?

I just tested download and it works fine. Perhaps there was a problem with hosting. Can you check today?

Offline

#40 2013-01-01 13:25:10

viw
Member
Registered: 2010-05-15
Posts: 2,623

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

I try agian wihtout any success.
It seems to be a problem to reach http://www.openstreetmap.org.pl

Offline

#41 2013-01-01 21:12:16

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

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

viw wrote:

I try agian wihtout any success.
It seems to be a problem to reach http://www.openstreetmap.org.pl

I ask someone else for test and it is working. Do you use proxy, vpn or non standard dns server? Can you ping host www.openstreetmap.org.pl ? It should return ip 195.2.255.33.

If it is problem width dns server, you can try to setup as primary dns ip: 62.129.252.31 (from dns.home.pl)

Offline

#42 2013-01-02 16:25:01

viw
Member
Registered: 2010-05-15
Posts: 2,623

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

I can send ping to www.openstreetmap.org.pl the IP is 195.2.255.33 too. But I get only timeout.

Offline

#43 2013-01-03 15:57:34

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

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

Hi again I tried to get Kendzi3D running, but on JOSM startup (NAG screen still open), a new Kendzi3D window appears but the whole editor startup is blocked (still NAG screen displaying "checking plugin requirements kendzi3d)

Tried to log something on console, but not very detailed IMHO:

matthias@aterferum:~$ java -jar /usr/share/java/josm-latest.jar
lade Plugin 'kendzi3d-jogl' (Version 7)
lade Plugin 'log4j' (Version 28968)
lade Plugin 'openstreetbugs' (Version 28807)
lade Plugin 'buildings_tools' (Version 28807)
lade Plugin 'kendzi3d' (Version 146)
copying file: /lib/jogl-2.0-b57-20120502/jogl-all-natives-linux-amd64.jar exist skiping

copying file: /lib/jogl-2.0-b57-20120502/jogl-all-natives-linux-i586.jar exist skiping

copying file: /lib/jogl-2.0-b57-20120502/jogl-all-natives-macosx-universal.jar exist skiping

copying file: /lib/jogl-2.0-b57-20120502/jogl-all-natives-windows-amd64.jar exist skiping

copying file: /lib/jogl-2.0-b57-20120502/jogl-all-natives-windows-i586.jar exist skiping

copying file: /lib/jogl-2.0-b57-20120502/jogl.all.jar exist skiping

copying file: /lib/jogl-2.0-b57-20120502/gluegen-rt-natives-linux-amd64.jar exist skiping

copying file: /lib/jogl-2.0-b57-20120502/gluegen-rt-natives-linux-i586.jar exist skiping

copying file: /lib/jogl-2.0-b57-20120502/gluegen-rt-natives-macosx-universal.jar exist skiping

copying file: /lib/jogl-2.0-b57-20120502/gluegen-rt-natives-windows-amd64.jar exist skiping

copying file: /lib/jogl-2.0-b57-20120502/gluegen-rt-natives-windows-i586.jar exist skiping

copying file: /lib/jogl-2.0-b57-20120502/gluegen-rt.jar exist skiping

loading lib: /home/matthias/.josm/plugins/kendzi3d-jogl/lib/jogl-2.0-b57-20120502/jogl-all-natives-linux-amd64.jar
loading lib: /home/matthias/.josm/plugins/kendzi3d-jogl/lib/jogl-2.0-b57-20120502/jogl-all-natives-linux-i586.jar
loading lib: /home/matthias/.josm/plugins/kendzi3d-jogl/lib/jogl-2.0-b57-20120502/jogl-all-natives-macosx-universal.jar
loading lib: /home/matthias/.josm/plugins/kendzi3d-jogl/lib/jogl-2.0-b57-20120502/jogl-all-natives-windows-amd64.jar
loading lib: /home/matthias/.josm/plugins/kendzi3d-jogl/lib/jogl-2.0-b57-20120502/jogl-all-natives-windows-i586.jar
loading lib: /home/matthias/.josm/plugins/kendzi3d-jogl/lib/jogl-2.0-b57-20120502/jogl.all.jar
loading lib: /home/matthias/.josm/plugins/kendzi3d-jogl/lib/jogl-2.0-b57-20120502/gluegen-rt-natives-linux-amd64.jar
loading lib: /home/matthias/.josm/plugins/kendzi3d-jogl/lib/jogl-2.0-b57-20120502/gluegen-rt-natives-linux-i586.jar
loading lib: /home/matthias/.josm/plugins/kendzi3d-jogl/lib/jogl-2.0-b57-20120502/gluegen-rt-natives-macosx-universal.jar
loading lib: /home/matthias/.josm/plugins/kendzi3d-jogl/lib/jogl-2.0-b57-20120502/gluegen-rt-natives-windows-amd64.jar
loading lib: /home/matthias/.josm/plugins/kendzi3d-jogl/lib/jogl-2.0-b57-20120502/gluegen-rt-natives-windows-i586.jar
loading lib: /home/matthias/.josm/plugins/kendzi3d-jogl/lib/jogl-2.0-b57-20120502/gluegen-rt.jar
copying file from jar: /resources/log4j.properties to: log4j.properties
end of copying bytes: 600 from file: /resources/log4j.properties at url: jar:file:/home/matthias/.josm/plugins/kendzi3d.jar!/resources/log4j.properties
copying file from jar: /lib/vecmath.jar to: /lib/vecmath.jar
end of copying bytes: 318956 from file: /lib/vecmath.jar at url: jar:file:/home/matthias/.josm/plugins/kendzi3d.jar!/lib/vecmath.jar
copying file from jar: /lib/swing-layout-1.0.jar to: /lib/swing-layout-1.0.jar
end of copying bytes: 140545 from file: /lib/swing-layout-1.0.jar at url: jar:file:/home/matthias/.josm/plugins/kendzi3d.jar!/lib/swing-layout-1.0.jar
copying file from jar: /lib/ejml-0.20.jar to: /lib/ejml-0.20.jar
end of copying bytes: 301269 from file: /lib/ejml-0.20.jar at url: jar:file:/home/matthias/.josm/plugins/kendzi3d.jar!/lib/ejml-0.20.jar
copying file from jar: /lib/guice-3.0.jar to: /lib/guice-3.0.jar
end of copying bytes: 710683 from file: /lib/guice-3.0.jar at url: jar:file:/home/matthias/.josm/plugins/kendzi3d.jar!/lib/guice-3.0.jar
copying file from jar: /lib/javax.inject.jar to: /lib/javax.inject.jar
end of copying bytes: 2497 from file: /lib/javax.inject.jar at url: jar:file:/home/matthias/.josm/plugins/kendzi3d.jar!/lib/javax.inject.jar
copying file from jar: /lib/aopalliance.jar to: /lib/aopalliance.jar
end of copying bytes: 4467 from file: /lib/aopalliance.jar at url: jar:file:/home/matthias/.josm/plugins/kendzi3d.jar!/lib/aopalliance.jar
copying file from jar: /lib/poly2tri-core-0.1.1-SNAPSHOT.jar to: /lib/poly2tri-core-0.1.1-SNAPSHOT.jar
end of copying bytes: 61858 from file: /lib/poly2tri-core-0.1.1-SNAPSHOT.jar at url: jar:file:/home/matthias/.josm/plugins/kendzi3d.jar!/lib/poly2tri-core-0.1.1-SNAPSHOT.jar
copying file from jar: /lib/slf4j-api-1.5.10.jar to: /lib/slf4j-api-1.5.10.jar
end of copying bytes: 23659 from file: /lib/slf4j-api-1.5.10.jar at url: jar:file:/home/matthias/.josm/plugins/kendzi3d.jar!/lib/slf4j-api-1.5.10.jar
copying file from jar: /lib/slf4j-jdk14-1.5.10.jar to: /lib/slf4j-jdk14-1.5.10.jar
end of copying bytes: 8830 from file: /lib/slf4j-jdk14-1.5.10.jar at url: jar:file:/home/matthias/.josm/plugins/kendzi3d.jar!/lib/slf4j-jdk14-1.5.10.jar
loading lib: /home/matthias/.josm/plugins/kendzi3d/lib/vecmath.jar
loading lib: /home/matthias/.josm/plugins/kendzi3d/lib/swing-layout-1.0.jar
loading lib: /home/matthias/.josm/plugins/kendzi3d/lib/ejml-0.20.jar
loading lib: /home/matthias/.josm/plugins/kendzi3d/lib/guice-3.0.jar
loading lib: /home/matthias/.josm/plugins/kendzi3d/lib/javax.inject.jar
loading lib: /home/matthias/.josm/plugins/kendzi3d/lib/aopalliance.jar
loading lib: /home/matthias/.josm/plugins/kendzi3d/lib/poly2tri-core-0.1.1-SNAPSHOT.jar
loading lib: /home/matthias/.josm/plugins/kendzi3d/lib/slf4j-api-1.5.10.jar
loading lib: /home/matthias/.josm/plugins/kendzi3d/lib/slf4j-jdk14-1.5.10.jar
3d test
reciveFileUrl: /home/matthias/.josm/plugins/kendzi3d/models/pointModelLayerInternal.xml
log4j:WARN No appenders could be found for logger (kendzi.josm.kendzi3d.service.impl.PointModelService).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
reciveFileUrl: /home/matthias/.josm/plugins/kendzi3d/models/pointModelLayer.xml
reciveFileUrl: /home/matthias/.josm/plugins/kendzi3d/resources/metadata.properties
reciveFileUrl: /home/matthias/.josm/plugins/kendzi3d/textures/wikimetadata.properties
reciveFileUrl: /home/matthias/.josm/plugins/kendzi3d/resources/textureLibraryInternal.xml
reciveFileUrl: /home/matthias/.josm/plugins/kendzi3d/resources/textureLibraryWiki.xml
load text libr: 72
tst2
Werkzeugleistenaktion 1306318208_rebuild__24 überschrieben: kendzi.josm.kendzi3d.action.CleanUpAction wird kendzi.josm.kendzi3d.action.PointModelListAction
Werkzeugleistenaktion 1306318261_debugger__24 überschrieben: kendzi.josm.kendzi3d.action.GroundToggleAction wird kendzi.josm.kendzi3d.action.DebugToggleAction
Werkzeugleistenaktion 1306318261_debugger__24 überschrieben: kendzi.josm.kendzi3d.action.DebugToggleAction wird kendzi.josm.kendzi3d.action.TextureFilterToggleAction
Werkzeugleistenaktion 1323558253_wikipedia-icon_24 überschrieben: kendzi.josm.kendzi3d.action.WikiTextureLoaderAction wird kendzi.josm.kendzi3d.action.LoadTextureLibraryAction
Werkzeugleistenaktion ohne Namen: kendzi.josm.kendzi3d.action.ExportAction
Werkzeugleistenaktion 1323558253_wikipedia-icon_24 überschrieben: kendzi.josm.kendzi3d.action.LoadTextureLibraryAction wird kendzi.josm.kendzi3d.action.ShowPluginDirAction

Any ideas?


privater Account von KVLA-HRO-Mei

Offline

#44 2013-01-03 20:38:17

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

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

!i! wrote:

Any ideas?

Please repack file
/home/matthias/.josm/plugins/kendzi3d.jar
Inside this archive copy file /resources/log4j.properties to location /log4j.properties

Run JOSM in console as before and send logs.

Is anything displayed inside Kendzi3D window?

Offline

#45 2013-01-06 18:39:41

viw
Member
Registered: 2010-05-15
Posts: 2,623

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

kendzi wrote:
viw wrote:

I try agian wihtout any success.
It seems to be a problem to reach http://www.openstreetmap.org.pl

I ask someone else for test and it is working. Do you use proxy, vpn or non standard dns server? Can you ping host www.openstreetmap.org.pl ? It should return ip 195.2.255.33.

If it is problem width dns server, you can try to setup as primary dns ip: 62.129.252.31 (from dns.home.pl)

Back at home I could download the plugin without any problems. Maybe you can host the Kendzi3D where the other 2 plugins are hosted.

Offline

#46 2013-01-06 23:02:53

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

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

viw wrote:

Back at home I could download the plugin without any problems. Maybe you can host the Kendzi3D where the other 2 plugins are hosted.

Plugin was moved to different hosting yesterday, so it should work. I will move preset tomorrow.

Offline

#47 2013-01-07 07:43:42

viw
Member
Registered: 2010-05-15
Posts: 2,623

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

kendzi wrote:
viw wrote:

Back at home I could download the plugin without any problems. Maybe you can host the Kendzi3D where the other 2 plugins are hosted.

Plugin was moved to different hosting yesterday, so it should work. I will move preset tomorrow.

Thank you! But now at home I can't test it by the other internet provider. Here the download work well and openstreetmap.org.pl is working too. For me it was interessting that I could donwload too plugins and but not the third main plugin.

Last edited by viw (2013-01-07 07:45:04)

Offline

#48 2013-01-08 22:06:55

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

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

viw wrote:

But now at home I can't test it by the other internet provider. Here the download work well and openstreetmap.org.pl is working too. For me it was interessting that I could donwload too plugins and but not the third main plug

For me it is mystery why it wasn't working. Where was complaining from other people too. But it is problem with hosting. I hope that new location will work better. I will move all files in few days.

Offline

#49 2013-02-24 17:54:11

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

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

Hy, one question about the dormers:

What if the dormer don't start at the edge of the roof. With the roof rows it is not optimal. it seems that there are only 5 rows possible, so i can let start a dormer at only 5 different points. it would be better if i could set the value in meter.
there is a tag in wiki:

http://wiki.openstreetmap.org/wiki/DE:3 … ene_Gauben

3dr:dormer:1:depth=1m but it seems that it is not supported in the viewer.

EDIT:
i've seen you support several tags '...:color'. i think in OSM there is always used '...:colour', the british notation.

Last edited by things-change (2013-02-24 18:25:44)

Offline

#50 2013-02-25 19:25:02

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

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

things-change wrote:

it seems that there are only 5 rows possible

I currently read only 5 rows. How many rows should be allowed?

things-change wrote:

3dr:dormer:1:depth=1m

This way of tagging dormers was shown as idea and it hasn't been implemented yet. It is base on dormers index and maybe it isn't best way to do it. If you have any ideas please write them on wiki in discussion tab (best in English).

things-change wrote:

i've seen you support several tags '...:color'

Yes officially it is used colour tag in OSM, but many people use color so I support them both.

Offline

Board footer

Powered by FluxBB