Mais, que se passe-t-il ?
2 participants
Page 1 sur 1
Mais, que se passe-t-il ?
Bonjour à tous,
Exposé du pb : le Sabre F86 de Detlef Faber a une animation des trains principaux dont chacun peut se rendre compte : excepté l'ouverture simultanée des trappes intérieures, le mouvement des trains et surtout celui de fermeture de la trappe intérieure droite ne sont pas synchronisés !
Mon modèle commandé sur le même canevas xml en fait autant et même mieux oublie ses roues (jante et pneu) en route...
Ici, j'ai escamoté les trappes et laissé l'intérieur des coffres sans texture pour voir si les trains y rentrent bien correctement...En fait c'est bon pour le fût mais les roues sont ailleurs !
Pensant que leur définition pouvait être trop détaillée donc lourde en termes de calcul, j'ai supprimé la jante (c'est une jante avec 12 rayons agréable pour bien discerner le spin programmé !) mais le résultat n'est pas meilleur :
Au fil des essais, j'ai obtenu un essai satisfaisant :
et d'autres où il me semble qu'il n'y a pas de répétition du défaut en ce qui concerne la position terminale du pneu ou de la roue...
A priori ce que je peux expliquer c'est que Faber a décrit d'abord les mouvements des trains coté gauche puis coté droit ce qui quelque part pourrait expliquer l'asynchronisme des trains et des trappes...
Que faut-il penser de l'organisation du xml d'une séquence assez complexe comme la descente/remontée des trains d'un avion ?
Ci-dessous mon xml expurgé par rapport à l'original :
Exposé du pb : le Sabre F86 de Detlef Faber a une animation des trains principaux dont chacun peut se rendre compte : excepté l'ouverture simultanée des trappes intérieures, le mouvement des trains et surtout celui de fermeture de la trappe intérieure droite ne sont pas synchronisés !
Mon modèle commandé sur le même canevas xml en fait autant et même mieux oublie ses roues (jante et pneu) en route...
Ici, j'ai escamoté les trappes et laissé l'intérieur des coffres sans texture pour voir si les trains y rentrent bien correctement...En fait c'est bon pour le fût mais les roues sont ailleurs !
Pensant que leur définition pouvait être trop détaillée donc lourde en termes de calcul, j'ai supprimé la jante (c'est une jante avec 12 rayons agréable pour bien discerner le spin programmé !) mais le résultat n'est pas meilleur :
Au fil des essais, j'ai obtenu un essai satisfaisant :
et d'autres où il me semble qu'il n'y a pas de répétition du défaut en ce qui concerne la position terminale du pneu ou de la roue...
A priori ce que je peux expliquer c'est que Faber a décrit d'abord les mouvements des trains coté gauche puis coté droit ce qui quelque part pourrait expliquer l'asynchronisme des trains et des trappes...
Que faut-il penser de l'organisation du xml d'une séquence assez complexe comme la descente/remontée des trains d'un avion ?
Ci-dessous mon xml expurgé par rapport à l'original :
- Code:
<?xml version="1.0"?>
<!-- Un fichier enveloppe pour le modèle 3D F-86A -->
<PropertyList>
<path>f86f.ac</path>
<!-- Roulette de nez -->
<!-- Rotation de 100 degrés -->
<animation>
<type>rotate</type>
<object-name>Train_avant</object-name>
<object-name>Pivot_avant</object-name>
<object-name>Jante_roulette</object-name>
<object-name>Pneu_roulette</object-name>
<property>gear/gear[0]/position-norm</property>
<interpolation>
<entry><ind>0</ind><dep>100</dep></entry>
<entry><ind>0.15</ind><dep>100</dep></entry>
<entry><ind>0.85</ind><dep>0</dep></entry>
<entry><ind>1</ind><dep>0</dep></entry>
</interpolation>
<center>
<x-m>-4.79393</x-m>
<y-m>0</y-m>
<z-m>-0.5927231
</z-m>
</center>
<axis>
<x>0</x>
<y>-1</y>
<z>0</z>
</axis>
</animation>
<!-- Pivotement de 90 degres -->
<animation>
<type>rotate</type>
<!-- <object-name>Train_avant</object-name> -->
<object-name>Pivot_avant</object-name>
<object-name>Jante_roulette</object-name>
<object-name>Pneu_roulette</object-name>
<property>gear/gear[0]/position-norm</property>
<interpolation>
<entry><ind>0</ind><dep>-90</dep></entry>
<entry><ind>0.15</ind><dep>-90</dep></entry>
<entry><ind>1</ind><dep>0</dep></entry>
</interpolation>
<center>
<x-m>-4.79393</x-m>
<y-m>0</y-m>
<z-m>-0.5927231</z-m>
</center>
<axis>
<x1-m>-4.88852</x1-m>
<y1-m>0</y1-m>
<z1-m>-.9443518</z1-m>
<x2-m>-4.79393</x2-m>
<y2-m>0</y2-m>
<z2-m>-0.5927231</z2-m>
</axis>
</animation>
<!-- Ouverture des trappes de roulette avant -->
<animation>
<type>rotate</type>
<object-name>Trappe_roulette_arriere</object-name>
<property>gear/gear[0]/position-norm</property>
<interpolation>
<entry><ind>0</ind><dep>0</dep></entry>
<entry><ind>0.15</ind><dep>-90</dep></entry>
<entry><ind>0.85</ind><dep>-90</dep></entry>
<entry><ind>1</ind><dep>0</dep></entry>
</interpolation>
<axis>
<x1-m>-4.32606</x1-m>
<y1-m>-.3447919</y1-m>
<z1-m>-.7427377</z1-m>
<x2-m>-3.53723</x2-m>
<y2-m>-.3447919</y2-m>
<z2-m>-0.7967674</z2-m>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>Phares</object-name>
<object-name>Coupoles</object-name>
<property>gear/gear[0]/position-norm</property>
<interpolation>
<entry><ind>0</ind><dep>0</dep></entry>
<entry><ind>0.15</ind><dep>0</dep></entry>
<entry><ind>0.85</ind><dep>90</dep></entry>
<entry><ind>1</ind><dep>90</dep></entry>
</interpolation>
<center>
<x-m>-5.23</x-m>
<y-m>0</y-m>
<z-m>-0.61</z-m>
</center>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>Trappe_roulette_avant2</object-name>
<property>gear/gear[0]/position-norm</property>
<interpolation>
<entry><ind>0</ind><dep>0</dep></entry>
<entry><ind>0.15</ind><dep>0</dep></entry>
<entry><ind>0.85</ind><dep>0</dep></entry>
<entry><ind>1</ind><dep>-90</dep></entry>
</interpolation>
<center>
<x-m>-5.11883</x-m>
<y-m>0</y-m>
<z-m>-0.9378821</z-m>
</center>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>Trappe_roulette_avant1</object-name>
<object-name>Trappe_roulette_avant2</object-name>
<property>gear/gear[0]/position-norm</property>
<interpolation>
<entry><ind>0</ind><dep>0</dep></entry>
<entry><ind>0.15</ind><dep>0</dep></entry>
<entry><ind>0.85</ind><dep>120</dep></entry>
<entry><ind>1</ind><dep>120</dep></entry>
</interpolation>
<center>
<x-m>-4.98769</x-m>
<y-m>0</y-m>
<z-m>-0.680617</z-m>
</center>
<axis>
<x>0</x>
<y>1</y>
<z>0</z>
</axis>
</animation>
<!-- Roulement roulette -->
<animation>
<type>spin</type>
<object-name>Jante_roulette</object-name>
<object-name>Pneu_roulette</object-name>
<property>gear/gear[0]/rollspeed-ms</property>
<factor>-20.0</factor>
<center>
<x-m>-5.02957</x-m>
<y-m>0</y-m>
<z-m>-1.47076</z-m>
</center>
<axis>
<x>0.0</x>
<y>1.0</y>
<z>0.0</z>
</axis>
</animation>
<!-- Roulement roues principales -->
<animation>
<type>spin</type>
<object-name>Jante_gauche</object-name>
<object-name>Pneu_gauche</object-name>
<object-name>Jante_droite</object-name>
<object-name>Pneu_droit</object-name>
<property>gear/gear[1]/rollspeed-ms</property>
<factor>-20.0</factor>
<center>
<x-m>-.4611473</x-m>
<y-m>0</y-m>
<z-m>-1.39228</z-m>
</center>
<axis>
<x>0.0</x>
<y>1.0</y>
<z>0.0</z>
</axis>
</animation>
<!-- Ouverture train principal gauche -->
<animation>
<type>rotate</type>
<object-name>Train_gauche</object-name>
<object-name>Jante_gauche</object-name>
<object-name>Pneu_gauche</object-name>
<property>gear/gear[1]/position-norm</property>
<interpolation>
<entry><ind>0</ind><dep>85</dep></entry>
<entry><ind>0.15</ind><dep>85</dep></entry>
<entry><ind>0.85</ind><dep>0</dep></entry>
<entry><ind>1</ind><dep>0</dep></entry>
</interpolation>
<center>
<x-m>-.45</x-m>
<y-m>-1.29</y-m>
<z-m>-.5</z-m>
</center>
<axis>
<x>1</x>
<y>0.175</y>
<z>0</z>
</axis>
</animation>
<!-- Ouverture trappes train principal gauche -->
<animation>
<type>rotate</type>
<object-name>Trappe_exter_gauche</object-name>
<property>gear/gear[1]/position-norm</property>
<interpolation>
<entry><ind>1</ind><dep>85</dep></entry>
<entry><ind>0.85</ind><dep>85</dep></entry>
<entry><ind>0.15</ind><dep>0</dep></entry>
<entry><ind>0</ind><dep>0</dep></entry>
</interpolation>
<center>
<x-m>-.4576</x-m>
<y-m>-1.5</y-m>
<z-m>-.7</z-m>
</center>
<axis>
<x>-1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>Trappe_inter_gauche</object-name>
<property>gear/gear[1]/position-norm</property>
<interpolation>
<entry><ind>1</ind><dep>0</dep></entry>
<entry><ind>0.85</ind><dep>90</dep></entry>
<entry><ind>0.15</ind><dep>90</dep></entry>
<entry><ind>0</ind><dep>0</dep></entry>
</interpolation>
<axis>
<x1-m>-1.00069</x1-m>
<y1-m>-.0571044</y1-m>
<z1-m>-.8485448</z1-m>
<x2-m>-.2221726</x2-m>
<y2-m>-.0571045</y2-m>
<z2-m>-0.8259744</z2-m>
</axis>
</animation>
<!-- Ouverture train principal droit -->
<animation>
<type>rotate</type>
<object-name>Train_droit</object-name>
<object-name>Jante_droite</object-name>
<object-name>Pneu_droit</object-name>
<property>gear/gear[2]/position-norm</property>
<interpolation>
<entry><ind>0</ind><dep>85</dep></entry>
<entry><ind>0.15</ind><dep>85</dep></entry>
<entry><ind>0.85</ind><dep>0</dep></entry>
<entry><ind>1</ind><dep>0</dep></entry>
</interpolation>
<center>
<x-m>-.45</x-m>
<y-m>1.29</y-m>
<z-m>-.5</z-m>
</center>
<axis>
<x>-1</x>
<y>0.175</y>
<z>0</z>
</axis>
</animation>
<!-- Ouverture trappes train principal droit -->
<animation>
<type>rotate</type>
<object-name>Trappe_exter_droite</object-name>
<property>gear/gear[2]/position-norm</property>
<interpolation>
<entry><ind>1</ind><dep>85</dep></entry>
<entry><ind>0.85</ind><dep>85</dep></entry>
<entry><ind>0.15</ind><dep>0</dep></entry>
<entry><ind>0</ind><dep>0</dep></entry>
</interpolation>
<center>
<x-m>-.4576</x-m>
<y-m>1.5</y-m>
<z-m>-.7</z-m>
</center>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>Trappe_inter_droite</object-name>
<property>gear/gear[2]/position-norm</property>
<interpolation>
<entry><ind>1</ind><dep>0</dep></entry>
<entry><ind>0.85</ind><dep>-90</dep></entry>
<entry><ind>0.15</ind><dep>-90</dep></entry>
<entry><ind>0</ind><dep>0</dep></entry>
</interpolation>
<axis>
<x1-m>-1.00069</x1-m>
<y1-m>.0571044</y1-m>
<z1-m>-.8485448</z1-m>
<x2-m>-.2221726</x2-m>
<y2-m>.0571045</y2-m>
<z2-m>-0.8259744</z2-m>
</axis>
</animation>
<!--Gouverne de direction -->
<animation>
<type>rotate</type>
<object-name>Gouverne_de_direction</object-name>
<property>surface-positions/rudder-pos-norm</property>
<factor>-15</factor>
<axis>
<x1-m>4.8506</x1-m>
<y1-m>0</y1-m>
<z1-m>1.92096</z1-m>
<x2-m>4.988</x2-m>
<y2-m>0</y2-m>
<z2-m>2.15776</z2-m>
</axis>
</animation>
<!-- Ailerons -->
<animation>
<type>rotate</type>
<object-name>Aileron_gauche</object-name>
<property>surface-positions/aileron-pos-norm</property>
<factor>15 </factor>
<axis>
<x1-m>1.96446</x1-m>
<y1-m>-5.5593</y1-m>
<z1-m>-0.316793</z1-m>
<x2-m>.5275595</x2-m>
<y2-m>-2.95071</y2-m>
<z2-m>-.4854355</z2-m>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>Aileron_droit</object-name>
<property>surface-positions/aileron-pos-norm</property>
<factor>15</factor>
<axis>
<x1-m>1.96446</x1-m>
<y1-m>5.5593</y1-m>
<z1-m>-0.316793</z1-m>
<x2-m>.5275595</x2-m>
<y2-m>2.95071</y2-m>
<z2-m>-.4854355</z2-m>
</axis>
</animation>
<!-- Gouvernes de profondeur -->
<animation>
<type>rotate</type>
<object-name>Gouverne_de_profondeur_gauche</object-name>
<property>surface-positions/elevator-pos-norm</property>
<factor>-12</factor>
<axis>
<x1-m>4.49514</x1-m>
<y1-m>-.1347871</y1-m>
<z1-m>.4067264</z1-m>
<x2-m>5.45951</x2-m>
<y2-m>-1.86052</y2-m>
<z2-m>.7582652</z2-m>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>Gouverne_de_profondeur_droite</object-name>
<property>surface-positions/elevator-pos-norm</property>
<factor>12</factor>
<axis>
<x1-m>4.49514</x1-m>
<y1-m>.1347871</y1-m>
<z1-m>.4067264</z1-m>
<x2-m>5.45951</x2-m>
<y2-m>1.86052</y2-m>
<z2-m>.7582652</z2-m>
</axis>
</animation>
<!-- Volets -->
<animation>
<type>rotate</type>
<object-name>Volet_gauche</object-name>
<property>/surface-positions/flap-pos-norm</property>
<factor>50</factor>
<axis>
<x1-m>.6029514</x1-m>
<y1-m>-2.91338</y1-m>
<z1-m>-.5674639</z1-m>
<x2-m>-.4054802</x2-m>
<y2-m>-.8770864</y2-m>
<z2-m>-.7250809</z2-m>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>Volet_droit</object-name>
<property>/surface-positions/flap-pos-norm</property>
<factor>-50</factor>
<axis>
<x1-m>.6029514</x1-m>
<y1-m>2.91338</y1-m>
<z1-m>-.5674639</z1-m>
<x2-m>-.4054802</x2-m>
<y2-m>.8770864</y2-m>
<z2-m>-.7250809</z2-m>
</axis>
</animation>
<!-- Aerofreins -->
<animation>
<type>rotate</type>
<object-name>Aerofrein_gauche</object-name>
<property>surface-positions/speedbrake-pos-norm</property>
<factor>50</factor>
<axis>
<x1-m>1.58125</x1-m>
<y1-m>-0.6688503</y1-m>
<z1-m>-0.0782728</z1-m>
<x2-m>1.58125</x2-m>
<y2-m>-0.5142884</y2-m>
<z2-m>-0.5307977</z2-m>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>Aerofrein_droit</object-name>
<property>surface-positions/speedbrake-pos-norm</property>
<factor>-50</factor>
<axis>
<x1-m>1.58125</x1-m>
<y1-m>0.6688503</y1-m>
<z1-m>-0.0782728</z1-m>
<x2-m>1.58125</x2-m>
<y2-m>0.5142884</y2-m>
<z2-m>-0.5307977</z2-m>
</axis>
</animation>
<!-- Becs -->
<animation>
<type>translate</type>
<object-name>Bec_gauche</object-name>
<object-name>Bec_droit</object-name>
<property>surface-positions/slat-pos-norm</property>
<interpolation>
<entry><ind>0.0</ind><dep>0</dep></entry>
<entry><ind>1.00</ind><dep>0.1</dep></entry>
</interpolation>
<axis>
<x>-0.3</x>
<y>0.0</y>
<z>-0.05</z>
</axis>
</animation>
<!-- Ouverture verriere -->
<animation>
<type>translate</type>
<object-name>Verriere</object-name>
<object-name>Bulle</object-name>
<property>controls/canopy/position-norm</property>
<factor>0.6</factor>
<axis>
<x>1</x>
<y>0</y>
<z>0.05</z>
</axis>
</animation>
<!-- Ouverture trappe_escalier_gauche -->
<animation>
<type>rotate</type>
<object-name>Trappe_munitions_gauche</object-name>
<property>controls/canopy/position-norm</property>
<interpolation>
<entry><ind>0.0</ind><dep>0</dep></entry>
<entry><ind>1.00</ind><dep>90</dep></entry>
</interpolation>
<axis>
<x1-m>-3.51224</x1-m>
<y1-m>-.3355768</y1-m>
<z1-m>-.7975999</z1-m>
<x2-m>-2.97084</x2-m>
<y2-m>-.3355768</y2-m>
<z2-m>-0.8064884</z2-m>
</axis>
</animation>
<!-- Ouverture trappe_escalier_droite -->
<animation>
<type>rotate</type>
<object-name>Trappe_munitions_droite</object-name>
<property>controls/canopy/position-norm</property>
<interpolation>
<entry><ind>0.0</ind><dep>0</dep></entry>
<entry><ind>1.00</ind><dep>-90</dep></entry>
</interpolation>
<axis>
<x1-m>-3.51224</x1-m>
<y1-m>.3355768</y1-m>
<z1-m>-.7975999</z1-m>
<x2-m>-2.97084</x2-m>
<y2-m>.3355768</y2-m>
<z2-m>-0.8064884</z2-m>
</axis>
</animation>
<model>
<path>Aircraft/F-86/Models/loads.xml</path>
<nopreview/>
</model>
<model>
<path>Aircraft/F-86/Models/Effects/contrail.xml</path>
<name>contrail</name>
<offsets>
<x-m>10.4</x-m>
<y-m>0.0</y-m>
<z-m>-0.13</z-m>
</offsets>
</model>
<model>
<path>Aircraft/F-86/Models/Effects/smoketrail.xml</path>
<name>smoketrail</name>
<offsets>
<x-m>10.4</x-m>
<y-m>0.0</y-m>
<z-m>-0.13</z-m>
</offsets>
</model>
<!-- Wingtiptrails -->
<model>
<path>Aircraft/F-86/Models/Effects/tiptrail.xml</path>
<name>tiptrail.R</name>
<offsets>
<x-m>8.2</x-m>
<y-m>5.40414</y-m>
<z-m>-0.60772</z-m>
</offsets>
</model>
<model>
<path>Aircraft/F-86/Models/Effects/tiptrail.xml</path>
<name>tiptrail.L</name>
<offsets>
<x-m>8.2</x-m>
<y-m>-5.40414</y-m>
<z-m>-0.60772</z-m>
</offsets>
</model>
<model>
<path>Aircraft/F-86/Models/Human/fighterpilot50.xml</path>
<name>pilot</name>
<offsets>
<x-m>2.68</x-m>
<y-m>0.0</y-m>
<z-m>-0.86</z-m>
</offsets>
</model>
<!-- Failure Effects -->
<model>
<path>Aircraft/F-86/Models/Effects/fire.xml</path>
<name>fire</name>
<offsets>
<x-m>4.2</x-m>
<y-m>0</y-m>
<z-m>-0.3</z-m>
</offsets>
</model>
<animation>
<type>select</type>
<object-name>fire</object-name>
<condition>
<or>
<equals>
<property>sim/failure-manager/fail-type</property>
<value>1</value>
</equals>
<equals>
<property>sim/failure-manager/fail-type</property>
<value>3</value>
</equals>
</or>
</condition>
</animation>
<model>
<path>Aircraft/F-86/Models/Effects/firesmoke.xml</path>
<name>firesmoke</name>
<offsets>
<x-m>9.2</x-m>
<y-m>0</y-m>
<z-m>-0.13</z-m>
</offsets>
</model>
<animation>
<type>select</type>
<object-name>firesmoke</object-name>
<condition>
<or>
<equals>
<property>sim/failure-manager/fail-type</property>
<value>2</value>
</equals>
<equals>
<property>sim/failure-manager/fail-type</property>
<value>3</value>
</equals>
</or>
</condition>
</animation>
</PropertyList>
Dernière édition par G-LUBS le Ven 10 Mar 2017 - 13:13, édité 1 fois
G-LUBS- Expert sur cerfs-volants
- Messages : 72
Date d'inscription : 22/09/2016
Re: Mais, que se passe-t-il ?
Bonsoir G-LUBS, bonsoir à tous,
Pour que je puisse y jeter un coup d’œil, il faudrait que tu "upload" ton avion (en .zip) chez un hébergeur et que tu me mettes un lien.
Pour que je puisse y jeter un coup d’œil, il faudrait que tu "upload" ton avion (en .zip) chez un hébergeur et que tu me mettes un lien.
clm76- Le baron rouge
- Messages : 461
Date d'inscription : 27/10/2014
Age : 75
Localisation : Normandie
Re: Mais, que se passe-t-il ?
Bonjour à nos fidèles lecteurs,
En fait, ce .xml, pillé sans vergogne, ne respecte pas l'ordre des animations comme expliqué dans le how to de David Megginson : le "spin" des roues principales est devant les "rotate" les concernant alors que le "spin' de la roulette de nez est lui correctement positionné ! Les spécialistes auront rectifié d'eux-mêmes !
Petite astuce trouvée au débuggage : en lisant les .xml sous Firefox celui-ci détecte les erreurs d'écriture !
En fait, ce .xml, pillé sans vergogne, ne respecte pas l'ordre des animations comme expliqué dans le how to de David Megginson : le "spin" des roues principales est devant les "rotate" les concernant alors que le "spin' de la roulette de nez est lui correctement positionné ! Les spécialistes auront rectifié d'eux-mêmes !
Petite astuce trouvée au débuggage : en lisant les .xml sous Firefox celui-ci détecte les erreurs d'écriture !
G-LUBS- Expert sur cerfs-volants
- Messages : 72
Date d'inscription : 22/09/2016
Re: Mais, que se passe-t-il ?
Intéressant en effet. Merci pour l'info.G-LUBS a écrit:
Petite astuce trouvée au débuggage : en lisant les .xml sous Firefox celui-ci détecte les erreurs d'écriture !
clm76- Le baron rouge
- Messages : 461
Date d'inscription : 27/10/2014
Age : 75
Localisation : Normandie
Sujets similaires
» C'est pas passé loin...
» Ou est vous passé?
» Je suis timide mais je me soigne.
» Mais qu'est-ce ?
» BON ANNIVERSAIRE FLY , mais où es-tu ? :-)
» Ou est vous passé?
» Je suis timide mais je me soigne.
» Mais qu'est-ce ?
» BON ANNIVERSAIRE FLY , mais où es-tu ? :-)
Page 1 sur 1
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum
|
|