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 1: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: 254
Joined: Thu Apr 16, 2009 1:58 pm

Re: UFOv2 for FlightGear - GPL v.2

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

wkitty42 wrote in Sun Sep 01, 2019 5: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: 190
Joined: Thu Mar 07, 2013 11:28 pm
Location: (ITALY)
Callsign: cobe571
IRC name: cobe571
Version: 2018.3.2
OS: UbuntuStudio , Win10

Re: UFOv2 for FlightGear - GPL v.2

Postby wkitty42 » Thu Sep 05, 2019 7: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: 5568
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Previous

Return to Aircraft

Who is online

Users browsing this forum: Google [Bot] and 15 guests