Board index FlightGear Development Aircraft

Dassault Mirage 2000 H08 (2007 Version) update

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

Re: Dassault Mirage 2000 H08 (2007 Version) update

Postby openflight » Thu Jun 11, 2020 10:57 am

I had a look at Buckaroos notes on this from the Mirage-2000 -5 /systems folder. YASIM settings are as follows for wing:
"Mirage-2000" 75.6 MB (75628756 bytes)

Code: Select all
  <wing x="-0.9" y="0.247" z="-0.933"
        chord="7.823"
        length="5.5"
        taper="0.08"
        sweep="38"
        dihedral="-4"
        incidence="0"
        camber="0.03">
        <stall aoa="29" width="8" peak="1.7" />
        <slat    start="0.20"  end="0.80"  aoa="6"     drag=" 2.0" />
        <flap0   start="0.59"  end="0.90"  lift="1.75" drag=" 1.2" />
        <spoiler start="0"  end="0.05"  lift="1"    drag="150" />


And my model referred to as "mirage2000_20070103"

Code: Select all
 <wing x="-1.991" y="0.247" z="-0.683"
       chord="7.352"
        length="4.96"
        taper="0.09"
         sweep="42"
        camber="0.05">
        <stall aoa="20" width="1" peak="1.2"/>
        <flap0 start="0.59" end="0.90" lift="1.5" drag="1.4"/>
        <spoiler start="0.59" end="0.90"  lift="1" drag="39.9"/>


So differences in sweep, slats are added in the Mirage 2000-5 and the stall width is 8, stall angle 29 degrees.
The 'real' aircraft performed as follows: (Wikipedia)

On the other end of the speed spectrum, the Mirage 2000 proved to be a capable low-speed aircraft, as demonstrated at the Farnborough Airshow in September 1978, during which Dassault pilot Guy Mitaux-Maurourd raised the aircraft's nose to 25-degree angle of attack as the aircraft slowed to 100 knots. Later tests showed that the aircraft could attain 30° AoA while carrying fuel tanks and weapons.[9]
openflight
 
Posts: 454
Joined: Fri Sep 16, 2011 11:14 am
Version: 1 2 2018
OS: Linux Mint 19.3

Re: Dassault Mirage 2000 H08 (2007 Version) update

Postby enrogue » Thu Jun 11, 2020 11:12 am

Are you able to run Blender on your computer? There is an import script for YASim configuration to display in Blender that is extremely useful for checking against a 3d model of the aircraft
User avatar
enrogue
 
Posts: 244
Joined: Mon May 19, 2014 6:40 pm
Location: London (UK)
Callsign: enrogue
OS: OS X, Ubuntu

Re: Dassault Mirage 2000 H08 (2007 Version) update

Postby openflight » Fri Jun 12, 2020 4:03 pm

Blender which version? And the script is:

http://wiki.flightgear.org/Blender_YASim_import

Ah yes WIki has all the answers, will try. Heard about it but needed the encouragement to try
openflight
 
Posts: 454
Joined: Fri Sep 16, 2011 11:14 am
Version: 1 2 2018
OS: Linux Mint 19.3

Re: Dassault Mirage 2000 H08 (2007 Version) update

Postby enrogue » Fri Jun 12, 2020 5:11 pm

Are you running Mint? I guess whichever version Mint installs

Current version is 2.82 for Ubuntu & Debian testing, 2.79 for Debian stable

I have an updated version of the script that works with 2.8x here

https://github.com/alexeijd/simple_yasi ... /tree/2.80
User avatar
enrogue
 
Posts: 244
Joined: Mon May 19, 2014 6:40 pm
Location: London (UK)
Callsign: enrogue
OS: OS X, Ubuntu

Re: Dassault Mirage 2000 H08 (2007 Version) update

Postby openflight » Sun Jun 14, 2020 1:54 am

FlightGear: Version 2018.1.1

Well there are problems running the Mirage 2000-5 even in this version: My machine is, for reference:

Celeron CPU - 4GB RAM - 2015 Model, Integrated Graphics

Just flew the Mirage 2000-5 and even with all the graphics turned off, it is still laggy with frame rates less than 10 for sure.
This is the exact reason that I stick with the older Flight Gear versions, and hence older planes .. for now.

Details:

*-cpu
product: Intel(R) Celeron(R) CPU N3050 @ 1.60GHz
vendor: Intel Corp.
physical id: 1
bus info: cpu@0
size: 1454MHz
capacity: 2160MHz
width: 64 bits

*-display
description: VGA compatible controller
product: Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller
vendor: Intel Corporation
openflight
 
Posts: 454
Joined: Fri Sep 16, 2011 11:14 am
Version: 1 2 2018
OS: Linux Mint 19.3

Re: Dassault Mirage 2000 H08 (2007 Version) update

Postby openflight » Tue Jun 16, 2020 12:34 am

Quite a rewarding experience improving this Mirage. I took a flight from KSFO to KSJC following compass headings only, found the airport and landed. Being able to go as slow as 140 knots really helps. Only thing I can't look out the side without losing the 2D panel.

Time to update to a 3D panel. First thing I did was add the panel reference from the Mirage5 wholesale. That did not work because that panel file referred to models that were not there in the Mirage 2000 folders. Finally I came to the realisation that instruments can be placed in the /model folder under the /models/modelconfigurationfile.xml, same place as the animations.

Adding 3D instruments from other planes did not help, so in desperation I added the Cessna 172 compass, first thing I could find, and added it offset 4 metres from zero.

Code: Select all
<model>
  <name>MagCompass</name>
  <path>Aircraft/Instruments-3d/mag-compass.xml</path>
  <offsets>
   <x-m>4.35</x-m>
   <y-m>4.00</y-m>
   <z-m>4.16</z-m>
  </offsets>
 </model>


I was rewarded by the sight of a small magnetic compass floating high above the aircraft. Actually here is where I add ten instances of the item and by counting figure out which one is closest to where I want.

Does the Wiki have something on this, have I missed it, does it need to be updated?

Huge discussion here which I must re-read:

viewtopic.php?t=16579&start=15

This one needs an update - I never said how to add instruments to aircraft that have no instruments or virtual cockpit showing anyway.

http://wiki.flightgear.org/Howto:Add_in ... _a_cockpit

This one is very nicely done, on creating instruments, but maybe needs to be simplified. There are many who are computer literate but will find, like me, the Flight Gear configuration environment somewhat confusing.

http://wiki.flightgear.org/Howto:Creati ... nstruments
openflight
 
Posts: 454
Joined: Fri Sep 16, 2011 11:14 am
Version: 1 2 2018
OS: Linux Mint 19.3

Re: Dassault Mirage 2000 H08 (2007 Version) update

Postby openflight » Tue Jun 16, 2020 12:44 am

Changes so far and priority changes: ( Will have a changelog file distributed with the model, finally an cleaned up folders)

- Repositioned model to touch runway
- Modified canopy that is too long, but still this needs work
-Made virtual cockpit visible
- Moved required 2D instruments from F-16 folder to mirage 2000 folder
- Removed pilot
- Lowered instrument panel height
-Changed FDM from JBSIM to YASIM and changed approach speed

To Do
-Change to M53 engine
-Change stall width
-Change roll inertial
-Install new pilot
-Install 3D instruments
-Replace wheels and tires with better looking ones
-Improve ground interaction and springiness of tires
-Rudder centering key to be implemented
-Smooth edges of model (maybe)

Later
Mode detailed 3D cockpit.
openflight
 
Posts: 454
Joined: Fri Sep 16, 2011 11:14 am
Version: 1 2 2018
OS: Linux Mint 19.3

Re: Dassault Mirage 2000 H08 (2007 Version) update

Postby openflight » Tue Jun 16, 2020 7:27 am

Finally managed to get an instrument on the panel by adding several instances of the same instrument at different x-coordinates (front to back direction) and a positive Y coordinates (to the right side of the aircraft).

When the instrument was situated in line with the cockpit I made the Y coordinate as zero. A large altimeter appeared directly in front of me in the HUD. Adjusting the z coordinate (up and down) a few centimetres placed it directly in front.

The XML from the mirage2000 model file is as follows:

Code: Select all
<model>
   <name>Altimeter</name>
  <path>Aircraft/Instruments-3d/alt/alt.xml</path>
  <offsets>
   <x-m>-4.00</x-m>
   <y-m>0.00</y-m>
   <z-m>0.25</z-m>
  </offsets>
 </model>
openflight
 
Posts: 454
Joined: Fri Sep 16, 2011 11:14 am
Version: 1 2 2018
OS: Linux Mint 19.3

Refining the wheels and tires

Postby openflight » Thu Jun 18, 2020 2:48 am

With the instrument panel configuration sorted out, and I added the Mirage 5 altimeter to the panel, it was time to look at updating the wheels and tires.

The wheels and tires are part of an animated assembly, so unlike the Cessna 172 I could not just delete the old wheel and drop in the new wheel into the 3D model in Blender.

Luckily AC3D files are in text format, which means they can be edited. I found the part that refers to the left wheel in the mirage200.ac file:

Code: Select all
OBJECT poly
name "left_wheel"
data 8
Mesh.020
crease 30
numvert 66      (actually this is different)
1 -1 -1
1.175876 -1 -0.785695
1.306563 -1 -0.54119...


I have experience with the YSFLIGHT flight sim where it was all cutting and pasting surfaces, at least in the beginning. Now there are Blender Scripts.

I created a cylinder in Blender and exported it to the .ac file format. I then copied and pasted the section starting at 'numvert' and ending at 'kid0' from this cylinder shape I renamed 'wheel'

.ac cylinder file start section I copied ignoring all else:

Code: Select all
OBJECT poly
name "Cylinder"
data 8
Cylinder
crease 30
numvert 66..


to

Code: Select all
OBJECT poly
name "left_wheel"
data 8
Mesh.020
crease 30
numvert 66


Starting the Mirage 2000, I was gratified to find a huge cylinder stuck in the middle of the Mirage. After taking off, retracting the gear, at first nothing happened, but after the front wheel came up, the rear wheels and the large cylinder rotated and disappeared into the fuselage.

I noted that the section entitled 'wheel' is actually the landing gear assembly and wheel as well, not the tires, these are separate. Maybe they need to be squashed on landing.

Grey default colors are another thing - need to look at that, but replacing an object in a 3D model file is not possible, for me at least.

I document it here for reference for others as well as myself.

What is the best way to post images to this forum?
openflight
 
Posts: 454
Joined: Fri Sep 16, 2011 11:14 am
Version: 1 2 2018
OS: Linux Mint 19.3

Re: Refining the wheels and tires

Postby wkitty42 » Thu Jun 18, 2020 3:42 pm

openflight wrote in Thu Jun 18, 2020 2:48 am:What is the best way to post images to this forum?

the only way to post images is to post them to an image server on the 'net and then link the image here in img tags...
many folk use imgur to host their pics... when you upload your pic to imgur, look at the resulting page... then click on the picture to view it larger... right click on the picture and select "copy image link"... then post that here in the img tags...

eg:
Code: Select all
[img]your image link here[/img]
"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: 6444
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Dassault Mirage 2000 H08 (2007 Version) update

Postby openflight » Thu Jun 18, 2020 3:46 pm

Lots of progress today, and the model is looking good in white.

Used Blender to import / export the model to Wings3D where the tires and wheels were enlarged, the landing gear was made thicker, and slanted inwards like the real thing. Imported to Blender and exported to FG, then again re-named new gear with the names of the replaced parts, such as right_wheel, which can be done in Blender by accessing the properties of the object.

Next I assigned the correct material to the tires and canopy by editing the .ac file in a text editor. Textures have disappeared but I just need to load and re-import the wheels. Really nice model.

Images at the website link:



https://sites.google.com/site/flightgea ... ly-version
openflight
 
Posts: 454
Joined: Fri Sep 16, 2011 11:14 am
Version: 1 2 2018
OS: Linux Mint 19.3

Re: Refining the wheels and tires

Postby openflight » Thu Jun 18, 2020 3:48 pm

wkitty42 wrote in Thu Jun 18, 2020 3:42 pm:
openflight wrote in Thu Jun 18, 2020 2:48 am:What is the best way to post images to this forum?

the only way to post images is to post them to an image server on the 'net and then link the image here in img tags...
many folk use imgur to host their pics... when you upload your pic to imgur, look at the resulting page... then click on the picture to view it larger... right click on the picture and select "copy image link"... then post that here in the img tags...

eg:
Code: Select all
[img]your image link here[/img]


Thanks but concerns of how long the image will be available and how secure it will be - but mainly I don't want a broken link 5 years down the line.
openflight
 
Posts: 454
Joined: Fri Sep 16, 2011 11:14 am
Version: 1 2 2018
OS: Linux Mint 19.3

Re: Dassault Mirage 2000 H08 (2007 Version) update

Postby wkitty42 » Thu Jun 18, 2020 4:18 pm

there's no real solution for that other than possibly hosting it on your own server or using dropbox or a similar service (google or apple)... that works decently well and the images will stay until you remove them yourself... with dropbox, you'll have the image on your system as well as on dropbox... if you remove it from your system, it will be removed from dropbox...

if you use dropbox, be sure to change the "dl=0" at the end of the shared link to "dl=1" so the image will embed in the post and not have to be clicked and viewed/downloaded that way... by default, everything on dropbox is private unless you specifically share it to certain people or create a generic link to the item you are sharing...

eg:
Code: Select all
[img]https://www.dropbox.com/s/dgrvybh8r14t2yr/C172p-at-13500andclimbing.jpg?dl=1[/img]

Image
"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: 6444
Joined: Fri Feb 20, 2015 3:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 14.04.5

Re: Dassault Mirage 2000 H08 (2007 Version) update

Postby openflight » Sat Jun 20, 2020 1:10 am

OK so here goes: Google Drive. I just hope no one can see my other pictures in Drive.

Picture of Mirage 2000 with upgraded wheels and tires.

Image

https://drive.google.com/file/d/1LuOALlyXycRcuCs64WY6o2cyv-C87zLu/view?usp=sharing
openflight
 
Posts: 454
Joined: Fri Sep 16, 2011 11:14 am
Version: 1 2 2018
OS: Linux Mint 19.3

Re: Dassault Mirage 2000 H08 (2007 Version) update

Postby Octal450 » Mon Jun 22, 2020 5:08 pm

openflight wrote in Tue Jun 16, 2020 12:44 am:-Changed FDM from JBSIM to YASIM and changed approach speed

With the greatest respect, that is the dumbest thing I've read. YASIM is VERY unrealistic.

Kind Regards,
Josh
What I do: Flight Dynamics, Systems, Canvas Displays, Autoflight, FlyByWire, Cockpit Animations
Aircraft I currently develop: MD-11 (Mainly), A320-family, Secret (Quality over Quantity)

My GitHub|MD-11 and ITAF Dev Discord|Airbus Dev Discord
User avatar
Octal450
 
Posts: 4635
Joined: Tue Oct 06, 2015 12:51 pm
Callsign: WTF411/Octal
Version: next
OS: Windows 10 x64

PreviousNext

Return to Aircraft

Who is online

Users browsing this forum: Solid and 3 guests