OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

#76 2013-09-18 19:10:31

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

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

Zkir wrote:

Is it possible to support color names, from this list

done in v217

Offline

#77 2013-09-19 20:31:21

Dinamik
Member
Registered: 2010-08-12
Posts: 1,054

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

kendzi,
1) There is link to message here and link to osm-file with examples is broken there.

2) About deactivation of volume rendering of building outlines - I want to add, that joining to relation type=building is not the only simple method to recognize building, which has dividing to parts. Another variant is detecting a tag building:parts= . On the one hand, if you don't want, of course, you can not add this tag, but, on the other hand, you can use this tag right now in that buildings, which already have it (more that 1.000 buildings have this tag at this moment).

Could you, please, deactivate volume rendering of buildings (building= ), which also have tag building:parts= ?

Last edited by Dinamik (2013-09-20 10:24:11)

Offline

#78 2013-09-19 21:04:43

Zkir
Member
From: Хрустальная Москва
Registered: 2009-02-21
Posts: 6,091

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

kendzi wrote:
Zkir wrote:

Is it possible to support color names, from this list

done in v217

Great! Thanks!


Истинные слова не не приятны, приятные слова не истинны.
True words are unpleasant; pleasant words are untrue.

Offline

#79 2013-09-20 15:28:33

Felis Pimeja
Member
Registered: 2010-10-27
Posts: 1,033

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

kendzi, could you please check out this building. When in Josm the plugin doesn't render it untill you remove roof:material tags or roof:colour tags. Can't figure out what's wrong with it.

Offline

#80 2013-09-21 10:20:28

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

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

Dinamik wrote:

Could you, please, deactivate volume rendering of buildings (building= ), which also have tag building:parts= ?

Added it in v220. If there is building:parts=* tag and there is no tag building:part=* building will not be rendered.
However i think all parts should be put to relation too.

Felis Pimeja wrote:

kendzi, could you please check out this building. When in Josm the plugin doesn't render it untill you remove roof:material tags or roof:colour tags. Can't figure out what's wrong with it.

Bug fixed in v222. But i think it should be used tag steel not stal

Offline

#81 2013-09-21 10:22:26

Felis Pimeja
Member
Registered: 2010-10-27
Posts: 1,033

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

kendzi wrote:

...
Bug fixed in v222. But i think it should be used tag steel not stal

You are right, of course. Thanks.

Offline

#82 2013-09-22 09:34:34

Dinamik
Member
Registered: 2010-08-12
Posts: 1,054

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

kendzi wrote:
Dinamik wrote:

Could you, please, deactivate volume rendering of buildings (building= ), which also have tag building:parts= ?

Added it in v220. If there is building:parts=* tag and there is no tag building:part=* building will not be rendered.
However i think all parts should be put to relation too.

Thank you! Of course, these things are not mutually exclusive.

--

As I see, this building:part is not rendered because of building:part=dormitory. I think, plugin should work with all building:part= (if we can use building=commercial and building=dormitory, we should also have possibility to use building:part=commercial and building:part=dormitory, if they are parts of building=yes.

Last edited by Dinamik (2013-09-22 09:36:27)

Offline

#83 2013-09-22 10:02:03

Zkir
Member
From: Хрустальная Москва
Registered: 2009-02-21
Posts: 6,091

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

kendzi wrote:

If there is building:parts=* tag and there is no tag building:part=* building will not be rendered.

There is also a case when  building:part=no. Please consider it also wink


Истинные слова не не приятны, приятные слова не истинны.
True words are unpleasant; pleasant words are untrue.

Offline

#84 2013-09-22 11:49:02

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

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

Tags building:part=no and building:parts=*  were added in v224.

Offline

#85 2013-09-22 13:10:52

Dinamik
Member
Registered: 2010-08-12
Posts: 1,054

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

I don't see rendered building:part=yes (without building=yes) in v224, only building=yes (without building:parts=) and building=yes + building:part=yes (without building:parts) are rendered.

Last edited by Dinamik (2013-09-22 15:15:20)

Offline

#86 2013-09-22 15:25:59

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

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

Check in v226, if it isn't working please send example.

Offline

#87 2013-09-23 14:13:57

Zkir
Member
From: Хрустальная Москва
Registered: 2009-02-21
Posts: 6,091

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

Hi kendzi,

There is menu item in the plug-in "3d->Adv->Export models to files". Does it work? I only get message about unexpected error...

Is it possible to support *.x file format as export format?
http://en.wikipedia.org/wiki/.x
http://msdn.microsoft.com/en-us/library … s.85).aspx

I need models in x format because, because models in this format are required for the CityGuide. CityGuide is navigation program with support of OSM-maps, it is capable of 3d rendering, but it requires models in this format.

I am now searching for a way to obtain models from OSM, at least for the most notable buildings.

Last edited by Zkir (2013-09-23 14:26:45)


Истинные слова не не приятны, приятные слова не истинны.
True words are unpleasant; pleasant words are untrue.

Offline

#88 2013-09-23 18:33:00

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

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

Zkir wrote:

There is menu item in the plug-in "3d->Adv->Export models to files". Does it work? I only get message about unexpected error...

This option should work. It provide very basic support for exporting models to collada file. Output location is hard-coded to C:\out\export.0.dae /multiText/out.dae. Output directory have to exist before you start export.

If it is not working please send me an exception.

The bigest problem with exporting models from application is that I'm using multi-layer-textures for windows or colored walls. Unfortunately I didn't find any universal 3d model format which support it. It is theoretically possible to do with collada, but non of viewer I test is supporting it. X3D file have support for multi-layer-textures but it don't work with blender or few viewer I test. The most popular 3d file format like OBJ don't support multi-layer-textures at all.

I check X-file format, it seam like some binary blob from Microsoft DirectX, I don't plan to add exporter for it, but it should be possible to convert it from collada to X.

So if you have any idea witch file format could be used, please write.

Last edited by kendzi (2013-09-23 18:57:31)

Offline

#89 2013-09-23 20:03:01

Sergey Astakhov
Member
From: St.Petersburg, Russia
Registered: 2009-11-13
Posts: 5,536

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

kendzi wrote:

I check X-file format, it seam like some binary blob from Microsoft DirectX

Documentation on MSDN is very unfrendly. There is several variants of format, both binary and text - http://msdn.microsoft.com/en-us/library/bb173014.aspx
Check also these page with examples of it:

http://paulbourke.net/dataformats/directx/
http://ru.wikipedia.org/wiki/X_(%D1%84% … %BE%D0%B2) (in russian)

Offline

#90 2013-09-23 21:21:46

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

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

I fount this plug-in for blender to export x files. You can easily import my collada output to blender.

Are you sure that CityGuide is not supporting OBJ files?

Because I would rather add OBJ exporter then X file. Obj format is much more common and better documented.

Offline

#91 2013-09-23 21:55:17

Zkir
Member
From: Хрустальная Москва
Registered: 2009-02-21
Posts: 6,091

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

I get the following error:

java.lang.NoClassDefFoundError: kendzi/jogl/model/geometry/Model
        at kendzi.kendzi3d.collada.ColladaExport.addModel(ColladaExport.java:105
)
        at kendzi.josm.kendzi3d.jogl.model.export.ExportWorker.run(ExportWorker.
java:69)
Caused by: java.lang.ClassNotFoundException: kendzi.jogl.model.geometry.Model
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 2 more

Are you sure that CityGuide is not supporting OBJ files?

There is API, which accepts only *.x format. But i guess I can convert from OBJ, if I get OBJ output.

Last edited by Zkir (2013-09-23 22:04:39)


Истинные слова не не приятны, приятные слова не истинны.
True words are unpleasant; pleasant words are untrue.

Offline

#92 2013-09-24 17:41:55

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

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

Zkir wrote:

I get the following error:

I exporter is fixed in v231. You can try convert output to x using blender.

I saw discussion about hipped roof:

Zkir wrote:

  ...
281059881.jpg
Rf-iso1.gif

Both roofs you can test in kendzi3d:
First example can be tag with roof:shape=hipped. It generate square like roof even for non square building outline. Maybe it should be named square hipped?
Second with tag roof:shape=9.0. It generate roof with const angles. For square like outline, output will be same as for hipped roof.
Roof type 9.0 need some better name but I don't known how it should be named.

Please test them.

Last edited by kendzi (2013-09-24 17:42:34)

Offline

#93 2013-09-24 18:36:33

Zkir
Member
From: Хрустальная Москва
Registered: 2009-02-21
Posts: 6,091

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

Kendzi,
o-sewa ni narimasu I am your debtor.
Export to collada works, and I even can open results in Deep Exploration. I still need to do some testing, but looks i can do what i need)

--
The first pic is rather about translation of the word hip into russian.

if you ask my opinion, it is quite simple:
what is now called hipped should be renamed to primitive_hipped or be dropped. I do not know any building to which it can be applicable.
roof:shape=9.0 should be renamed to hipped. It is realy what is needed.
It also works with simple rectangular buildings.

hipped_roof.png
Both buildings on the screenshot have roof:shape=9.0, but should have roof:shape=hipped.

Last edited by Zkir (2013-09-24 18:37:11)


Истинные слова не не приятны, приятные слова не истинны.
True words are unpleasant; pleasant words are untrue.

Offline

#94 2013-09-24 21:33:45

Dinamik
Member
Registered: 2010-08-12
Posts: 1,054

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

7d130f9c43a9.png
I think, that it is incorrect rendering. When I write building:levels=1 + roof:height=3, I want to say, that building have one level and roof with height with 3 meters, and a roof is above base of building. I think, that approximate height of building (if there is no roof:height building:height or height) should be calculated as building:levels*3 + roof:height (or roof:levels*3, if there is no roof:height).

Last edited by Dinamik (2013-09-25 05:08:48)

Offline

#95 2013-09-24 21:45:57

Zkir
Member
From: Хрустальная Москва
Registered: 2009-02-21
Posts: 6,091

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

However if there are building:height=10 and roof:height=3 it should mean that total height of the building is 10, not 13.


Истинные слова не не приятны, приятные слова не истинны.
True words are unpleasant; pleasant words are untrue.

Offline

#96 2013-09-24 22:07:59

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

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

How it should behave when there is only building:levels tag?
What if it is building:levels and roof:angle tag?

Offline

#97 2013-09-24 22:40:47

Zkir
Member
From: Хрустальная Москва
Registered: 2009-02-21
Posts: 6,091

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

I guess that those are questions with no true answer. I also do not completly agree with Dinamic.  3 meters most probably make a story smile

Please consider the following buildings:
i?id=104287386-25-72&n=21
is it a levels=1 or levels=2? 

i?id=105610843-08-72&n=21
this  one is definitly  levels=1

Last edited by Zkir (2013-09-24 22:41:33)


Истинные слова не не приятны, приятные слова не истинны.
True words are unpleasant; pleasant words are untrue.

Offline

#98 2013-09-24 22:57:10

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

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

Zkir wrote:

Please consider the following buildings:
i?id=104287386-25-72&n=21
is it a levels=1 or levels=2?

I think it should be tagged with
levels=1 and roof:levels=1


Zkir wrote:

i?id=105610843-08-72&n=21
this  one is definitly  levels=1

levels=1 and roof:height=0.5


Dinamik wrote:

I think, that approximate height of building (if there is no roof:height ?height?) should be calculated as building:levels*3 + roof:height (or roof:levels*3, if there is no roof:height)

In case when height is not setup:
when there is building:levels and roof:levels tag kendzi3d behave exactly how you described.

when there is building:levels and roof:height tag, I thing it be should as it is. So roof height is sub from building height calculated based on levels. But maybe some one have any other idea?

Offline

#99 2013-09-25 05:37:56

Dinamik
Member
Registered: 2010-08-12
Posts: 1,054

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

kendzi wrote:
Zkir wrote:

Please consider the following buildings:
http://im6-tub-ru.yandex.net/i?id=104287386-25-72&n=21
is it a levels=1 or levels=2?

I think it should be tagged with
levels=1 and roof:levels=1

What will you say, if I show you another buildings?
proekty-dachnyh-domov-iz-penoblokov-3.jpg
81e6a5a53a58.jpg
Do you want to say, that tagging building:levels=1 + roof:height=2 is wrong?

Do you want to say, that such model (tags building=yes + building:levels=1 + roof:height=2 + roof:shape=gabled) is correct?
5913529c3aef.png

Last edited by Dinamik (2013-09-25 08:50:37)

Offline

#100 2013-09-25 08:23:26

Zkir
Member
From: Хрустальная Москва
Registered: 2009-02-21
Posts: 6,091

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

What about this:
dom_shalash.jpg
is it building:levels=0? wink

In my opinion building:* tags should express overall stats of a building: total height and total number of levels, including attic/loft

Last edited by Zkir (2013-09-25 08:28:20)


Истинные слова не не приятны, приятные слова не истинны.
True words are unpleasant; pleasant words are untrue.

Offline

Board footer

Powered by FluxBB