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.

Dassault Mirage 2000 H08 (2007 Version) update

Postby openflight » Sun May 31, 2020 1:28 am

The Dassault Mirage 2000 2007 version runs and loads in FG1 as well as Flight Gear 2.0 and probably in all other versions as well. I have begun improving the model as the base model is nicely done, with a working HUD.

Progress so far:
Created a separate folder named Mirage2000H08 based on the number on the nose of the aircraft.

-Moved the original Mirage 2000 folder to a TEMP file in the FG Aircraft folder
(so it would not show in the startup and not be involved in any way with the current model)

-Copied the following folders to the new folder:
-Models
-Engines - uses the F-16 engine specifications - must change

-Copied the following files to the new folder:

-mirage2000.xml - flight configuration file (JBSIM)
-mirage2000-set.xml - settings file

The model loads and runs but the airplane is invisible from the cockpit view as mentioned below in this incorrectly titled thread:


Dassault Mirage 5 Old Version convert 2D panel to 3DHi

The topic refers to the old M Duex Mille as they say:

http://wiki.flightgear.org/Dassault_Mirage_2000

Not to be confused with Dassault Mirage 2000-5.

Does anyone know how to remove the 2D cockpit view and allow the 3D cockpit view to be shown? All I get is clear view of the runway. The model loads and runs, and I can fly with the HUD.

Of course I would like to fly the latest version, but I have some problem with missiles loading in FG 2018 and also in FG 2.0 Windows version, so I would like to modify the old Mirage 2000 to run with those or with Flight Gear One https://sites.google.com/site/flightgearone/home, which I am now enjoying flying the Mirage 5 in.

BTW the biggest inaccuracy is the canopy -it extends further forward than it should.

openflight


Posts: 353
Joined: Fri Sep 16, 2011 5:14 am
Version: 1.0
OS: Lubuntu 16.04LTS



Re: Dassault Mirage 5 Old Version convert 2D panel to 3D

Postby openflight » Fri May 29, 2020 8:17 am
OK so after trying deleting everything I finally installed the Mirage 2000 model into a Mirage III folder - substituted the 3D model only, even renamed in mirageIII.ac and it loaded as shown. I had to move the view point a few metres ahead but it looks passable.

What is the code that disables the 3D interior from showing when a 2D panel is used? I looked at all the files and all the lines of code.

Anyway here is my page for the m2000 early version https://sites.google.com/site/flightgea ... ly-version


openflight

Posts: 353
Joined: Fri Sep 16, 2011 5:14 am
Version: 1.0
OS: Lubuntu 16.04LTS
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 » Sun May 31, 2020 5:00 am

The view settings are in the nasal folder. So scripts in this folder are executed automatically?

As follows:

aircraft/MirageIII/Nasal/views.xml

<view n="0">
<internal archive="y">true</internal>
<config>
<x-offset-m archive="y"> 0.000 </x-offset-m> <!-- Right -->
<y-offset-m archive="y"> 0.755 </y-offset-m> <!-- Up -->
<z-offset-m archive="y"> -3.500 </z-offset-m> <!-- Back -->
<pitch-offset-deg> -12 </pitch-offset-deg>
<default-field-of-view-deg> 65 </default-field-of-view-deg>
</config>
</view>
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 » Sun May 31, 2020 4:03 pm

Following my own notes I used the Piper PA-28 as a template, and that configuration file somehow loads the model so it is visible in cockpit mode.

After removing some of the artefacts, items not needed for the Mirage 2000 model, I have a working model however without landing gear. Test flying it now.

**Update: model loads but engine is not working and model is not moving at all. Yes there is an engine on setting that must be tried.

So I have these two situations:

- A Mirage 2000 that works fine but has no virtual cockpit

- A Mirage 2000 that shows virtual cockpit but includes artefacts from another model

- A Mirage 2000 with virtual cockpit and no artefacts - eg unnecessary files from another model, but does not fly.


Two options:

(1) There is a property in internal properties named /sim/virtual-cockpit = false in the virtual cockpit Mirage 2000.
This property appears as true in another model such as the DHC2 which has and shows a virtual cockpit.
Setting this to true using a Nasal script may work

(2) Replace the 3D model and configuration files of another working model such as the Mirage 5 with the Mirage 2000 files and configuration files and delete and test the artefacts.

I am curious as to what approach has been tried - creating or modifying a model is easy if not for these strange consequences.
Last edited by openflight on Mon Jun 01, 2020 12:32 am, edited 1 time in total.
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 vanosten » Sun May 31, 2020 8:17 pm

I am a bit confused. Are you aware of viewtopic.php?f=4&t=20576? There is quite an excellent Mirage 2000-5 version already.
Maintaining osm2city. Contributing with ground attack stuff to the OPRF FlightGear military-simulation community.
vanosten
 
Posts: 461
Joined: Sat Sep 25, 2010 5:38 pm
Location: Denmark - but I am Swiss
Callsign: HB-VANO
Version: latest
OS: Win 10 and Ubuntu

Re: Dassault Mirage 2000 H08 (2007 Version) update

Postby openflight » Mon Jun 01, 2020 12:35 am

Hi

Yes I am aware that a new model is available. I have downloaded the model but have no success with it.

- The model does not load in FG 2.0
- The model does not load in FG 1.0 (to be expected)
- I cannot add a new model to FG 2018 which I have installed, no matter what I try. It should work on that.

Something about Matra missiles.

In any case it is easier to modify a simpler version for my simpler FG1 environment.
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 » Mon Jun 01, 2020 1:14 am

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>

<PropertyList>

  <sim include="Nasal/views.xml">....


This is from the Mirage 5 base.xml file which is basically a sub file of the main set file.

views.xml contains:

Code: Select all
<view n="0">
    <internal archive="y">true</internal>
    <config>
    <internal archive="y">true</internal>
    <config>
      <from-model type="bool">true</from-model>
      <from-model-idx type="int">0</from-model-idx>
      <ground-level-nearplane-m type="double">0.01f</ground-level-nearplane-m>
      <x-offset-m archive="y">  0.000 </x-offset-m>  <!--Right-->
      <y-offset-m archive="y">  2.740 </y-offset-m>  <!--Up-->
      <z-offset-m archive="y"> 10.412 </z-offset-m>  <!--Back-->
      <pitch-offset-deg> -5 </pitch-offset-deg>
      <default-field-of-view-deg type="double"> 30 </default-field-of-view-deg>
    </config>
  </view>




So this should work.

However it is sometimes the case that an error in loading an item will cause the model to be invisible. Sometimes a yellow plane is loaded...
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 » Mon Jun 01, 2020 1:32 am

Browsing sim/properties virtual cockpit is set to false, and I cannot change it. Nothing can change it : why?
Is there a code that is forcing this?
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 J Maverick 16 » Mon Jun 01, 2020 10:49 am

It would probably be easier to get 2020.1.2 than trying to force new tech into a 15y/o version of FlightGear. It's like asking a Nokia 3310 to run apps from the Play Store. Not that you shouldn't try but I don't see the benefit here, for you especially. Unless you're hardware-limited but that's another topic.
Anyhow, good luck.
Regards, Mav
Breakin' the sound barrier every day!

Scenery designer, basic livery maker, aircraft developer (KC-137R, F-16, A330, C-32J, MH-60)
Flying with Thrustmaster FCS Flight Pack + MFD Cougar
Find me also on Instagram & Twitter @j_maverick16 and YouTube
User avatar
J Maverick 16
 
Posts: 882
Joined: Sat Feb 01, 2014 6:26 pm
Location: Northern Italy
Callsign: J-Mav16, REBEL84
Version: 2020.1.1
OS: macOS 10.12.6

Re: Dassault Mirage 2000 H08 (2007 Version) update

Postby openflight » Mon Jun 01, 2020 2:19 pm

BTW the settings for the correct position in the Mirage 2000 are as follows:

Code: Select all
<view n="0">
    <internal archive="y">true</internal>
    <config>
      <x-offset-m archive="y">  0.000 </x-offset-m>  <!-- Right -->
      <y-offset-m archive="y">  0.755 </y-offset-m>  <!-- Up    -->
      <z-offset-m archive="y">  -3.500 </z-offset-m>  <!-- Back  -->
      <pitch-offset-deg> -12 </pitch-offset-deg>
      <default-field-of-view-deg> 65 </default-field-of-view-deg>
    </config>
  </view>
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 » Mon Jun 01, 2020 2:27 pm

J Maverick 16 wrote in Mon Jun 01, 2020 10:49 am:It would probably be easier to get 2020.1.2 than trying to force new tech into a 15y/o version of FlightGear. It's like asking a Nokia 3310 to run apps from the Play Store. Not that you shouldn't try but I don't see the benefit here, for you especially. Unless you're hardware-limited but that's another topic.
Anyhow, good luck.
Regards, Mav


I have already installed 2018, and will get 2020 if I can. 2018 runs acceptably with all the graphics turned down in an 800x 600 window.

Part of my motivation is development - it takes less time to test in FG1 than in later versions, but once I have it working in FG1 I can apply the same developments - for example added instrument placements and FDM - to the latest versions.
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 02, 2020 4:01 am

Contacted author.

Uses exact FDM as F-16. Needs to be changed
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 » Wed Jun 03, 2020 12:41 am

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 » Wed Jun 03, 2020 1:17 am

Got it working!

After trying several things with configuration files to make the 3D cockpit appear in the original Mirage 2000 model, I finally got it working.

Heres how:

- Corrected all errors in loading, for example there were some files the model needed from the F-16 model, which I then downloaded.

- After the above change, it was now possible to set the property "virtual-cockpit" to "true" in the properties browser, although the cockpit still did not appear, the setting stuck.

- Examined the Mirage III settings file for anything that would set the virtual cockpit to true. I found the following in mirageIII-base.xml in the model root folder:

Code: Select all
<sim include="Nasal/views.xml">


- Using the above information, I added the include line to the mirage200-set.xml file and copied the Nasal folder from the Mirage III folder to the Mirage2000 folder.

- It works! I was immediately placed on the floor of the Mirage 2000 looking at the back of the seat. Next I have to change the position which was already noted.

Picture here:

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: Dassault Mirage 2000 H08 (2007 Version) update

Postby wkitty42 » Wed Jun 03, 2020 9:37 am

openflight wrote in Wed Jun 03, 2020 1:17 am:- Corrected all errors in loading, for example there were some files the model needed from the F-16 model, which I then downloaded.

if you are going through all this trouble, you should also do what is needed to separate the craft from needing other craft installed to work properly...
"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 06, 2020 12:59 am

Yes of course. It was intriguing to see a two blank spots on the right side panel and a reference to the F-16. t only that, it uses the F-16 flight model with flaps and the PW-100 engine, the latter which I changed.

Using Aeromatic to generate the JBSIM file does not work... wait maybe an earlier version

or

Note: After a configuration file has been generated and is displayed in your browser, you should select (via the menu) "View Source". This is needed because when viewing aircraft configuration files (for instance), some formatting is performed for web browser viewing, but if the file is saved in that format it will not work. The source for the page needs to be viewed, and the file saved with a '.xml' extension.
or maybe:
openflight
 
Posts: 454
Joined: Fri Sep 16, 2011 11:14 am
Version: 1 2 2018
OS: Linux Mint 19.3

Next

Return to Aircraft

Who is online

Users browsing this forum: No registered users and 2 guests