Board index FlightGear Development Aircraft

UFOv2 for FlightGear - GPL v.2

Questions and discussion about creating aircraft. Flight dynamics, 3d models, cockpits, systems, animation, textures.

Re: UFOv2 for FlightGear - GPL v.2

Postby www2 » Tue Sep 03, 2019 2:27 pm

@cobe571
I think that V12 mean that the current UFO replace with UFOv2 but UFOv2 as a separate project with in his own directory.
www2
 
Posts: 319
Joined: Thu Apr 16, 2009 2:58 pm
OS: Ubuntu

Re: UFOv2 for FlightGear - GPL v.2

Postby cobe571 » Wed Sep 04, 2019 1:02 am

wkitty42 wrote in Sun Sep 01, 2019 6:47 pm:FWIW: i'd love to see a UFO craft without the existing UFO's object placement capabilities... just hover, and fly in all directions and even removal of the auto-coordination that makes the craft roll while turning which would allow the craft to barrel roll which is not possible right now...


In the past days I made a new experiment about the UFO FDM...

i started some time back to try to pull the UFO FDM out and make it a separate FDM like the others but quickly got lost... even trying to make a copy of the UFO into another directory and strip out that object placement code was very trying... after a week or three, i gave up until a later time when i've learned more... sadly, that time has not arrived...


I made a little project to show how simple is to make your own UFO. First, all you need is a 3D model. You can use everything. Even a simple sphere can be used to make the job, but the number of objects inside the 3D model doesn't really matter. What really matters is that your model need to be fully UVmapped and fully Textured or something can will go wrong.

For this project that I called FG-BIRD-01 I used one of my 3D models. Thats a really low poly I started many years ago for a Space Shootin Game that at the end never happened.

Image

You've to create a root directory with the name of the project/craft. Mine is FG-BIRD-01; inside that root directory I create two sub-directories. One called Models and the other called Sounds. Create a simple xml set file on it. A splash will be needed and a thumbnail will complete.

Image

Take a look at my set file called fg-bird-01-set.xml. Is a pretty easy file.

Code: Select all

<?xml version="1.0"?>

<!-- License:  GNU GPLv2                   -->
<!-- Author:   Patrizio Melis              -->
<!-- Email:    cobe571@gmail.com           -->

<PropertyList>

 <sim>

  <description>FG BIRD 01</description>
  <author>Patrizio Melis (3D, FDM)</author>
  <status>alpha</status>

  <flight-model>ufo</flight-model>

  <startup>
   <splash-texture>Aircraft/FG-BIRD-01/splash.jpg</splash-texture>
  </startup>

  <sound>
   <path type="string">Aircraft/FG-BIRD-01/Sounds/sound.xml</path>
  </sound>

  <submodels>
<!--  -->
  </submodels>

  <virtual-cockpit archive="y">true</virtual-cockpit>

  <model>
   <path>Aircraft/FG-BIRD-01/Models/fg-bird-01.xml</path>
  </model>
 
  <view n="0">
      <internal archive="y">true</internal>
      <config>
        <x-offset-m archive="y">  0.00 </x-offset-m>   <!-- Right -->
        <y-offset-m archive="y">  1.05 </y-offset-m>   <!-- Up    -->
        <z-offset-m archive="y"> -1.18 </z-offset-m>   <!-- Back  -->
        <default-field-of-view-deg> 85 </default-field-of-view-deg>
        <pitch-offset-deg> -6.3 </pitch-offset-deg>
      </config>
    </view>

  <help>
   <title>FG-BIRD-01</title>
   
  </help>

  <multiplay>
    <generic>
       <float n="0"> 1.0 </float>
       <float n="1"> 1.0 </float>
    </generic>
  </multiplay>

</sim>

 <nasal>
 </nasal>


</PropertyList>



The directory Models. The 3D model can use more than a single texture. There are two.

Image

The file fg-bird-01.xml is even simple than the set file

Code: Select all

<?xml version="1.0"?>

<PropertyList>
 <path>fg-bird-01.ac</path>
 
</PropertyList>



FG-BIRD-01 LINK TO GitHub -> https://github.com/cobe571/FG-BIRD-01

Hope that helps

Kind regards,

Patrizio.
"According to the laws of aerodynamics, the bumblebee can't fly either, but the bumblebee doesn't know anything about the laws of aerodynamics, so it goes ahead and flies anyway."
User avatar
cobe571
 
Posts: 261
Joined: Fri Mar 08, 2013 12:28 am
Location: (ITALY)
Callsign: cobe571
IRC name: cobe571
Version: 2020.3.8
OS: Debian

Re: UFOv2 for FlightGear - GPL v.2

Postby wkitty42 » Thu Sep 05, 2019 8:51 pm

interesting... i was under the impression that code in the UFO was part of the UFO FDM... no wonder i got lost trying to use it for other craft and then removing the unwanted fluff'n'stuff like object placement... maybe i'll go back and play with the x-wing and a few others i was toying with back then ;)
"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: 9123
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: UFOv2 for FlightGear - GPL v.2

Postby eatdirt » Thu Jun 18, 2020 11:20 pm

It is beautiful!

May I suggest to add an option to speed it up? In UFO, these are the keys "[" and "]" and they allow to reach 100000 m/s, which is quite useful to go to space :)
eatdirt
 
Posts: 1012
Joined: Wed Aug 15, 2018 3:06 pm

Re: UFOv2 for FlightGear - GPL v.2

Postby Alant » Thu Jul 02, 2020 11:46 pm

I find the current UFO to be uncontrollable from the keyboard or mouse. It is better with a joystick. Perhaps it was designed by the madman who invented the Blender gui ;)
Has any progress been made on a simpler version?
Alan
Alant
 
Posts: 1219
Joined: Wed Jun 23, 2010 6:58 am
Location: Portugal
Callsign: Tarnish99
Version: latest Git
OS: Windows 10/11

Re: UFOv2 for FlightGear - GPL v.2

Postby cobe571 » Fri Aug 28, 2020 11:23 am

Last months I worked on a totally new kind of UFOs... A small number of new UFO shapes. They're very different from what you know and saw in the past. I dont know If I'll release it soon anyway...
Take care and stay safe.

Regards ~P.
"According to the laws of aerodynamics, the bumblebee can't fly either, but the bumblebee doesn't know anything about the laws of aerodynamics, so it goes ahead and flies anyway."
User avatar
cobe571
 
Posts: 261
Joined: Fri Mar 08, 2013 12:28 am
Location: (ITALY)
Callsign: cobe571
IRC name: cobe571
Version: 2020.3.8
OS: Debian

Re: UFOv2 for FlightGear - GPL v.2

Postby cobe571 » Mon Apr 05, 2021 4:05 pm

"According to the laws of aerodynamics, the bumblebee can't fly either, but the bumblebee doesn't know anything about the laws of aerodynamics, so it goes ahead and flies anyway."
User avatar
cobe571
 
Posts: 261
Joined: Fri Mar 08, 2013 12:28 am
Location: (ITALY)
Callsign: cobe571
IRC name: cobe571
Version: 2020.3.8
OS: Debian

Previous

Return to Aircraft

Who is online

Users browsing this forum: No registered users and 5 guests