Re: [Flightgear-devel] AI Models -what files?

2006-06-02 Thread dene maxwell
>From: Ron Jensen <[EMAIL PROTECTED]>
>On Sat, 2006-06-03 at 14:57 +1200, dene maxwell wrote:
> > I checked the Aircraft/Spitfire/spitfireIIa-set.xml and there were no
> > leading "/" on any of the other file references I could find.
>
>Erik didn't say file references, he said property references.
>
I couldn't see where he said either...I assumed file references...

> > I did find that by deleting the sections in the
> > Aircraft/Spitfire/Models/spitfire_model.xml that relate to making 
>certain
> > parts of the invisible when the view is "0"
> >
> > 
> > 
> >   select
> >   Hull
> >   Hull-Aft
> >   Stub-Wing-R
> >   Stub-Wing-L
> >   Flap-Inner-R
> >   Flap-Inner-L
> >   Flap-Outer-R
> >   Flap-Outer-L
> >   Cover-Lower-M
> >   Cover-Lower-F
> >   Cover-Lower-A
> >   Cover-Engine-Side-L
> >   Cover-Engine-Side-R
> >   UC-Main-L
> >   UC-Main-R
> >   
> > 
> >   
> > /sim/current-view/view-number
>
>
>This is a property reference.  If you are in your cockpit it will hide
>all parts of the Spitfire not visible from the cockpit.  Change this one
>line to read:
>   sim/current-view/view-number
>and the Spitfire should work properly. (Not tested, this is my read of
>Erik's post.)
>
> > 0
> >   
> > 
> >   
> > 
> >
> > that the "missing" parts of the aircraft re-appeared I suspect that
> > (atleast under 098a) a separate [aircraft]-model-AI.xml is needed for 
>some
> > of the aircraft that have these sort of conditional entries.
> >
> > ie something that caters for;
> >
> > gear-up/gear-down
> > flaps-up/flaps-down
> > tail-up/tail-down (for tail-draggers)
> > engine-running/engine-stopped
>
>If the property list in the AI model uses starts with a "/" then the AI
>model uses the main aircraft's property.  The main aircraft is rooted at
>"/"  If the property does not start with a "/" then the model will use a
>property under the AI tree...  It's late for me...  Does that make
>sense?

Ah...BING...the light comes on...but how are the properties for AI aircraft 
set...if I place an instance at 2000 ft elevation...how will the AI model 
know it should have the engine going? ( ie propeller disk instread of te 
stationary propeller?)


but yes, it makes sense .,.

:-D ene

_
Need more speed? Get Xtra Broadband @ 
http://jetstream.xtra.co.nz/chm/0,,202853-1000,00.html



___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] AI Models -what files?

2006-06-02 Thread Ron Jensen
On Sat, 2006-06-03 at 14:57 +1200, dene maxwell wrote:
> I checked the Aircraft/Spitfire/spitfireIIa-set.xml and there were no 
> leading "/" on any of the other file references I could find.

Erik didn't say file references, he said property references.

> I did find that by deleting the sections in the 
> Aircraft/Spitfire/Models/spitfire_model.xml that relate to making certain 
> parts of the invisible when the view is "0"
> 
> 
> 
>   select
>   Hull
>   Hull-Aft
>   Stub-Wing-R
>   Stub-Wing-L
>   Flap-Inner-R
>   Flap-Inner-L
>   Flap-Outer-R
>   Flap-Outer-L
>   Cover-Lower-M
>   Cover-Lower-F
>   Cover-Lower-A
>   Cover-Engine-Side-L
>   Cover-Engine-Side-R
>   UC-Main-L
>   UC-Main-R
>   
> 
>   
> /sim/current-view/view-number


This is a property reference.  If you are in your cockpit it will hide
all parts of the Spitfire not visible from the cockpit.  Change this one
line to read:
  sim/current-view/view-number
and the Spitfire should work properly. (Not tested, this is my read of
Erik's post.)

> 0
>   
> 
>   
> 
> 
> that the "missing" parts of the aircraft re-appeared I suspect that 
> (atleast under 098a) a separate [aircraft]-model-AI.xml is needed for some 
> of the aircraft that have these sort of conditional entries.
> 
> ie something that caters for;
> 
> gear-up/gear-down
> flaps-up/flaps-down
> tail-up/tail-down (for tail-draggers)
> engine-running/engine-stopped

If the property list in the AI model uses starts with a "/" then the AI
model uses the main aircraft's property.  The main aircraft is rooted at
"/"  If the property does not start with a "/" then the model will use a
property under the AI tree...  It's late for me...  Does that make
sense?

Ron




___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] AI Models -what files?

2006-06-02 Thread dene maxwell
> >
> >Detlef Faber wrote:
> >
> > >> when using aircraft models in AI scenarios...what is the best file to
> >use (
> > >> some like Aircraft/Spitfire/spitfireIIa.xml actually stop FG from
> >loading
> > >> (098a/win Me)
> >
> >Not necessarily, if the animations are properly references this
> >shouldn't happen. The main reason for this behavior is that all
> >properties are perpended with a slash '/', after removing the first
> >slash (making the properties relative) this behavior should go away.
> >
> >Erik
> >
>
>Just glancing through the files, the pattern seems to be that if the .ac
>file reference is not in the xml file pointed at for the AI-Model then 
>there
>will be problems. ie if the xml files are nested (as most are) and the .ac
>file is not in the root file but in a branch file.
>
>I will certainly check out the leading slashes though.. thanks for the
>suggestion.. will report back any further observations. It would be handy 
>to
>get this checked out in 09.10/cvs as if it is specific to 098a and doesn't
>occur in 09.10/cvs then its not strictly a "devel" topic and I'll implement
>a work-a-round for my own 098a.
>

I checked the Aircraft/Spitfire/spitfireIIa-set.xml and there were no 
leading "/" on any of the other file references I could find.

I did find that by deleting the sections in the 
Aircraft/Spitfire/Models/spitfire_model.xml that relate to making certain 
parts of the invisible when the view is "0"



  select
  Hull
  Hull-Aft
  Stub-Wing-R
  Stub-Wing-L
  Flap-Inner-R
  Flap-Inner-L
  Flap-Outer-R
  Flap-Outer-L
  Cover-Lower-M
  Cover-Lower-F
  Cover-Lower-A
  Cover-Engine-Side-L
  Cover-Engine-Side-R
  UC-Main-L
  UC-Main-R
  

  
/sim/current-view/view-number
0
  

  


that the "missing" parts of the aircraft re-appeared I suspect that 
(atleast under 098a) a separate [aircraft]-model-AI.xml is needed for some 
of the aircraft that have these sort of conditional entries.

ie something that caters for;

gear-up/gear-down
flaps-up/flaps-down
tail-up/tail-down (for tail-draggers)
engine-running/engine-stopped

possibily;

canopy-open/canopy-shut
etc

I hope this helps people that might want to be populating their fav airfield 
with static models. Thanks for the replies Detlef & Eric

Cheers
:-D ene

_
Need more speed? Get Xtra Broadband @ 
http://jetstream.xtra.co.nz/chm/0,,202853-1000,00.html



___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] AI Models -what files?

2006-06-02 Thread dene maxwell
>
>Detlef Faber wrote:
>
> >> when using aircraft models in AI scenarios...what is the best file to 
>use (
> >> some like Aircraft/Spitfire/spitfireIIa.xml actually stop FG from 
>loading
> >> (098a/win Me)
>
>Not necessarily, if the animations are properly references this
>shouldn't happen. The main reason for this behavior is that all
>properties are perpended with a slash '/', after removing the first
>slash (making the properties relative) this behavior should go away.
>
>Erik
>

Just glancing through the files, the pattern seems to be that if the .ac 
file reference is not in the xml file pointed at for the AI-Model then there 
will be problems. ie if the xml files are nested (as most are) and the .ac 
file is not in the root file but in a branch file.

I will certainly check out the leading slashes though.. thanks for the 
suggestion.. will report back any further observations. It would be handy to 
get this checked out in 09.10/cvs as if it is specific to 098a and doesn't 
occur in 09.10/cvs then its not strictly a "devel" topic and I'll implement 
a work-a-round for my own 098a.

Regards
:-D ene

_
Read the latest Hollywood gossip  @  http://xtramsn.co.nz/entertainment



___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] AI Models -what files?

2006-06-02 Thread Detlef Faber
Am Freitag, den 02.06.2006, 23:03 +1200 schrieb dene maxwell:
> Thanks Detlef, was the answer I was half expecting but was unsure how wise 
> it would be to proliferate xml files 'specially model specific like that... 
> I suppose if you include them in the distro and place them where they are 
> not going to cause problems {/Aircraft/(myAC)/Models} then they should be 
> ok I suppose this foile could also include an animation for 
> tail-draggers that puts the tail on the ground when "on-ground" and "ktas"< 
> say 50knts yeah?
> 
Haven't tried this yet, but it should be possible. Good Point though. I
will try this out.

Greetings

Detlef

http://www.sol2500.net/flightgear


> :-D ene
> 
> 
> >From: Detlef Faber <[EMAIL PROTECTED]>
> >Reply-To: FlightGear developers discussions 
> >
> >To: FlightGear developers discussions 
> >
> >Subject: Re: [Flightgear-devel] AI Models -what files?
> >Date: Fri, 02 Jun 2006 08:46:25 +0200
> >
> >Am Freitag, den 02.06.2006, 13:12 +1200 schrieb dene maxwell:
> > > Hi all,
> > > I'm trying to using various aicraft in an AI scenario... The J3 cub 
> >looks
> > > good model-wise with a small animation problem (more on that below), but 
> >the
> > > Spitfire looks terrible!!! I using
> > > Aircraft/Spitfire/Models/spitfire_model.xml but part of the fuselage and
> > > inboard wings are missing.
> > >
> > > when using aircraft models in AI scenarios...what is the best file to 
> >use (
> > > some like Aircraft/Spitfire/spitfireIIa.xml actually stop FG from 
> >loading
> > > (098a/win Me)
> > >
> > > The other problem is the propellers aren't turning (in either the J3 cub 
> >or
> > > spitfire) and I can't find the property (in the internal 
> >browser/property
> > > tree) that would turn the engines on and presumably start the prop 
> >turning.
> > >
> >The AI Models use the same properties your aircraft uses. If your gear
> >is out, the gear of the AI Aircraft is out too, and retracts if you
> >retract it.
> >
> >I helped myself by creating an extra "AI-Model"-xml file. Just a copy of
> >the original models xml file, but I commented out the 3d cockpit and
> >interiour models and set the properties for gear and prop to values that
> >are always matched (e.g. propdisk visible at rpm below 1).
> >
> >That's just a quick fix but I've not yet discovered how to make it
> >properly.
> >
> >Greetings
> >
> >Detlef
> >
> >http://www.sol2500.net/flightgear
> >
> >
> > > Regards
> > > Dene
> > >
> > > _
> > > Become a fitness fanatic @  http://xtramsn.co.nz/health
> > >
> > >
> > >
> > > ___
> > > Flightgear-devel mailing list
> > > Flightgear-devel@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/flightgear-devel
> >
> >
> >
> >___
> >Flightgear-devel mailing list
> >Flightgear-devel@lists.sourceforge.net
> >https://lists.sourceforge.net/lists/listinfo/flightgear-devel
> 
> _
> Need more speed? Get Xtra Broadband @ 
> http://jetstream.xtra.co.nz/chm/0,,202853-1000,00.html
> 
> 
> 
> ___
> Flightgear-devel mailing list
> Flightgear-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel



___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] AI Models -what files?

2006-06-02 Thread dene maxwell
Thanks Detlef, was the answer I was half expecting but was unsure how wise 
it would be to proliferate xml files 'specially model specific like that... 
I suppose if you include them in the distro and place them where they are 
not going to cause problems {/Aircraft/(myAC)/Models} then they should be 
ok I suppose this foile could also include an animation for 
tail-draggers that puts the tail on the ground when "on-ground" and "ktas"< 
say 50knts yeah?

:-D ene


>From: Detlef Faber <[EMAIL PROTECTED]>
>Reply-To: FlightGear developers discussions 
>
>To: FlightGear developers discussions 
>
>Subject: Re: [Flightgear-devel] AI Models -what files?
>Date: Fri, 02 Jun 2006 08:46:25 +0200
>
>Am Freitag, den 02.06.2006, 13:12 +1200 schrieb dene maxwell:
> > Hi all,
> > I'm trying to using various aicraft in an AI scenario... The J3 cub 
>looks
> > good model-wise with a small animation problem (more on that below), but 
>the
> > Spitfire looks terrible!!! I using
> > Aircraft/Spitfire/Models/spitfire_model.xml but part of the fuselage and
> > inboard wings are missing.
> >
> > when using aircraft models in AI scenarios...what is the best file to 
>use (
> > some like Aircraft/Spitfire/spitfireIIa.xml actually stop FG from 
>loading
> > (098a/win Me)
> >
> > The other problem is the propellers aren't turning (in either the J3 cub 
>or
> > spitfire) and I can't find the property (in the internal 
>browser/property
> > tree) that would turn the engines on and presumably start the prop 
>turning.
> >
>The AI Models use the same properties your aircraft uses. If your gear
>is out, the gear of the AI Aircraft is out too, and retracts if you
>retract it.
>
>I helped myself by creating an extra "AI-Model"-xml file. Just a copy of
>the original models xml file, but I commented out the 3d cockpit and
>interiour models and set the properties for gear and prop to values that
>are always matched (e.g. propdisk visible at rpm below 1).
>
>That's just a quick fix but I've not yet discovered how to make it
>properly.
>
>Greetings
>
>Detlef
>
>http://www.sol2500.net/flightgear
>
>
> > Regards
> > Dene
> >
> > _
> > Become a fitness fanatic @  http://xtramsn.co.nz/health
> >
> >
> >
> > ___
> > Flightgear-devel mailing list
> > Flightgear-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/flightgear-devel
>
>
>
>___
>Flightgear-devel mailing list
>Flightgear-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/flightgear-devel

_
Need more speed? Get Xtra Broadband @ 
http://jetstream.xtra.co.nz/chm/0,,202853-1000,00.html



___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] AI Models -what files?

2006-06-02 Thread Erik Hofman
Detlef Faber wrote:

>> when using aircraft models in AI scenarios...what is the best file to use ( 
>> some like Aircraft/Spitfire/spitfireIIa.xml actually stop FG from loading 
>> (098a/win Me)

Not necessarily, if the animations are properly references this 
shouldn't happen. The main reason for this behavior is that all 
properties are perpended with a slash '/', after removing the first 
slash (making the properties relative) this behavior should go away.

Erik

-- 
http://www.ehtw.info (Dutch)Future of Enschede Airport Twente
http://www.ehofman.com/fgfs FlightGear Flight Simulator


___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] AI Models -what files?

2006-06-01 Thread Detlef Faber
Am Freitag, den 02.06.2006, 13:12 +1200 schrieb dene maxwell:
> Hi all,
> I'm trying to using various aicraft in an AI scenario... The J3 cub looks 
> good model-wise with a small animation problem (more on that below), but the 
> Spitfire looks terrible!!! I using 
> Aircraft/Spitfire/Models/spitfire_model.xml but part of the fuselage and 
> inboard wings are missing.
> 
> when using aircraft models in AI scenarios...what is the best file to use ( 
> some like Aircraft/Spitfire/spitfireIIa.xml actually stop FG from loading 
> (098a/win Me)
> 
> The other problem is the propellers aren't turning (in either the J3 cub or 
> spitfire) and I can't find the property (in the internal browser/property 
> tree) that would turn the engines on and presumably start the prop turning.
> 
The AI Models use the same properties your aircraft uses. If your gear
is out, the gear of the AI Aircraft is out too, and retracts if you
retract it. 

I helped myself by creating an extra "AI-Model"-xml file. Just a copy of
the original models xml file, but I commented out the 3d cockpit and
interiour models and set the properties for gear and prop to values that
are always matched (e.g. propdisk visible at rpm below 1).

That's just a quick fix but I've not yet discovered how to make it
properly.

Greetings

Detlef

http://www.sol2500.net/flightgear


> Regards
> Dene
> 
> _
> Become a fitness fanatic @  http://xtramsn.co.nz/health
> 
> 
> 
> ___
> Flightgear-devel mailing list
> Flightgear-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel



___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] AI Models -what files?

2006-06-01 Thread dene maxwell
Hi all,
I'm trying to using various aicraft in an AI scenario... The J3 cub looks 
good model-wise with a small animation problem (more on that below), but the 
Spitfire looks terrible!!! I using 
Aircraft/Spitfire/Models/spitfire_model.xml but part of the fuselage and 
inboard wings are missing.

when using aircraft models in AI scenarios...what is the best file to use ( 
some like Aircraft/Spitfire/spitfireIIa.xml actually stop FG from loading 
(098a/win Me)

The other problem is the propellers aren't turning (in either the J3 cub or 
spitfire) and I can't find the property (in the internal browser/property 
tree) that would turn the engines on and presumably start the prop turning.

Regards
Dene

_
Become a fitness fanatic @  http://xtramsn.co.nz/health



___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel