Board index FlightGear Development Scenery

Photoscenery generator for Julia compiler

Questions and discussion about enhancing and populating the FlightGear world.

Re: Photoscenery generator for Julia compiler

Postby wlbragg » Sat Sep 18, 2021 8:26 pm

The one reason some like the roads is for the shader traffic. But they do cause conflicts much of the time.
Kansas and Ohio/Midwest scenery development.
KEQA, 3AU, KRCP Airport Layout
Intel i7/GeForce RTX 2070/Max-Q
User avatar
wlbragg
 
Posts: 7588
Joined: Sun Aug 26, 2012 12:31 am
Location: Kansas (Tornado Alley), USA
Callsign: WC2020
Version: next
OS: Win10/Linux/RTX 2070

Re: Photoscenery generator for Julia compiler

Postby SDeAstis » Sun Sep 19, 2021 6:09 pm

Hi,
can somebody explain me why every time I run the tool all the previous DDS file are deleted?
Also the Orthophoto-saved is cleaned!
I lost 65GB of files!
Also with the --connect option avery istance ran deletes all the previous DDS! Is this a bug of the latest version?
SDeAstis
 
Posts: 47
Joined: Fri Jul 09, 2021 6:37 am

Re: Photoscenery generator for Julia compiler

Postby abassign » Sat Sep 25, 2021 4:16 pm

SDeAstis wrote in Sun Sep 19, 2021 6:09 pm:Hi,
can somebody explain me why every time I run the tool all the previous DDS file are deleted?
Also the Orthophoto-saved is cleaned!
I lost 65GB of files!
Also with the --connect option avery istance ran deletes all the previous DDS! Is this a bug of the latest version?


Hello, it is strange because there is no deletion of files, but only the copy from the directories you used for saving to the directory of the operational scenario.
Remember the command you used that I verify?
I often use to save an external disk, at this point I wonder, if the external disk was correctly mounted?
Honestly I have never had news of file losses, but obviously there are many different situations that can perhaps give something abnormal, if I discover them I can intervene to correct.
The - - connect option cannot cancel, but only requests FGFS the position of the aircraft, via the TCP Telnet protocol of FGFS, then for the rest it does like other systems, the coordinates of an area or the coordinates of a flight plan.
Developer of the program https://wiki.flightgear.org/Julia_photoscenery_generator
FDM developer of the G91R1B aircraft https://wiki.flightgear.org/FIAT_G91R1B
JSBSim collaborator
abassign
 
Posts: 947
Joined: Mon Feb 27, 2012 6:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2020.4
OS: Ubuntu 20.10

Re: Photoscenery generator for Julia compiler

Postby abassign » Fri Oct 01, 2021 9:40 pm

Hello everyone, I just upgraded the program in Julia fotoscenary.jl to version 0.3.14 this version fixes some bugs that have been found by those who run it in Windows. I have never been able to try the program in a Mac environment if someone is using it I would be delighted to know how it works.
Version 0.3.14 has no particular news, the only new function is that if FGFS has the telnet connection active with the launch parameter --telnet=5000 the program will search for the path (as in version 0.3.10) but also the coordinates of the point where the aircraft is located. So whoever does it simply with:
julia -t 4 photoscenary.jl

If FGFS has an active telnet connection, the program will download images around the point where the aircraft is located. As usual you can download the program at this link: https://github.com/abassign/Photoscenary
Developer of the program https://wiki.flightgear.org/Julia_photoscenery_generator
FDM developer of the G91R1B aircraft https://wiki.flightgear.org/FIAT_G91R1B
JSBSim collaborator
abassign
 
Posts: 947
Joined: Mon Feb 27, 2012 6:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2020.4
OS: Ubuntu 20.10

Re: Photoscenery generator for Julia compiler

Postby SchoolBusesC2 » Sat Oct 02, 2021 3:39 pm

Seems like the `-p` parameter is not working?
Code: Select all
julia -t $(nproc) photoscenary.jl -s 3 --over 1 -i KBOS -p /home/newo/.fgfs/Scenery/Ortho --map 2 -r 1
The actiual Julia is 1.6.2 The current version is correct in order to obtain the best performances

Photoscenary.jl ver: 0.3.14 date: 20210930 System prerequisite test

The Photoscenary.jl program has started, it can be stopped with CTRL-C

Photoscenery generator by Julia compilator,
Program for uploading Orthophotos files

Version: ImageMagick 7.1.0-8 Q16-HDRI x86_64 2021-09-18 https://imagemagick.org
Copyright: (C) 1999-2021 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP(4.5)
Delegates (built-in): bzlib cairo djvu fontconfig freetype heic jbig jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png raqm raw rsvg tiff webp wmf x xml zip zlib
Compiler: gcc (11.1)

ImageMagic is operative!

Arguments (params) saved in the file: args.txt
  lat  =>  nothing
  latur  =>  0.0
  tile  =>  nothing
  lon  =>  nothing
  over  =>  1
  latll  =>  0.0
  path  =>  /home/newo/.fgfs/Scenery/Ortho
  map  =>  2
  nosave  =>  false
  args  =>  nothing
  lonur  =>  0.0
  radius  =>  1.0
  sdwn  =>  0
  connect  =>  nothing
  proxy  =>  nothing
  png  =>  false
  attemps  =>  3
  debug  =>  0
  version  =>  false
  route  =>  nothing
  save  =>  nothing
  size  =>  3
  lonll  =>  0.0
  search  =>  nothing
  icao  =>  KBOS
  sexagesimal  =>  false

Map server select id: 2 name: United States only. Public domain license (USGS)

The program get localization is in ICAO mode

The ICAO term KBOS is found in the database
   Ident: KBOS
   Name: Logan International Airport
   City: Boston
   Central point lat: 42.3643 lon: -71.0052 radius: 10.0 nm

The program configures the default 'fgfs-scenery/photoscenery' path

Path to locate the DDS/PNG orthophotos files: '/home/newo/fgfs-scenery/photoscenery/Orthophotos'

Path to save the DDS/PNG orthophotos files: '/home/newo/fgfs-scenery/photoscenery/Orthophotos-saved'

Create the Tile Database
Please wait for a few seconds to a few minutes

Search and test the DDS/PNG files in path: /home/newo
Execute update images files, find n. 0 DDS files: 0 PNG files: 0 with size: 0 Mb Time: 16.2
Term update DDS/PNG list files: find n. 0 dir with errors
The tiles database has been generated and verified

Start the elaboration n. 1 for 16 tiles the Area deg is latLL: 42.200 lonLL: -71.300 latUR: 42.400 lonUR: -71.000 Batch size: 16 Width 4096 | 2 to 4096 | 2 pix Cycle: 0
The images path is: /home/newo/fgfs-scenery/photoscenery/Orthophotos

Time:     18 elab:     15 (   18|   15) Tiles:    1 on   16 res   15 err    0 Th: 14 path: ../w080n40/w071n42/1794336.dds  Dist:   6.6 pix:  4096 MB/s: 0.94 MB dw:   16.6 (Inserted)
Time:     21 elab:     34 (   10|   17) Tiles:    2 on   16 res   14 err    0 Th: 14 path: ../w080n40/w071n42/1794328.dds  Dist:   3.6 pix:  4096 MB/s: 1.16 MB dw:   23.9 (Inserted)
Time:     21 elab:     52 (    7|   17) Tiles:    3 on   16 res   13 err    0 Th: 14 path: ../w080n40/w072n42/1777955.dds  Dist:   6.5 pix:  4096 MB/s: 2.08 MB dw:   43.5 (Inserted)
Time:     23 elab:     73 (    6|   18) Tiles:    4 on   16 res   12 err    0 Th: 14 path: ../w080n40/w072n42/1777938.dds  Dist:   8.4 pix:  4096 MB/s: 2.72 MB dw:   62.7 (Inserted)
Time:     24 elab:     95 (    5|   19) Tiles:    5 on   16 res   11 err    0 Th: 14 path: ../w080n40/w071n42/1794320.dds  Dist:   3.3 pix:  4096 MB/s: 2.91 MB dw:   69.1 (Inserted)
Time:     24 elab:    116 (    4|   19) Tiles:    6 on   16 res   10 err    0 Th: 14 path: ../w080n40/w071n42/1794312.dds  Dist:   6.0 pix:  4096 MB/s: 3.65 MB dw:   88.0 (Inserted)
Time:     24 elab:    138 (    3|   20) Tiles:    7 on   16 res    9 err    0 Th: 14 path: ../w080n40/w071n42/1794321.dds  Dist:   8.6 pix:  4096 MB/s: 3.63 MB dw:   88.0 (Inserted)
Time:     24 elab:    160 (    3|   20) Tiles:    8 on   16 res    8 err    0 Th: 14 path: ../w080n40/w072n42/1777946.dds  Dist:   8.5 pix:  4096 MB/s: 4.38 MB dw:  107.1 (Inserted)
Time:     26 elab:    184 (    3|   20) Tiles:    9 on   16 res    7 err    0 Th: 14 path: ../w080n40/w071n42/1794329.dds  Dist:   8.7 pix:  4096 MB/s: 4.07 MB dw:  107.1 (Inserted)
Time:     27 elab:    209 (    3|   21) Tiles:   10 on   16 res    6 err    0 Th: 14 path: ../w080n40/w072n42/1777939.dds  Dist:   3.1 pix:  4096 MB/s: 4.63 MB dw:  126.2 (Inserted)
Time:     27 elab:    234 (    2|   21) Tiles:   11 on   16 res    5 err    0 Th: 14 path: ../w080n40/w072n42/1777947.dds  Dist:   3.5 pix:  4096 MB/s: 5.34 MB dw:  145.9 (Inserted)
Time:     28 elab:    260 (    2|   22) Tiles:   12 on   16 res    4 err    0 Th: 14 path: ../w080n40/w071n42/1794313.dds  Dist:  10.0 pix:  4096 MB/s: 5.42 MB dw:  149.9 (Inserted)
Time:     31 elab:    289 (    2|   22) Tiles:   13 on   16 res    3 err    0 Th: 14 path: ../w080n40/w072n42/1777930.dds  Dist:   9.8 pix:  4096 MB/s: 5.37 MB dw:  169.0 (Inserted)
Time:     32 elab:    318 (    2|   23) Tiles:   14 on   16 res    2 err    0 Th: 14 path: ../w080n40/w072n42/1777931.dds  Dist:   5.9 pix:  4096 MB/s: 5.93 MB dw:  188.3 (Inserted)
Time:     36 elab:    323 (    2|   22) Tiles:   15 on   16 res    1 err    0 Th:  2 path: ../w080n40/w071n42/1794337.dds  Dist:  10.3 pix:  4096 MB/s: 5.30 MB dw:  192.5 (Inserted)
Time:     37 elab:    328 (    2|   20) Tiles:   16 on   16 res    0 err    0 Th:  2 path: ../w080n40/w072n42/1777954.dds  Dist:  10.1 pix:  4096 MB/s: 5.74 MB dw:  211.8 (Inserted)


The process is finish, Time elab:  36.9  number of tiles: 16 time for tile:   2.3 MB/s: 5.74 MB dw:   67.1


All processes are finished, exit and terminate the program
SchoolBusesC2
 
Posts: 19
Joined: Sat Aug 18, 2018 1:08 am
Callsign: N1440/JBU1440
OS: Manjaro

Re: Photoscenery generator for Julia compiler

Postby abassign » Sun Oct 03, 2021 11:05 pm

SchoolBusesC2 wrote in Sat Oct 02, 2021 3:39 pm:Seems like the `-p` parameter is not working?
Code: Select all
julia -t $(nproc) photoscenary.jl -s 3 --over 1 -i KBOS -p /home/newo/.fgfs/Scenery/Ortho --map 2 -r 1



Hi, I just added version 0.3.15 which should solve the problem of the path not being taken by the program in some parameter configurations.
Hope it works now, if there are any problems always report it please. In the meantime, thanks for your cooperation.

Greetings
Adriano
Developer of the program https://wiki.flightgear.org/Julia_photoscenery_generator
FDM developer of the G91R1B aircraft https://wiki.flightgear.org/FIAT_G91R1B
JSBSim collaborator
abassign
 
Posts: 947
Joined: Mon Feb 27, 2012 6:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2020.4
OS: Ubuntu 20.10

Re: Photoscenery generator for Julia compiler

Postby SchoolBusesC2 » Mon Oct 04, 2021 5:43 pm

abassign wrote in Sun Oct 03, 2021 11:05 pm:
SchoolBusesC2 wrote in Sat Oct 02, 2021 3:39 pm:Seems like the `-p` parameter is not working?
Code: Select all
julia -t $(nproc) photoscenary.jl -s 3 --over 1 -i KBOS -p /home/newo/.fgfs/Scenery/Ortho --map 2 -r 1



Hi, I just added version 0.3.15 which should solve the problem of the path not being taken by the program in some parameter configurations.
Hope it works now, if there are any problems always report it please. In the meantime, thanks for your cooperation.

Greetings
Adriano


Hello Adriano,

Thank you very much!
SchoolBusesC2
 
Posts: 19
Joined: Sat Aug 18, 2018 1:08 am
Callsign: N1440/JBU1440
OS: Manjaro

Re: Photoscenery generator for Julia compiler

Postby oly2b » Fri Oct 08, 2021 1:09 pm

Julia compiler stops creating routes, been using for months with out problems but now I get the following:-

ImageMagic is operative!

Map server select id: 1 name: ESRI GIS: https://www.esri.com/en-us/about/about-esri/overview (Arcgis)
ERROR: LoadError: IOError: readdir("C:\\Users\\hc172\\AppData\\Local\\Microsoft\\Windows\\INetCache\\Low\\Content.IE5"): permission denied (EACCES)
Stacktrace:
[1] try_yieldto(undo::typeof(Base.ensure_rescheduled))
@ Base .\task.jl:710
[2] wait
@ .\task.jl:769 [inlined]
[3] wait(c::Base.GenericCondition{ReentrantLock})
@ Base .\condition.jl:106
[4] take_unbuffered(c::Channel{Tuple{String, Vector{String}, Vector{String}}})
@ Base .\channels.jl:405
[5] take!
@ .\channels.jl:383 [inlined]
[6] iterate(c::Channel{Tuple{String, Vector{String}, Vector{String}}}, state::Nothing)
@ Base .\channels.jl:465
[7] findFile(fileName::String, path::String)
@ Main J:\fgp_Julia\main\commons.jl:59
[8] findFile
@ J:\fgp_Julia\main\commons.jl:53 [inlined]
[9] findFileOfRoute(fileName::String)
@ Main J:\fgp_Julia\main\photoscenary.jl:434
[10] loadRoute(fileOfRoute::String, centralPointRadiusDistance::Float64)
@ Main J:\fgp_Julia\main\photoscenary.jl:456
[11] main(args::Vector{String})
@ Main J:\fgp_Julia\main\photoscenary.jl:1065
[12] top-level scope
@ J:\fgp_Julia\main\photoscenary.jl:1312
in expression starting at J:\fgp_Julia\main\photoscenary.jl:1312

The command line used

julia -t 3 photoscenary.jl -p J:\fgp_Julia --route O26B.xml -s 2 -r 10 --over 1 -d 0

Any clues why stopped generating route PS?
oly2b
 
Posts: 57
Joined: Mon Jun 29, 2020 7:55 am
Location: UK
Callsign: G-OLYB
Version: 2020.1
OS: Windows

Re: Photoscenery generator for Julia compiler

Postby abassign » Fri Oct 08, 2021 3:43 pm

oly2b wrote in Fri Oct 08, 2021 1:09 pm:Julia compiler stops creating routes, been using for months with out problems but now I get the following:-

ImageMagic is operative!

Map server select id: 1 name: ESRI GIS: https://www.esri.com/en-us/about/about-esri/overview (Arcgis)
ERROR: LoadError: IOError: readdir("C:\\Users\\hc172\\AppData\\Local\\Microsoft\\Windows\\INetCache\\Low\\Content.IE5"): permission denied (EACCES)
Stacktrace:
[1] try_yieldto(undo::typeof(Base.ensure_rescheduled))
@ Base .\task.jl:710


Hello,
meanwhile I don't know what version you are using of photoscenary.jl I recommend you to install the latest version, which has been revised due to problems with Windows, the version can be found here:

https://github.com/abassign/Photoscenary

So I can understand better as I need to know exactly which lines of code are causing problems.
Take the test and write here how it went so that I can proceed to a code check.
It is very important that you send me the first lines of execution so that I know what command you have given and the exact version.

For example, with version 0.3.15 you should see something like this:

Code: Select all
abassign@abassign-P7xxTM1:~/github/Photoscenary$ julia -t 4 photoscenary.jl
The actiual Julia is 1.6.3 The current version is correct in order to obtain the best performances

Photoscenary.jl ver: 0.3.15 date: 20211003 System prerequisite test

The Photoscenary.jl program has started, it can be stopped with CTRL-C

Photoscenery generator by Julia compilator,
Program for uploading Orthophotos files

Version: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
Copyright: (C) 1999-2021 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP(4.5)
Delegates (built-in): bzlib djvu fftw fontconfig freetype heic jbig jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png tiff webp wmf x xml zlib

ImageMagic is operative!

Error to load arguments (params) put the default arguments
err: SystemError("opening file \"args.txt\"", 2, nothing)
  lat  =>  nothing
  latur  =>  0.0
  tile  =>  nothing
  lon  =>  nothing
  over  =>  0
  latll  =>  0.0
  path  =>  nothing
  map  =>  1
  nosave  =>  false
  args  =>  nothing
  lonur  =>  0.0
  radius  =>  0.0
  sdwn  =>  0
  connect  =>  nothing
  proxy  =>  nothing
  png  =>  false
  attemps  =>  3
  debug  =>  0
  version  =>  false
  route  =>  nothing
  save  =>  nothing
  size  =>  2
  lonll  =>  0.0
  search  =>  nothing
  icao  =>  nothing
  sexagesimal  =>  false

Map server select id: 1 name: ESRI GIS: https://www.esri.com/en-us/about/about-esri/overview (Arcgis)

Connected to Flightgear with address: 127.0.0.1:5000 and extract lat: 47.2588347448965 lon: 11.33097876699279

The program get localization is in POINT lat-lon mode

Connected to Flightgear with address: 127.0.0.1:5000 and get the path /media/abassign/test/fgfs-scenery/photoscenery/Orthophotos

Path to locate the DDS/PNG orthophotos files: '/media/abassign/test/fgfs-scenery/photoscenery/Orthophotos'

Path to save the DDS/PNG orthophotos files: '/media/abassign/test/fgfs-scenery/photoscenery/Orthophotos-saved'

Create the Tile Database
Please wait for a few seconds to a few minutes

Search and test the DDS/PNG files in path: /home/abassign


As you can see in your head it gives me a lot of information, including the version of Julia that I recommend the latest, you are in Windows so you can download it here:

https://julialang-s3.julialang.org/bin/winnt/x64/1.6/julia-1.6.3-win64.exe

JUlia is a young language that is undergoing constant updates and can sometimes give problems. So if the version is not 1.6.3 (but 1.6.1 is fine) it is better to uninstall the old version and reinstall it in order to delete the previous libraries.

Ciao :)
Adriano
Developer of the program https://wiki.flightgear.org/Julia_photoscenery_generator
FDM developer of the G91R1B aircraft https://wiki.flightgear.org/FIAT_G91R1B
JSBSim collaborator
abassign
 
Posts: 947
Joined: Mon Feb 27, 2012 6:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2020.4
OS: Ubuntu 20.10

Re: Photoscenery generator for Julia compiler

Postby oly2b » Fri Oct 08, 2021 5:23 pm

Many thanks- The new version from Git working again.
oly2b
 
Posts: 57
Joined: Mon Jun 29, 2020 7:55 am
Location: UK
Callsign: G-OLYB
Version: 2020.1
OS: Windows

Re: Photoscenery generator for Julia compiler

Postby SchoolBusesC2 » Fri Nov 19, 2021 5:44 am

So for some reason, at KBOS, this weird thing is happening.
Image
This doesn't happen with nathanielwarner's flightgear-photoscenery.
SchoolBusesC2
 
Posts: 19
Joined: Sat Aug 18, 2018 1:08 am
Callsign: N1440/JBU1440
OS: Manjaro

Re: Photoscenery generator for Julia compiler

Postby merspieler » Fri Nov 19, 2021 9:49 am

The assembly process for the airport texture gets messed up... if I understand it right, it depends in how high the resolution of your scenery is and what your gpu supports
Nia (you&, she/her)

Please use gender neutral terms when referring to a group of people!

Be the change you wish to see in the world, be an ally to all!

Join the official matrix space
merspieler
 
Posts: 2241
Joined: Thu Oct 26, 2017 11:43 am
Location: Wish to be in YBCS
Pronouns: you&, she/her
Callsign: you&, she/her
IRC name: merspieler
Version: next
OS: NixOS

Re: Photoscenery generator for Julia compiler

Postby wkitty42 » Fri Nov 19, 2021 11:27 am

SchoolBusesC2 wrote in Fri Nov 19, 2021 5:44 am:So for some reason, at KBOS, this weird thing is happening.

which weird thing are you talking about? i think i see several in the image posted...
what GPU are you using?
how much memory does your GPU have?
what GPU driver version?
do you have the latest GPU drivers installed?

most of the answers to the above questions can be found in-sim via F10->Help->About... you can screen shot that dialog box or copy the contents to your clipboard and post them in a response here...
"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: Photoscenery generator for Julia compiler

Postby SchoolBusesC2 » Fri Nov 19, 2021 3:17 pm

The issue I was talking about here is the blue water underneath the airport which didn't happen with the other photoscenery generator if I recall correctly. If I turn photoscenery off, then it doesn't happen. If I look around, it seems like this is a misplaced tile because there is land under other parts of the airport that don't line up. The rest of the city is fine though.

GPU: RTX 2070 Super
VRAM: 8GB GDDR6
Drivers: not at my computer so not sure but pretty sure latest for Manjaro.
SchoolBusesC2
 
Posts: 19
Joined: Sat Aug 18, 2018 1:08 am
Callsign: N1440/JBU1440
OS: Manjaro

Re: Photoscenery generator for Julia compiler

Postby merspieler » Fri Nov 19, 2021 4:49 pm

Yes... this is due to the fact, that the airport is on a tile boundary so the airports texture gets assembled based on the tiles around it... and in the process, something gets flipped/moved/screwed up.

Just a thought... do you know if the other scenery, which you say works, is .png or .dds?

Other airports I see this my self are YBCS and EDDM
Nia (you&, she/her)

Please use gender neutral terms when referring to a group of people!

Be the change you wish to see in the world, be an ally to all!

Join the official matrix space
merspieler
 
Posts: 2241
Joined: Thu Oct 26, 2017 11:43 am
Location: Wish to be in YBCS
Pronouns: you&, she/her
Callsign: you&, she/her
IRC name: merspieler
Version: next
OS: NixOS

PreviousNext

Return to Scenery

Who is online

Users browsing this forum: No registered users and 3 guests