Board index FlightGear Development Scenery

Improving Half Moon Bay (KHAF)

Questions and discussion about enhancing and populating the FlightGear world.

Re: Improving Half Moon Bay (KHAF)

Postby wkitty42 » Sun Jul 12, 2020 4:16 pm

it really sounds like you want the fence creation tool and modify it to place your border trees...

but don't fall victim to the "too much detail" bug... too many trees, even billboarded ones, can easily bring a machine to its knees just like a well developed city area (eg: paris france)...
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: Improving Half Moon Bay (KHAF)

Postby openflight » Sun Jul 12, 2020 4:59 pm

Some progress in getting object data from UFO in the console. I can now get the locations of objects fairly easily.

The thing is to come up with a list for Minimum Level of Detail, that is, about 10 15 objects that I want to see when I approach the airport and taxi in. Clumps of trees and 3-15 buildings on the airport is a must, plus the houses in the approach path, there must be about 200 of them. 200 Clicks then.

I tested the frame rates with about 100 3d tree objects and it turned out just ok so frame rates are always a concern and I test for speed after each modification.
openflight
 
Posts: 487
Joined: Fri Sep 16, 2011 12:14 pm
Version: 1 2 2018
OS: Linux Mint 19.3

Re: Improving Half Moon Bay (KHAF)

Postby openflight » Mon Jul 13, 2020 1:57 am

Minimum Level of Detail

- 15 trees on the right side of the runway
- Cafe building
- Large hangar on left side of runway (approach 30)
-100 houses on the left side near start of runway
- 300 houses at the end of the runway
-Water tower and observatory buildings
- Low row of bushes on the right side of runway
-Around 100 trees on the left hand extreme after the runway

Graphics card: prepare yourself.
openflight
 
Posts: 487
Joined: Fri Sep 16, 2011 12:14 pm
Version: 1 2 2018
OS: Linux Mint 19.3

Re: Improving Half Moon Bay (KHAF)

Postby openflight » Mon Jul 13, 2020 7:00 am

Correction: can select-all and copy output so that is done. No need for scripts...


Code: Select all
# w130n30/w123n37/942050.stg
n key
OBJECT_SHARED Models/Airport/hangar.ac -122.35725749 37.61354469 -0.1369 0.0
OBJECT_SHARED Models/Airport/radar.xml -122.35725180 37.61354425 -0.1370 0.0
OBJECT_SHARED Models/Airport/shelter.ac -122.35728062 37.61354706 -0.1366 0.0
OBJECT_SHARED Models/Airport/shelter.ac -122.38926078 37.61644469 3.9703 0.0
openflight
 
Posts: 487
Joined: Fri Sep 16, 2011 12:14 pm
Version: 1 2 2018
OS: Linux Mint 19.3

Re: Improving Half Moon Bay (KHAF)

Postby openflight » Mon Jul 13, 2020 1:04 pm

Code: Select all
Correction again: difficult to obtain all the objects, for example 30 trees planted , only 15 copied and pasted, then spreadsheet to clear formatting.

This works now: selects only object line needed (python 3.6)

Code: Select all
rd = open ("ufo-model-export.xml", "r")


# Read list of lines
out = [] # list to save lines
while True:
        # Read next line
        line = rd.readline()
        # print(type(line))
        if "OBJECT" in line:
          strlen=len(line)
          #print(strlen)
          #print(line)
          first_chars = line[33:strlen-15]
          print(first_chars)
         
         
        # If line is blank, then you struck the EOF
        if not line :
            break;
     
openflight
 
Posts: 487
Joined: Fri Sep 16, 2011 12:14 pm
Version: 1 2 2018
OS: Linux Mint 19.3

Previous

Return to Scenery

Who is online

Users browsing this forum: No registered users and 8 guests