Board index FlightGear Support Graphics

FlightGear 360 videos (WIP)

Graphics issues like: bad framerates, weird colors, OpenGL errors etc. Bad graphics ar usually the result of bad graphics cards or drivers.
Forum rules
In order to help you, we need to know a lot of information. Make sure to include answers to at least the following questions in your initial post.

- what OS (Windows Xp/Vista, Mac etc.) are you running?
- what FlightGear version do you use?
- what graphics card do you have?
- does the problem occur with any aircraft, at any airport?
- is there any output printed to the console (black window)?
- copy&paste your commandline (tick the "Show commandline box on the last page of FGRun or the "Others" section on the Mac launcher).
- please upload a screenshot of the problem.

If you experience FlightGear crashes, please report a bug using the issue tracker (can be also used for feature requests).
To run FlightGear on old computers with bad OpenGL support, please take a look at this wiki article. If you are seeing corrupted/broken textures, please see this article.

Note: If you did not get a reponse, even after 7 days, you may want to check out the FlightGear mailing lists to ask your question there.

FlightGear 360 videos (WIP)

Postby Necolatis » Mon Nov 25, 2019 12:59 am

So I decided to try and get Flightgear to render a 360 degree view so I can make 360 Videos for youtube, where user can use mouse to pan around while the video is running.

This is my progress:

Image

The image has 2 fisheyes. Each should cover 180 degrees wide. The right is front, the left is back. The aircraft is F-16. Right now the resolution is 500x500 for the non-fisheye textures used to make the fisheyes and the fisheyes are the same.

It does have some trouble though, I am not sure the views are full 180 and there might be near-clipping issues. Any suggestions on how to fix?

Here is the code if anyone wants to try it: (tested in FG 2019.1.2 Windows)

(just save it as xml file, and use --config=[filename with path] in the options)

Code: Select all
<?xml version="1.0"?>

<PropertyList>
   <sim n="0">
      <rendering n="0">
         <camera-group n="0">
            <camera n="0">
                <host-name type="string"></host-name>
                <window>
                     <name type="string">FlightGear</name>
                 </window>
                 <viewport>
                  <x>0</x>
                  <y>0</y>
                  <width>500</width>
                   <height>500</height>
               </viewport>
                <display>0</display>
                <screen>0</screen>
                <shear-x>0</shear-x>
                <shear-y>0</shear-y>
                <width>500</width>
                <height>500</height>
                <frustum>
                  <top>1.0</top>
                  <bottom>-1.0</bottom>
                  <left>-1.0</left>
                  <right>1.0</right>
                  <near>0.1</near>
                  <far>120000.0</far>
                   </frustum>
                <texture>
                    <name>mainviewFront</name>
                        <width>500</width>
                   <height>500</height>
                   </texture>
                <fullscreen type="bool">false</fullscreen>
            </camera>
            <camera n="1">
                <host-name type="string"></host-name>
                <window>
                     <name type="string">FlightGear</name>
                 </window>
                 <viewport>
                  <x>500</x>
                  <y>0</y>
                  <width>500</width>
                   <height>500</height>
               </viewport>
                <display>0</display>
                <screen>0</screen>
                <shear-x>0</shear-x>
                <shear-y>0</shear-y>
                <width>500</width>
                <height>500</height>
                <view>
                     <heading-deg type = "double">180</heading-deg>
                      </view>
                <frustum>
                  <top>1.0</top>
                  <bottom>-1.0</bottom>
                  <left>-1.0</left>
                  <right>1.0</right>
                  <near>0.1</near>
                  <far>120000.0</far>
                   </frustum>
                <texture>
                    <name>mainviewBack</name>
                        <width>500</width>
                   <height>500</height>
                   </texture>
                <fullscreen type="bool">false</fullscreen>
            </camera>
            <camera n="2">
                  <window><name>FlightGear</name></window>
                  <ortho>
                     <top>500</top>
                     <bottom>0</bottom>
                     <left>0</left>
                     <right>500</right>
                     <near>-1.0</near>
                     <far>1.0</far>
                  </ortho>
                  <viewport>
                  <x>0</x>
                  <y>0</y>
                  <width>500</width>
                   <height>500</height>
               </viewport>
                  <panoramic-spherical>
                   <texture>mainviewFront</texture>
                </panoramic-spherical>
                <fullscreen type="bool">false</fullscreen>
            </camera>
            <camera n="3">
                  <window><name>FlightGear</name></window>
                  <ortho>
                     <top>500</top>
                     <bottom>0</bottom>
                     <left>0</left>
                     <right>500</right>
                     <near>-1.0</near>
                     <far>1.0</far>
                  </ortho>
                  <viewport>
                  <x>500</x>
                  <y>0</y>
                  <width>500</width>
                   <height>500</height>
               </viewport>
                  <panoramic-spherical>
                   <texture>mainviewBack</texture>
                </panoramic-spherical>
                <fullscreen type="bool">false</fullscreen>
            </camera>
            <gui n="0">
                <window n="0">
                  <name type="string">FlightGear</name>
                </window>
              </gui>
         </camera-group>
      </rendering>
   </sim>
</PropertyList>
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore
User avatar
Necolatis
 
Posts: 2108
Joined: Mon Oct 29, 2012 12:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2019.1.2
OS: Windows 10

Re: FlightGear 360 videos (WIP)

Postby Necolatis » Mon Nov 25, 2019 1:21 am

Okay, so I ran the Youtube metadata injector software on a short video with this.
And uploaded it to youtube.

It seems youtube expects the video in a equirectangular format.
I can probably find some software to convert dual-fisheyes to that.
However I found out that the standard fisheyes to have forward/backwards be in center of the fisheyes, and with no end-of-picture line running from the center. In the ones I render the sky is in the center and since the end-of-picture lines is clearly running down from center its clear thats its another kind of fisheyes I need.
Sigh. Don't think that can be fixed, a least not without more parameters exposed from OSG to Flightgear.
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore
User avatar
Necolatis
 
Posts: 2108
Joined: Mon Oct 29, 2012 12:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2019.1.2
OS: Windows 10

Re: FlightGear 360 videos (WIP)

Postby Johan G » Mon Nov 25, 2019 6:16 pm

Too bad. A lot of things would probably look really good in 360. It happens from time to time when watching YouTube videos with a cockpit view that I would like to be able to pan around.
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Johan G
Moderator
 
Posts: 5782
Joined: Fri Aug 06, 2010 5:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 3.0.0
OS: Windows 7, 32 bit


Return to Graphics

Who is online

Users browsing this forum: No registered users and 1 guest