Board index FlightGear Development Aircraft

Spin animation problem..

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

Re: Spin animation problem..

Postby jentron » Fri Jul 04, 2008 5:31 pm

Code: Select all
 <animation>
  <type>spin</type>
  <object-name>LeftWheel</object-name>
  <condition>
     <property>gear/gear[1]/wow</property>
  </condition>
  <property>velocities/groundspeed-kt</property>
  <factor>12.3</factor> <!-- Wheel circumference 2.513 m -->
  <center>
   <x-m>-0.046786</x-m>
   <y-m>-1.07103</y-m>
   <z-m>-0.567522</z-m>
  </center>
  <axis>
   <x> 0.0</x>
   <y>-1.0</y>
   <z> 0.0</z>
  </axis>
  </animation>
 


This snippet is from the ercoupe model pab and I are developing. It spins with JSBSim in CVS flightgear... The whole model is here:
http://gitorious.org/projects/ron-s-hanger it is very much a work in progress.

Ron
Aircraft: F-4E, Cessna 182RG, Fi-156 Storch, Diamond DA20 Katana and Eclipse, Ercoupe, LZ-129, Gossamer Albatross
Airports: CYKF, CNC4, KHIF, 42U, KOXB, 4MD1
jentron
 
Posts: 453
Joined: Thu Jul 26, 2007 3:41 am
Version: custom
OS: Linux

Re: Spin animation problem..

Postby bisutti » Fri Jul 04, 2008 6:06 pm

It spins with JSBSim in CVS flightgear.


Do you mean OSG? because I put that property but It doesn´t work.. only with the nose gear.
FlightGear Iberoamerican Comunity http://www.vivefg.org/
User avatar
bisutti
 
Posts: 559
Joined: Sat Feb 09, 2008 2:09 am
Location: Venezuela, SVBC
Callsign: YV-256T
Version: 2

Re: Spin animation problem..

Postby jentron » Fri Jul 04, 2008 7:08 pm

Yes, I mean OSG...

Pull a copy of the ercoupe: http://gitorious.org/projects/ron-s-han ... c19.tar.gz
And see if it works correctly for you.

Are your modifications available somewhere?

Ron
Aircraft: F-4E, Cessna 182RG, Fi-156 Storch, Diamond DA20 Katana and Eclipse, Ercoupe, LZ-129, Gossamer Albatross
Airports: CYKF, CNC4, KHIF, 42U, KOXB, 4MD1
jentron
 
Posts: 453
Joined: Thu Jul 26, 2007 3:41 am
Version: custom
OS: Linux

Re: Spin animation problem..

Postby bisutti » Fri Jul 04, 2008 8:48 pm

Well.. your ercoupe works fine (I mean the wheels) but I put the same property in my plane and it doesn´t work.. well it works fine with the nose gear only, but with the main gears is not the same case.. It is strange, because I put the seneca II property and it doesn´t work either.. maybe my plane is broke or something like that XD

Are your modifications available somewhere?


Wich modifications?
FlightGear Iberoamerican Comunity http://www.vivefg.org/
User avatar
bisutti
 
Posts: 559
Joined: Sat Feb 09, 2008 2:09 am
Location: Venezuela, SVBC
Callsign: YV-256T
Version: 2

Re: Spin animation problem..

Postby jentron » Sat Jul 05, 2008 3:16 am

bisutti wrote:
Are your modifications available somewhere?


Which modifications?


The ones with the spin animations, so I can take a look at the entire problem and perhaps suggest a solution...
Aircraft: F-4E, Cessna 182RG, Fi-156 Storch, Diamond DA20 Katana and Eclipse, Ercoupe, LZ-129, Gossamer Albatross
Airports: CYKF, CNC4, KHIF, 42U, KOXB, 4MD1
jentron
 
Posts: 453
Joined: Thu Jul 26, 2007 3:41 am
Version: custom
OS: Linux

Re: Spin animation problem..

Postby bisutti » Sat Jul 05, 2008 9:45 pm

FlightGear Iberoamerican Comunity http://www.vivefg.org/
User avatar
bisutti
 
Posts: 559
Joined: Sat Feb 09, 2008 2:09 am
Location: Venezuela, SVBC
Callsign: YV-256T
Version: 2

Re: Spin animation problem..

Postby jentron » Sun Jul 06, 2008 12:50 am

Hmm,

All gears wheels spin here. The mains do spin at a different rate from the nose gear, but all spin.

Spin is expressed in revolutions per minute, to convert Knots to meters/minute we multiply by 30.867.
To convert meters/minute to tire revolutions, divide 30.867 by tire circumference.

mglhtyrelh is approximately 0.940 meters in diameter or 2.953 meters in circumference. Factor is 10.453
tyreln is approximately 0.776 meters in diameter or 2.438 meters in circumference. Factor is 12.661
Aircraft: F-4E, Cessna 182RG, Fi-156 Storch, Diamond DA20 Katana and Eclipse, Ercoupe, LZ-129, Gossamer Albatross
Airports: CYKF, CNC4, KHIF, 42U, KOXB, 4MD1
jentron
 
Posts: 453
Joined: Thu Jul 26, 2007 3:41 am
Version: custom
OS: Linux

Re: Spin animation problem..

Postby bisutti » Sun Jul 06, 2008 12:55 am

So.. what does it mean?
FlightGear Iberoamerican Comunity http://www.vivefg.org/
User avatar
bisutti
 
Posts: 559
Joined: Sat Feb 09, 2008 2:09 am
Location: Venezuela, SVBC
Callsign: YV-256T
Version: 2

Re: Spin animation problem..

Postby jentron » Sun Jul 06, 2008 1:52 am

It means you should change the <factor>s in your spin anims as follows:

Code: Select all
 <animation>
  <type>spin</type>
  <object-name>tyreln</object-name>
  <object-name>tyrern</object-name>
  <condition>
  <property>gear/gear/wow</property>
  </condition>
  <property>velocities/groundspeed-kt</property>
  <factor> 12.661</factor>


And

Code: Select all
 <animation>
  <type>spin</type>
  <object-name>mgrhtyrelh</object-name>
  <object-name>mgrhtyrerh</object-name>
  <condition>
  <property>gear/gear[1]/wow</property>
  </condition>
  <property>velocities/groundspeed-kt</property>
  <factor>10.453</factor>
Aircraft: F-4E, Cessna 182RG, Fi-156 Storch, Diamond DA20 Katana and Eclipse, Ercoupe, LZ-129, Gossamer Albatross
Airports: CYKF, CNC4, KHIF, 42U, KOXB, 4MD1
jentron
 
Posts: 453
Joined: Thu Jul 26, 2007 3:41 am
Version: custom
OS: Linux

Re: Spin animation problem..

Postby bisutti » Sun Jul 06, 2008 2:25 am

ahhhggg!! Is the same problem... the nose gear is the only! the main gears do not work.. :cry: :cry:
FlightGear Iberoamerican Comunity http://www.vivefg.org/
User avatar
bisutti
 
Posts: 559
Joined: Sat Feb 09, 2008 2:09 am
Location: Venezuela, SVBC
Callsign: YV-256T
Version: 2

Previous

Return to Aircraft

Who is online

Users browsing this forum: rooman and 20 guests