Puffergas
Posts: 133
Joined: Thu Dec 19, 2019 12:16 am

Re: FlightGear & Pi4

Tue Apr 28, 2020 2:14 am

I have been using the Ubuntu 64-bit FG and have found it to be stable and better features. Can not say that it is faster than the 32-bit Raspbian but it does seem a wee bit better. Can get frame rates in the 30 fps. That is not in dense scenery areas. I like the launcher. A new version will be coming out soon.

When using the 64-bit Ubuntu, keep an eye on the keyboard LEDs for Num Lock and Cap Lock. It likes to turn one of them on, just before you type in your password, etc.. After it is all booted and your logged it the Locks stay put.

Puffergas
Posts: 133
Joined: Thu Dec 19, 2019 12:16 am

Re: FlightGear & Pi4

Sun May 03, 2020 12:49 am

Last night I was able to compile and build FG 2020.2.0 for 32-bit Raspbian. Looks good. The sun is fixed and the guide wires for towers. Looking forward to trying it on Ubuntu 64-bit. My wild guess would be that, in a few months, we will have a 2020 version in the Raspbian software repository.

Puffergas
Posts: 133
Joined: Thu Dec 19, 2019 12:16 am

Re: FlightGear & Pi4

Tue May 05, 2020 2:42 pm

Thought that I would, occasionally, post some screen shots.

Image

This was a dusk takeoff from KBKL, in the DC-3.

User avatar
Gavinmc42
Posts: 4829
Joined: Wed Aug 28, 2013 3:31 am

Re: FlightGear & Pi4

Tue May 05, 2020 10:44 pm

Cool, more progress.
Have not tried FG for months, it looks better, nice screen shot.
What version of Mesa is that Raspbian running?

FG can use Tablets as displays, through WiFi?
Running HTML on a browser?
A Pi could do the same thing?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Puffergas
Posts: 133
Joined: Thu Dec 19, 2019 12:16 am

Re: FlightGear & Pi4

Fri May 08, 2020 9:03 pm

Gavinmc42 wrote:
Tue May 05, 2020 10:44 pm
What version of Mesa is that Raspbian running?
I do not recall it being a dependency, that doesn't mean it isn't.
FG can use Tablets as displays, through WiFi?
Yes, Phi.
Running HTML on a browser?
Yes, Phi.
A Pi could do the same thing?
I use a Pi3 A+ and a touch screen to use Phi. My understanding, at this point, is rather simplistic.

Puffergas
Posts: 133
Joined: Thu Dec 19, 2019 12:16 am

Re: FlightGear & Pi4

Thu May 14, 2020 12:23 am

I just read that MESA was involved with FlightGear. They seem to talk about other stuff much more. Next, I hope to compile the 64-bit Ubuntu version. There are option when compiling so maybe some more room for improvement.

User avatar
Gavinmc42
Posts: 4829
Joined: Wed Aug 28, 2013 3:31 am

Re: FlightGear & Pi4

Sun May 31, 2020 5:10 am

Try the new 64bit Raspberry Pi OS.
FlightGear installs and boots, That's about all I have tested.
May even work better on the 8GB Pi4?

Lots of new 64bit stuff to play with now.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

ronnih
Posts: 32
Joined: Wed Nov 29, 2017 8:59 am
Location: Matrix Network
Contact: Website

Re: FlightGear & Pi4

Tue Jun 02, 2020 12:56 pm

Thx FlightGear looks really cool and good that it run on the Raspberry :) Will also install it soon with apt.
https://techguru.lima-city.de

User avatar
Gavinmc42
Posts: 4829
Joined: Wed Aug 28, 2013 3:31 am

Re: FlightGear & Pi4

Wed Jun 03, 2020 12:28 am

I used the menu software installer, FlightGear was in the games section.
Will be interesting to see if multiple Pi's can be hooked up together for cockpit instruments and multiple displays.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Puffergas
Posts: 133
Joined: Thu Dec 19, 2019 12:16 am

Re: FlightGear & Pi4

Thu Jun 25, 2020 11:25 pm

They are working on the new FlightGear LTS 2020.2. The OSG 3.4, that is in the Pi 64-bit package installer, seems to work with FG, so no reason to patch and compile OSG.Download_and_compile.sh worked well to compile 2020.2.1. Still has the square sun. That can be tweaked, however I have not figured out how. Maybe all the work on the Pi 3d stuff will help.

Puffergas
Posts: 133
Joined: Thu Dec 19, 2019 12:16 am

Re: FlightGear & Pi4

Wed Jul 01, 2020 7:32 pm

A few screenshots:


Image

Image

Image

User avatar
Gavinmc42
Posts: 4829
Joined: Wed Aug 28, 2013 3:31 am

Re: FlightGear & Pi4

Thu Jul 02, 2020 12:04 am

Looks pretty good.
Have not tried FG for a while.

Wondering now if a bit more performance can be tweaked by going to Vulkan soon?
https://vsg-dev.github.io/VulkanSceneGraph/
https://github.com/vsg-dev

Code: Select all

[[ 67%] Building CXX object src/vsg/CMakeFiles/vsg.dir/viewer/Trackball.cpp.o
/home/pi/VulkanSceneGraph/src/vsg/viewer/Viewer.cpp: In member function ‘virtual bool vsg::Viewer::acquireNextFrame()’:
/home/pi/VulkanSceneGraph/src/vsg/viewer/Viewer.cpp:168:27: error: ‘VK_ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST_EXT’ was not declared in this scope
                 result == VK_ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST_EXT)
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [src/vsg/CMakeFiles/vsg.dir/build.make:1051: src/vsg/CMakeFiles/vsg.dir/viewer/Viewer.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:219: src/vsg/CMakeFiles/vsg.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
/code]

Close but no cigar yet:D 

Bookmarked to go back to this VSG later.
OSG is used in lots of things, VSG should give a tiny bit more performance.
Anyone in FG using Vulkan?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Puffergas
Posts: 133
Joined: Thu Dec 19, 2019 12:16 am

Re: FlightGear & Pi4

Fri Jul 03, 2020 7:19 pm

There was one mention of updating something so that Vulkan could be used. I think 3d stuff will keep getting better for Pi.

User avatar
Gavinmc42
Posts: 4829
Joined: Wed Aug 28, 2013 3:31 am

Re: FlightGear & Pi4

Sat Jul 04, 2020 11:47 pm

Now to try Vulkan on my 64bit OS :D
viewtopic.php?f=67&t=277125

The main advantage I see with Vulkan is the ability to use the 4 ARM cores.
Each one of those core has NEON.
Hopefully that is enough performance boost to do FHD at a decent framerate.
4K is a bit wishful thinking?

The cheapest Pi4 is the 2GB, they should be more than enough to display stuff.
A central 8GB to serve the data?
Lot to learn to get a multiple Pi system running.

Could go into the Flight Simulator business is that can be figured out.
Or space flight sims?
https://github.com/daid/EmptyEpsilon
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

go8soccer
Posts: 1
Joined: Mon Jul 27, 2020 12:24 pm

Re: FlightGear & Pi4

Mon Jul 27, 2020 12:28 pm

Out of curiosity.. has anyone been able to upgrade to the latest version of FlightGear on their RPi 4?
I'd like to upgrade to either 2018.3.5 or 2020.1.2 but I'm quite the Linux noob and haven't found any good step-by-step to compile and install these latest versions.
TY in advance!

User avatar
Gavinmc42
Posts: 4829
Joined: Wed Aug 28, 2013 3:31 am

Re: FlightGear & Pi4

Wed Jul 29, 2020 8:39 am

Have not tried recently.
If I remember right there are there three source zip you need FG data, Simgear and FG.
The FG binary is compiled last?

Try this?
http://wiki.flightgear.org/Scripted_Com ... compile.sh
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Puffergas
Posts: 133
Joined: Thu Dec 19, 2019 12:16 am

Re: FlightGear & Pi4

Tue Oct 27, 2020 2:10 am

I've been working on a remote radio stack, that runs on a Raspberry with the Official Touchscreen, called PiStack. Just starting to learn programming, so don't expect too much. This is a beta version. It is written for the DC-3 (guess what I fly) but may work with other aircraft.

The files are located below (Version_0.4.1-beta):
https://github.com/puffergas/PiStack/releases

A couple screenshots:

Image
.
Image

There is a beta manual included with the files.

User avatar
Gavinmc42
Posts: 4829
Joined: Wed Aug 28, 2013 3:31 am

Re: FlightGear & Pi4

Fri Oct 30, 2020 1:40 am

Been playing with VulkanSceneGraph on Pi4's.
It was this demo that got me interested, it is fast.
https://github.com/vsg-dev/MyFirstVsgApplication

Installed OpenSceneGraph again and all the demo examples.
I was going to try to see if the osvhangglide can be converted to vsg.
Been grounded since I got married, this could be a way to get back into paragliding :lol:

Need to watch this space.
http://wiki.flightgear.org/Vulkan_Scene_Graph

Might be interesting to see if we can make a mini FG with vsg.
Use existing FG scenery etc.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Puffergas
Posts: 133
Joined: Thu Dec 19, 2019 12:16 am

Re: FlightGear & Pi4

Fri Oct 30, 2020 5:47 pm

Valkan is a few years away for FlightGear.

FlightGear struggles with a lot of old code. Kind of the down side of a program that has been around for a long time. On the other hand there are a lot of positives for long running projects. It is amazing that FlightGear still runs on a Raspberry.

I dream about writing a flight simulator, just for the Raspberry. Of course I've just started to learn Python, och time wise. My scheme is to design it similar to a professional simulator. There would be a cluster of Raspberries doing sub-tasks, controlled by the queen bee Raspberry, so to speak. I'm starting by writing sub-tasks like PiStack for FlightGear, that would later be used for PiFlight (or what ever it would be called). Also, learning from FlightGear. Most of the sub-tasks would be compatible with FlightGear, thus a beneficial parasite. We can use all new tools, like the new Raspberry drivers and Valkan, Python, Rust and who knows what. I am praying that the Raspberry Foundation writes graphic training manuals for all the cool tools they are working on. oh, I'm keeping this a secret ! ! !

User avatar
Gavinmc42
Posts: 4829
Joined: Wed Aug 28, 2013 3:31 am

Re: FlightGear & Pi4

Fri Oct 30, 2020 11:54 pm

FlightGear struggles with a lot of old code.
I noticed :D
Even got a computer language no one else uses?
They need to stay compatible but we don't.
My goal is to get the display fast enough for wide format screens.

I have dabbled with Zero's USB booting Ultibo baremetal kernels with OpenVG graphics for accessory displays.
The Ultibo webserver example code will also serve pages with Javascript instruments.
http://perfectwidgets.com/Content/Demo/ ... index.html
This can serve to an Android tablet/old smart phone running a browser?
Glass cockpit :D

At the moment I am looking at using the vsg terrain editing/making part of FG.
Lots of work is being done by Robert Osfield that looks really cool.
https://groups.google.com/forum/#!forum/vsg-users

Using glTF 2.0 3D models with Vulkan rendering is what I will be exploring.
The problem I am having is vsg is so new not much has been documented and those doing it are experts and know what they are doing.
That limits me to hacking the examples.
Which is probably going to teach me lots anyway.

Was looking for 3D tank models yesterday, that lz.vsgt demo looks like a good tank game starting point :D
FreeCAD 18/19, Wings3D, Blender and Blender4Artists are all working on my P4's now.
3D model conversion is driving me nuts, so many formats, which is why I want to just stay with glTF.

Real Flight Simulators, not much change from $2Million ;)
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Puffergas
Posts: 133
Joined: Thu Dec 19, 2019 12:16 am

Re: FlightGear & Pi4

Sun Nov 01, 2020 2:32 am

I like the idea of a modern and common 3D model file. The glTF looks good. I bet a few Raspberries, switches, lights and levers would give the $2Million simulators a run for their money.

The other advantages, is that we do not have to support all the other hardware like video cards.

User avatar
Gavinmc42
Posts: 4829
Joined: Wed Aug 28, 2013 3:31 am

Re: FlightGear & Pi4

Sun Nov 01, 2020 7:14 am

I bet a few Raspberries, switches, lights and levers would give the $2Million simulators a run for their money.
That's what I thought years ago.
Pi's for the outside views and more Pi's for the flight displays.
Separating them reduces the graphics load.

Those glTF viewers fun. When I was running them in a browser I knew it might be possible.
Looking for a simple game engine that can handle them.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Puffergas
Posts: 133
Joined: Thu Dec 19, 2019 12:16 am

Re: FlightGear & Pi4

Tue Nov 10, 2020 6:29 pm

A few screenshots of the new LTS version 2020.3.#

As seen through the eyes of the Raspberry Pi . . .

Image

Image

Image

Image

Cheers

User avatar
Gavinmc42
Posts: 4829
Joined: Wed Aug 28, 2013 3:31 am

Re: FlightGear & Pi4

Wed Nov 11, 2020 12:10 am

That's cool.
Did you have any trouble getting it going?
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Puffergas
Posts: 133
Joined: Thu Dec 19, 2019 12:16 am

Re: FlightGear & Pi4

Wed Nov 11, 2020 3:25 pm

It is super easy now. But it was a long road to learn some basic stuff. Once your all set up it just takes giving Download_and_Compile.sh a few commands. In this case the -s for stable. Later when it is the official LTS version, the -lts (if my memory is correct) command is passed.
.
  • Important to only clone the LARGE data folder only once, saves FlightGear data.
    • This may have been solved by D&C.sh using a mirror for the first Data clone, then switching back to origin (might not be proper term) for updates.
    Allow D&C.sh to fail on the OSG build. Then apply the patch and restart D&C.sh.

    If using 64bit Raspberry Pi OS, there is a slight edit to one of the third party packages.
After that (if I remember correctly) it's just a matter to use D&C.sh. A little learning to use it, after that it is fun. More at the below link that I wrote. It turned into a mess and needs cleaned up.

http://wiki.flightgear.org/Howto:Build_ ... compile.sh

I need to remove the building of FlightGear by hand, until it gets finished.

With D&C.sh you can build the nightlys cutting edge or every update to the stable version or every update to LTS version. Not too sure how long the "next" nightly builds will keep working.

Return to “Gaming”