Re: [Flightgear-devel] possible bug in oursun.cxx

2009-08-21 Thread Erik Hofman


Torsten Dreyer wrote:
 Hi,
 
 There are some possible floating point exceptions in oursun.cxx:
 in SGSun::update(double,double) there is
 sun_exp2_punch_through = 2.0/log(visibility);
 
 visibility is assigned the new_visibility _before_ new_visibility is clamped 
 to 100 % 45000. Because update is called by SGSun::build with a 
 new_visibility of 1, log(1) equals zero which results in division by zero.
 
 And further down, the aerosol factor fails, if visibility was clamped to a 
 minimum of 100, because this
 aerosol_factor = 80.5 / log( visibility / 100 );
 will be 80.5 / log ( 100/100 ) = 80.5 / log(1) = 80.5 / 0

Good catch! I should have been using new_visibility throughout the code 
since that's the one that gets clamped. Thanks for the heads up.

Erik

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] [DRAFT] generic input devices and hotplug support

2009-08-21 Thread Tatsuhiro Nishioka
Hi,

This indeed is a good idea.
I took a look at the code, and I believe I can implement the Mac  
portion of the new input event model using HID Manager.

I'll post the patch when I finish implementing it.

-
Tatsuhiro Nishioka

On 2009/08/05, at 5:37, Torsten Dreyer tors...@t3r.de wrote:

 I Just found out that my notebook's lid switch is an input device:

 I: Bus=0019 Vendor= Product=0005 Version=
 N: Name=Lid Switch
 P: Phys=PNP0C0D/button/input0
 S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input5
 U: Uniq=
 H: Handlers=event5
 B: EV=21
 B: SW=1

 So - FlightGear now pauses when I close my notebook's lid. This  
 could be very
 useful when running FlightGear at work and the boss suddenly shows  
 up on a
 short final...

 --- 
 --- 
 --- 
 -
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008  
 30-Day
 trial. Simplify your report design, integration and deployment - and  
 focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] [DRAFT] generic input devices and hotplug support

2009-08-21 Thread Torsten Dreyer
 Hi,

 This indeed is a good idea.
 I took a look at the code, and I believe I can implement the Mac
 portion of the new input event model using HID Manager.

 I'll post the patch when I finish implementing it.

 -
 Tatsuhiro Nishioka
Great! Looking forward to receiving your patch.

Torsten

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Will texture animation be restored for the next release?

2009-08-21 Thread Greg Hawkes
Hi all,

I recently asked the FlightGear-Users list about FlightGear's texture 
animation feature. There is a note on the Wiki page 
(http://wiki.flightgear.org/index.php/Howto:_Illuminate_faces) that says 
that texture animation will not work on any version newer than v1.0, and 
lists an alternative technique. However, using that alternative will 
require me to redevelop all of the models that I having been working on 
(grr!). Frederic Bouvier mentioned that the feature would be restored in 
the next release version.

Can someone on the developer's list please confirm whether texture 
animation will be present for the next FlightGear release?

I understand that FlightGear 1.9.n will be included in the Ubuntu 9.10  
release, Karmic Koala. Can anyone confirm whether the texture 
animation will be included in that release?

Many thanks,
Greg


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Progress report on the infamous error in TriangleIntersect NAN Problem

2009-08-21 Thread Torsten Dreyer
I have _probably_ found at least one reason for this bug.

I was able to constantly create a FPE when running fgfs --enable-fpe 
and /sim/traffic-manager/enabled=true
I was able to locate the offending code in FGAISchedule::update when the new 
position of some AI aircraft was calculated by multiplying the start position 
with a rotation matrix.

When computing the geodetic position from cartesian coordinates in 
  current = SGGeod::fromCart(newPos);
it happened, that within SGGeodesy::SGCartToGeod() the value for 's'
was _very_ close to zero and slightly negative causing sqrt(s*(2+s)) fail 
which is ony defined for s greater or equals zero or less than or equals -2.

The workaround clamps 's' to values greater than zero. This is probably 
mathematically incorrect but should keep us running.

Maybe someone who fully understands the math in this method can explain, 
if 's' ever can legally go negative or if this is a rounding error.

Greetings, Torsten


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] [DRAFT] generic input devices and hotplug support

2009-08-21 Thread James Turner

On 21 Aug 2009, at 10:55, Tatsuhiro Nishioka wrote:

 I took a look at the code, and I believe I can implement the Mac
 portion of the new input event model using HID Manager.

 I'll post the patch when I finish implementing it.

I was 'responsible' (more like 'guilty') for some of the current PLIB- 
js HID code, mostly hacked up by reading the SDL sources. I doubt I  
have anything useful to add beyond what you already know (it's a long  
time since I touched that code, I hope it's had some bugfixes and  
maintenance since), but feel free to get in touch if you want a second  
opinion about anything.

I recently updated my tree to CVS head, so I was looking at the new  
input code wondering if 'd need to write the HID stuff myself - thanks  
for volunteering!

Regards,
James

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Will texture animation be restored for the next release?

2009-08-21 Thread Frederic Bouvier

- Greg Hawkes a écrit :

 Hi all,
 
 I recently asked the FlightGear-Users list about FlightGear's texture
 
 animation feature. There is a note on the Wiki page 
 (http://wiki.flightgear.org/index.php/Howto:_Illuminate_faces) that
 says 
 that texture animation will not work on any version newer than v1.0,
 and 
 lists an alternative technique. However, using that alternative will 
 require me to redevelop all of the models that I having been working
 on 
 (grr!). Frederic Bouvier mentioned that the feature would be restored
 in 
 the next release version.
 
 Can someone on the developer's list please confirm whether texture 
 animation will be present for the next FlightGear release?
 
 I understand that FlightGear 1.9.n will be included in the Ubuntu 9.10
  
 release, Karmic Koala. Can anyone confirm whether the texture 
 animation will be included in that release?

Please try yourself the CVS version if you don't trust me

-Fred

-- 
Frédéric Bouvier
http://my.fotolia.com/frfoto/  Photo gallery - album photo
http://fgsd.sourceforge.net/   FlightGear Scenery Designer


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Now only 2 errors with CVS FlightGear - can't find fltkd.lib zlibd.lib

2009-08-21 Thread Randall Green
Things are better now, I only get 2 file not found errors:

1) fltkd.lib - I compile fltk with MSVC, I get a fltk.lib but no fltkd.lib.
I checked with the site: http://geoffmclane.com/fg/fgfs-048.htm. 
Geoff apparently got it. What do I have to do to get MSVC to produce
library fltkd.lib?

2) zlibd.lib - I compile zlib-1.2.3 with MSVC and I get a zlib1d.lib
but no zlibd.lib.

Thanks,
Randy Green


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Will texture animation be restored for the next release?

2009-08-21 Thread syd adams
Which texture animation  ? textranslate ? texrotate ?
I dont see anything broken in that regard here , and all I ever use is cvs
...
You pointed to the illumination article , so I'm guessing you mean material
animation ?
Which has been working fine for me for quite a long time , so this post is a
bit puzzling .
The only thing that comes to mind is that the global no longer works , you
have to name each object to be affected. That is , IF your talking about
material and not texture animation .
Or I might just not have a clue about what the problem is :)
Cheers
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Now only 2 errors with CVS FlightGear - can't find fltkd.lib zlibd.lib

2009-08-21 Thread Randall Green
I have solved those 2 file not found errors.

fltkd.lib already existed and I had to change the Configuration Manager
to DEBUG to get zlibd.lib.

Randy


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Compiling CVS FlightGear - file not found compiling terrasync - svn_auth.h

2009-08-21 Thread Randall Green

I'm getting one error compiling terrasync with FlightGear - file not found 
svn_auth.h.

Anybody know what is missing?

Thanks,
Randy Green

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Will texture animation be restored for the next release?

2009-08-21 Thread Gijs de Rooy

Hi,

 

I experience the same problem for quite a while. As of v1.9 setting 
nighttextures (same method as 

in the Paris scenery) does not work (anymore).The animations of this method 
actually exists of two:

 

1. Animation setting the texture to Texture_light.png and emmission to 1 1 1 
when it's dark outside.

2. Animation setting the texture back to (original) Texture.png and emmission 
to 0 0 0 when sun 

comes up.

 

This used to work fine. But right now the emmission animation doesn't work at 
all and the texture does

not change.


The here explained and shown method is what we're talking about. You can see 
examples of it being

used in the Paris scenery.

 

Please check if it really works on your systems. I am sure that I've updated 
CVS and use the latest

binaries (multiple times over the past year), so that cannot be the problem...

 


Regards,
Gijs

_
RU Live de place to be voor Messengerfans
http://www.rulive.nl/--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Compiling CVS FlightGear - file not found

2009-08-21 Thread Martin Spott
Randall Green wrote:

 I'm getting one error compiling terrasync with FlightGear - file not found 
 svn_auth.h.
 
 Anybody know what is missing?

Subversion - libraries and, obviously, headers.

Cheers,
Martin.
-- 
 Unix _IS_ user friendly - it's just selective about who its friends are !
--

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Chasing warnings...

2009-08-21 Thread Torsten Dreyer
While iterating through the source files, trying to eliminate the warnings, I 
just found this precious line of code (some more of them in the same file)

 *((float*)buf[length]) = sg_bswap_32(*(uint32_t*)val);

The beauty of pointers - poor Java, C# et al developers. You will never see 
something alike ;-)

Torsten

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Chasing warnings...

2009-08-21 Thread Curtis Olson
Yeah, but just try byte swapping in visual basic ... it can be done!  Thanks
for the warning clean up pass, it's very much appreciated!

Curt.


On Fri, Aug 21, 2009 at 4:45 PM, Torsten Dreyer wrote:

 While iterating through the source files, trying to eliminate the warnings,
 I
 just found this precious line of code (some more of them in the same file)

  *((float*)buf[length]) = sg_bswap_32(*(uint32_t*)val);

 The beauty of pointers - poor Java, C# et al developers. You will never see
 something alike ;-)

 Torsten


 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus
 on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel




-- 
Curtis Olson: http://baron.flightgear.org/~curt/
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Will texture animation be restored for the next release?

2009-08-21 Thread Frederic Bouvier
http://frbouvi.free.fr/flightsim/fgfs-paris-cvs-20090821.png

-Fred

- Gijs de Rooy a écrit :

 Hi,
 
 I experience the same problem for quite a while. As of v1.9 setting
 nighttextures (same method as
 in the Paris scenery) does not work (anymore).The animations of this
 method actually exists of two:
 
 1. Animation setting the texture to Texture_light.png and emmission to
 1 1 1 when it's dark outside.
 2. Animation setting the texture back to (original) Texture.png and
 emmission to 0 0 0 when sun
 comes up.
 
 This used to work fine. But right now the emmission animation doesn't
 work at all and the texture does
 not change.
 
 The here explained and shown method is what we're talking about. You
 can see examples of it being
 used in the Paris scenery.
 
 Please check if it really works on your systems. I am sure that I've
 updated CVS and use the latest
 binaries (multiple times over the past year), so that cannot be the
 problem...
 
 
 
 
 Regards,
 
 Gijs
 
 
 Lees je Het Net, Planet, Ziggo of XS4ALL-mail in Windows Live Hotmail
 
 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day 
 trial. Simplify your report design, integration and deployment - and
 focus on 
 what you do best, core application coding. Discover what's new with 
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel

-- 
Frédéric Bouvier
http://my.fotolia.com/frfoto/  Photo gallery - album photo
http://fgsd.sourceforge.net/   FlightGear Scenery Designer


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Will texture animation be restored for the next release?

2009-08-21 Thread Gene Buckle
On Fri, 21 Aug 2009, Frederic Bouvier wrote:

 http://frbouvi.free.fr/flightsim/fgfs-paris-cvs-20090821.png


Wow.

g.

-- 
Proud owner of F-15C 80-0007
http://www.f15sim.com - The only one of its kind.

ScarletDME - The red hot Data Management Environment
A Multi-Value database for the masses, not the classes.
http://www.scarletdme.org - Get it _today_!

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Will texture animation be restored for the next release?

2009-08-21 Thread Ron Jensen
On Fri, 2009-08-21 at 19:24 -0700, Gene Buckle wrote:
 On Fri, 21 Aug 2009, Frederic Bouvier wrote:
 
  http://frbouvi.free.fr/flightsim/fgfs-paris-cvs-20090821.png
 
 
 Wow.
 
 g.

My wow factor would go higher if the framerate display in the corner was
closer to 30.  But it still looks great.  :)

R.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel