Board index FlightGear Development Scenery

osm2city.py development

Questions and discussion about enhancing and populating the FlightGear world.

Re: osm2city.py development

Postby awen » Sat Jan 02, 2021 6:43 pm

merspieler wrote in Sat Jan 02, 2021 5:45 pm:Custom? ... only for some time... :P

Do you mean that it will be merged into TerraSync really soon?
awen
 
Posts: 82
Joined: Mon Oct 19, 2020 12:39 am
Location: Minnesota
Version: 2020.4.0
OS: Mac OS X

Re: osm2city.py development

Postby merspieler » Sat Jan 02, 2021 7:00 pm

... "some time"... was rather ment in the scale of years...

The worldbuild as it is today took 2 years to get where we are right now:
We're in the progress of getting osm2city into terrasync...

This doesn't include this new feature yet, but once we've established a process for it, Updating it with new features will become easier.
Be the change you wish to see in the world, be an ally to all! Love is the answer.

If everything is going against you, keep in mind that airplanes take off against the wind, not with it.
merspieler
 
Posts: 965
Joined: Thu Oct 26, 2017 10:43 am
Location: Wish to be in YBCS
Callsign: JST935. ORI1711
IRC name: merspieler
Version: next
OS: Debian Bullseye

Re: osm2city.py development

Postby merspieler » Sun Jan 03, 2021 12:05 am

What are the expected output files for the trees?

I've set C2P_PROCESS_TREES = True as described in the docs, yet I can't see any trees nor any files that seem to belong to the trees.

Latest osm2city, sg and fg.
Be the change you wish to see in the world, be an ally to all! Love is the answer.

If everything is going against you, keep in mind that airplanes take off against the wind, not with it.
merspieler
 
Posts: 965
Joined: Thu Oct 26, 2017 10:43 am
Location: Wish to be in YBCS
Callsign: JST935. ORI1711
IRC name: merspieler
Version: next
OS: Debian Bullseye

Re: osm2city.py development

Postby vanosten » Sun Jan 03, 2021 1:58 pm

There is an additional flag for next. Only the combination results in a file per tile being written - this is experimental stuff and should not be mixed up in distributed scenery, because the side effects have not been tested.
Maintaining osm2city. Contributing with ground attack stuff to the OPRF FlightGear military-simulation community.
vanosten
 
Posts: 497
Joined: Sat Sep 25, 2010 5:38 pm
Location: Denmark - but I am Swiss
Callsign: HB-VANO
Version: latest
OS: Win 10 and Ubuntu

Re: osm2city.py development

Postby merspieler » Sun Jan 03, 2021 4:36 pm

I can't test, if I can't build it ;-)

Never intended to run it on the worldbuild... yet...

SO what flag do I need?
Be the change you wish to see in the world, be an ally to all! Love is the answer.

If everything is going against you, keep in mind that airplanes take off against the wind, not with it.
merspieler
 
Posts: 965
Joined: Thu Oct 26, 2017 10:43 am
Location: Wish to be in YBCS
Callsign: JST935. ORI1711
IRC name: merspieler
Version: next
OS: Debian Bullseye

Re: osm2city.py development

Postby Paccidat » Mon Jan 04, 2021 12:58 pm

I have successfully built some scenery with this tool for some of my local area's and it surely adds a major deal of realism to the world. When used with otho satelite images is is just fantastic
I do however face an issue, of which i do not know if it is related to the generated osm2city objects or some setting in FG.

when flying (low) over an area, often only part of the buildings are rendered. Sometimes only 20% even when i'm close. When I pause the game and walk away for a few minutes , chances are good that the buildings have appeared when I return. I have not seen this happening in the innsbrueck region that is prebuilt into FG


What parameter determines the refresh of the buildings, in terms of time/frequency and distance. I am well within de LOD boudaries when encountering these issues
Paccidat
 
Posts: 21
Joined: Thu Dec 10, 2020 6:45 pm

Re: osm2city.py development

Postby merspieler » Mon Jan 04, 2021 1:28 pm

Interresting observation...

Can you please take a closer look at the buildings....
I'd assume, complexbuildings (non rectangular) are there immediately while rectangular buildings taking some time....
Could you please check if that's the case?
Be the change you wish to see in the world, be an ally to all! Love is the answer.

If everything is going against you, keep in mind that airplanes take off against the wind, not with it.
merspieler
 
Posts: 965
Joined: Thu Oct 26, 2017 10:43 am
Location: Wish to be in YBCS
Callsign: JST935. ORI1711
IRC name: merspieler
Version: next
OS: Debian Bullseye

Re: osm2city.py development

Postby ludomotico » Mon Jan 04, 2021 1:39 pm

I've also encountered this issue. I believe it is not related to LOD, but loading times. It takes ages to load OSM buildings in big cities.

For example, LEBL - Barcelona: it takes 1-2 minutes to load completely. LERS - Reus/Tarragona (a much smaller city, 100km south of Barcelona) is loaded instantly.
User avatar
ludomotico
 
Posts: 1212
Joined: Tue Apr 24, 2012 1:01 pm
Version: nightly
OS: Windows 10

Re: osm2city.py development

Postby merspieler » Mon Jan 04, 2021 1:44 pm

ludomotico: could you please take as well a look at the building shapes, rectangular vs complex...
Be the change you wish to see in the world, be an ally to all! Love is the answer.

If everything is going against you, keep in mind that airplanes take off against the wind, not with it.
merspieler
 
Posts: 965
Joined: Thu Oct 26, 2017 10:43 am
Location: Wish to be in YBCS
Callsign: JST935. ORI1711
IRC name: merspieler
Version: next
OS: Debian Bullseye

Re: osm2city.py development

Postby Paccidat » Mon Jan 04, 2021 3:12 pm

merspieler wrote in Mon Jan 04, 2021 1:28 pm:Interresting observation...

Can you please take a closer look at the buildings....
I'd assume, complexbuildings (non rectangular) are there immediately while rectangular buildings taking some time....
Could you please check if that's the case?


I can't check right now, but I do not recall the buildings that I do see to be complex. Rather the opposite. LArger rectangular builldings are visible. Smaller with mitered roofs not.. This is over an area with a number of small villages right after a city of appx 10000 buildings (which is also only partially rendered)

All the scenery data is on an SSD and it runs on a ryzen 5 3600 CPU with 16 GB ram
Paccidat
 
Posts: 21
Joined: Thu Dec 10, 2020 6:45 pm

Re: osm2city.py development

Postby Paccidat » Mon Jan 04, 2021 7:03 pm

Here is an example :
City
Image
After a minute or 2
Image


A small village:

With few buildings
Image
With most buildings:
Image
Paccidat
 
Posts: 21
Joined: Thu Dec 10, 2020 6:45 pm

Re: osm2city.py development

Postby merspieler » Mon Jan 04, 2021 7:44 pm

hm... no clue...

I've got issues with shader buildings not appearing... certainly a different issue here...
so no clue, sorry...
Be the change you wish to see in the world, be an ally to all! Love is the answer.

If everything is going against you, keep in mind that airplanes take off against the wind, not with it.
merspieler
 
Posts: 965
Joined: Thu Oct 26, 2017 10:43 am
Location: Wish to be in YBCS
Callsign: JST935. ORI1711
IRC name: merspieler
Version: next
OS: Debian Bullseye

Re: osm2city.py development

Postby Paccidat » Mon Jan 04, 2021 9:08 pm

Just ran into this! Rather nice at 5:30 to 6:10 minutes!
https://youtu.be/-dFlF688kPQ

Edit: Wrong topic. I removed it earlier but apparently it stayed nonetheless
Last edited by Paccidat on Tue Jan 05, 2021 6:23 am, edited 1 time in total.
Paccidat
 
Posts: 21
Joined: Thu Dec 10, 2020 6:45 pm

Re: osm2city.py development

Postby merspieler » Mon Jan 04, 2021 9:18 pm

can't see anything at these timestamps....
Be the change you wish to see in the world, be an ally to all! Love is the answer.

If everything is going against you, keep in mind that airplanes take off against the wind, not with it.
merspieler
 
Posts: 965
Joined: Thu Oct 26, 2017 10:43 am
Location: Wish to be in YBCS
Callsign: JST935. ORI1711
IRC name: merspieler
Version: next
OS: Debian Bullseye

Re: osm2city.py development

Postby awen » Mon Jan 04, 2021 9:56 pm

I have a similar issue loading objects in general. When I am at the default cockpit view, only front-facing objects are loaded, and if I try to move the POV around, there is a lag before other objects/buildings appear. This is even true at very small places/airports. I do not know if it is designed to do so.
awen
 
Posts: 82
Joined: Mon Oct 19, 2020 12:39 am
Location: Minnesota
Version: 2020.4.0
OS: Mac OS X

PreviousNext

Return to Scenery

Who is online

Users browsing this forum: No registered users and 3 guests