On Tue, Jan 01, 2008 at 02:06:02PM -0800, Syd&Sandy wrote:
> On Tue, 01 Jan 2008 14:20:17 -0700
> Ron Jensen <[EMAIL PROTECTED]> wrote:
> 
> > On Sun, 2007-12-30 at 17:32 +0100, alexis bory wrote:
> > > alexis bory wrote:
> > 
> > 
> > > When sliding the texture I haven't the expected result.
> > > ie: for a 10 figures (from 0 to 9) texture strip, when I would expect 
> > > number 0,
> > > I get number 1. This is probably due to the <offset> not being taken in 
> > > account
> > > anymore.
> > > 
> > > Hope you'll can find what's wrong about that,

That's too deep in the internals for my understanding to be sure of
anything. That said, it looks to me as the code would calculate
something along value=property*factor+offset, which would match my
expectation and some of my construeing the model-howto. Why the A-10
fuel drums use offsets of powers of 10 I'm unsure about; perhaps that
was needed previously, but it looks wrong in the first place, given the
above mentioned expectation. So when replacing the offsets with -0.1,
(and the latest cvs, not my hack) the fuel gauge seems to work again.
(Please see attached patch)

> > As Alexis says, the result is no longer correct from the textranslate,
> > see the TACAN indicator in the A10 for example...  I would try to offer
> > suggestions, but since the "Make use of the expression stuff" change to
> > scene/model/animation.cxx I haven't a clue about what is going on
> > anymore.

I didn't look into that, but perhaps the the same as said above applies
here too.

> 
> it works for me again , except <factor> seems to be ignored , but I can work 
> around that ...

I can't reproduce that, i.e. since the latest cvs (meaning the commit by
frohlich of Dec 31 15:48:02 2007 UTC) messing around with factors in 
Aircraft/b1900d/Instruments/altset.xml (please forgive my again ripping
her apart *g*) did work as expected.

Though when playing around to come up with my previous post, I had
somehow the impression, that depending on different combinations of 
configuration properties some of them "tended" to get ignored. That lead
me to an inconclusive search in that "expression" stuff. I still entertain
a vague suspicion, that perhaps the animation_value and value
business (or the simplifying) as it existed before the latest cvs might
have been erroneous, although I could not isolate anything specific.
Someone more in the know could perhaps keep an eye on that.

regards
K. Hoercher
--- Models/A-10-fuel-gauges.xml 2008-01-02 12:13:55.000000000 +0100
+++ Models/A-10-fuel-gauges.xml.hack    2008-01-02 12:17:16.000000000 +0100
@@ -86,7 +86,7 @@
   <object-name>drum-1</object-name>
   <property>sim/model/A-10/consumables/fuel/fuel-dsp-drum</property>
   <factor>0.1</factor>
-  <offset>-1</offset>
+  <offset>-0.1</offset>
   <center>
    <x-m>0</x-m>
    <y-m>0</y-m>
@@ -105,7 +105,7 @@
   <object-name>drum-2</object-name>
   <property>sim/model/A-10/consumables/fuel/fuel-dsp-drum</property>
   <factor>0.01</factor>
-  <offset>-10</offset>
+  <offset>-0.1</offset>
   <step>10</step>
   <scroll>0.5</scroll>
   <center>
@@ -126,7 +126,7 @@
   <object-name>drum-3</object-name>
   <property>sim/model/A-10/consumables/fuel/fuel-dsp-drum</property>
   <factor>0.001</factor>
-  <offset>-100</offset>
+  <offset>-0.1</offset>
   <step>100</step>
   <scroll>0.5</scroll>
   <center>
@@ -146,7 +146,7 @@
   <object-name>drum-4</object-name>
   <property>sim/model/A-10/consumables/fuel/fuel-dsp-drum</property>
   <factor>0.0001</factor>
-  <offset>-1000</offset>
+  <offset>-0.1</offset>
   <step>1000</step>
   <scroll>0.5</scroll>
   <center>
@@ -167,7 +167,7 @@
   <object-name>drum-5</object-name>
   <property>sim/model/A-10/consumables/fuel/fuel-dsp-drum</property>
   <factor>0.00001</factor>
-  <offset>-10000</offset>
+  <offset>-0.1</offset>
   <step>10000</step>
   <scroll>0.5</scroll>
   <center>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to