Re: [Flightgear-devel] OSG fps

2006-11-26 Thread Vivian Meazza
Olaf Flebbe wrote

 
 now FlightGear OSG is running almost at the same speed (sometimes
 faster) than plib for me.
 FreeGlut was the culprit. Switching the the good old glut gives another
 10% FPS boost. And it fixes a bug: For me the c172p with freeglut is
 accellerating itself at the runway without using the throttle. With
 glut-3.7.6 it stays at the starting position.
 

Yes, a small gain ( 10%) here. The big improvement was down to Mathias'
recent changes. But most important is that with GLUT the bug in the start
for the Hurricane/Spitfire/Seafire has been fixed.

It remains the case, that while cockpit views are now comparable, or better
than plib, external views are still about 25% down, and usually less than
the cockpit view. My guess is that transparencies have a disproportionate
affect on frame rates.

Vivian 


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Bug in FGAIBase::~FGAIBase() (AIBase.cxx)

2006-11-26 Thread Melchior FRANZ
* Maik Justus -- Tuesday 14 November 2006 21:42:
 I found another bug. While exiting fg, I got a crash. The crashed 
 function is called by FGAIBase::~FGAIBase() line 71:
   fgSetString(/ai/models/model-removed, props-getPath());

Is it reproducible, and if so: how?

m.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Bug in FGAIBase::~FGAIBase() (AIBase.cxx)

2006-11-26 Thread Maik Justus
Hi,

if I start fg in the debugger I get this error message when leaving fg 
by choosing exit flightgear. I got this error quite often, but I am 
not sure if I got it all times. Starting on command line the crash is 
not visible (fg crashes and exits due to this crash without 
error-message, therefore it looks if everything would be ok).

Maik
 
Melchior FRANZ schrieb am 26.11.2006 12:16:
 * Maik Justus -- Tuesday 14 November 2006 21:42:
   
 I found another bug. While exiting fg, I got a crash. The crashed 
 function is called by FGAIBase::~FGAIBase() line 71:
   fgSetString(/ai/models/model-removed, props-getPath());
 

 Is it reproducible, and if so: how?

 m.

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel

   


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Bug in FGAIBase::~FGAIBase() (AIBase.cxx)

2006-11-26 Thread Maik Justus
Hi,
probably the bug is fixed by the patch from melchior (in cvs now).


Maik Justus schrieb am 26.11.2006 12:37:
 Melchior FRANZ schrieb am 26.11.2006 12:16:
   
 * Maik Justus -- Tuesday 14 November 2006 21:42:
   
 
 I found another bug. While exiting fg, I got a crash. The crashed 
 function is called by FGAIBase::~FGAIBase() line 71:
   fgSetString(/ai/models/model-removed, props-getPath());
 
   


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Bug in FGAIBase::~FGAIBase() (AIBase.cxx)

2006-11-26 Thread Maik Justus
Hi Melchior,

thanks for the explanation!
Maik
Melchior FRANZ schrieb am 26.11.2006 13:28:
 * Maik Justus -- Tuesday 21 November 2006 22:17:
   
 - Why is it necessary to set the path to /ai/models/model-removed ? 
 

 Most features aren't necessary, but there's a reason why they are
 there. That property is meant to attach listeners, so that Nasal
 scripts can get a hint whenever a model is added (/ai/models/model-added)
 or removed (/ai/models/model-removed). Something like that was
 requested by people who work(ed) on Nasal-based Radar implementations
 or the chat feature.

 m.
   


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Example for Realtime Radio / ATC

2006-11-26 Thread Martin Spott
Holger Wirtz wrote:

 If there is a chance I will try to do this (with much help of the developers
 because I don't know the program hooks where to put the code). Possible that
 there is also a way to create an ATC application (as a guest flyer which
 can parse the multi user protocol). In combination with realtime radio
 this should be a great improvement of the multi player functions.

I knew there was such a thing of an ATC console application but I never
managed to find the appropriate pointer. Now, just by accident, I found
an old entry in my bookmarks file which I'd like to share this with
you:

  http://airtraffic.sourceforge.net/

I guess it's ben unmaintained for several years now but maybe it's
still nice as a start.

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

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] OSG crashes and Reply: osg/plib fps

2006-11-26 Thread Mathias Fröhlich

Hi,

On Wednesday 22 November 2006 22:59, Georg Vollnhals wrote:
 good to know.

 I only made these reports as a thought it might be helpful for you, not
 because there are actual problems which might be solved immediately.

 Please give us a note when you would like us to report any possible bugs.
 This makes more sense to avoid not helpful noise on this list.
So that will not mean that you should not report.
I still read that and have a very local (a sheet of paper on my desk) todo 
list ... :)
But if I break something I usually try to respond very quick to that.
Currently this is not the case because of the given reason.

I prepare a huge change to the animations. I think that this will be the next 
checkpoint where I really need feedback from all. But I will announce that 
explicitly.

Greetings

Mathias


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Reorganization of AI related da ta in the base package (Was: Re: memory usa ge of AI-Models ( multiplayer particularly ))

2006-11-26 Thread Mathias Fröhlich
On Saturday 25 November 2006 11:57, Durk Talsma wrote:
 Okay, I didn't know that. I was assuming that the base package wasn't
 branched, since both FlightGear-plib and FlightGear-OSG basically use the
 same data. I does make sense though.

I branched that due to Freds request. But up to now there has nothing happened 
that will require that branch.
From that it is still safe to use the HEAD data directory for both versions.

Anyway, it would be good if changes to the data directory appear in both 
branches.

Greetings

 Mathias

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] OSG update question?

2006-11-26 Thread Mathias Fröhlich

Dave,

On Wednesday 22 November 2006 18:13, Dave Perry wrote:
 Should we be updating OSG source from CVS now or are the most recent
 updates still coming out in tar balls?
I still use the prepared tarball.

But people report that osg CVS works well.

Given Robert Osfield wants to release a next version in december - at least 
this is what I read on osg-users a while ago - I think I have enough todo 
where I do not yet really need the cvs version.
Said that, the cvs version has a nice shadow implementation that will be one 
of the first things I will make use of when osg-1.3 gets released ...
I believe that with osg-1.3 I will require that version. At the moment the 
minimum requirement is the tarball I put on Martins ftp server.

If it does not compile with CVS, tell me please.

So if somebody wants to play with the current CVS's features it might be worth 
a try, but I believe that I will stay on a stable version to not require a 
osg rebuild every new morning :)

   Greetings

Mathias

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] OSG update question?

2006-11-26 Thread Martin Spott
Mathias Fr?hlich wrote:
 On Wednesday 22 November 2006 18:13, Dave Perry wrote:

  Should we be updating OSG source from CVS now or are the most recent
  updates still coming out in tar balls?
 I still use the prepared tarball.
 
 But people report that osg CVS works well.

It does, but you still should expect to run into difficulties with the
build-system that's currently part of Producer-CVS. So if people don't
want to add to their own trouble then I'd recommend to stick with
Mathias' package,

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

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] OSG point lights

2006-11-26 Thread Tim Moore
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Here's an implementation of airport runway lighting, including VASI /
PAPI lights, using OSG light points. You can choose to use point sprites
or OpenGL points at runtime, and the enhanced runway lighting function
is supported. The relative intensities of the lights will probably have
to be tweaked.

Tim
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFFaiYyeDhWHdXrDRURAn+CAJ0Tf6nMRkoO9ZIVHCbPtW5TJN0h1gCgs+vr
C6tAnsaa7P2Flr2Ug9bcx+c=
=j9Tv
-END PGP SIGNATURE-
Index: simgear/scene/material/mat.cxx
===
RCS file: /var/cvs/SimGear-0.3/source/simgear/scene/material/mat.cxx,v
retrieving revision 1.33
diff -d -u -p -r1.33 mat.cxx
--- simgear/scene/material/mat.cxx	10 Nov 2006 05:30:37 -	1.33
+++ simgear/scene/material/mat.cxx	26 Nov 2006 23:35:41 -
@@ -218,7 +218,9 @@ SGMaterial::init ()
 specular[i] = (i  3) ? 0.0 : 1.0;
 diffuse[i]  = (i  3) ? 0.8 : 1.0;
 emission[i] = (i  3) ? 0.0 : 1.0;
+	lightPointColor[i] = 1.0f;
 }
+lightPointIntensity = 1.0f;
 }
 
 bool
Index: simgear/scene/material/mat.hxx
===
RCS file: /var/cvs/SimGear-0.3/source/simgear/scene/material/mat.hxx,v
retrieving revision 1.25
diff -d -u -p -r1.25 mat.hxx
--- simgear/scene/material/mat.hxx	29 Oct 2006 19:27:09 -	1.25
+++ simgear/scene/material/mat.hxx	26 Nov 2006 23:35:42 -
@@ -208,6 +208,26 @@ public:
*/
   SGMaterialGlyph * get_glyph (const string name) const;
 
+  /**
+   * Color and intensity for point lights.
+   */
+  inline void setLightPointColor(unsigned r, unsigned g, unsigned b)
+  {
+lightPointColor[0] = ((float) r) / 255.0f;
+lightPointColor[1] = ((float) g) / 255.0f;
+lightPointColor[2] = ((float) b) / 255.0f;
+lightPointColor[3] = 1.0f;
+  }
+
+  inline const SGVec4f getLightPointColor() const { return lightPointColor; }
+
+  inline void setLightPointIntensity(unsigned i)
+  {
+lightPointIntensity = ((float)i) / 255.0;
+  }
+
+  inline float getLightPointIntensity() const { return lightPointIntensity; }
+  
 protected:
 
 
@@ -274,6 +294,9 @@ private:
   SGVec4f ambient, diffuse, specular, emission;
   double shininess;
 
+  SGVec4f lightPointColor;
+  float lightPointIntensity;
+
   // the list of names for this material. May be empty.
   vectorstring _names;
 
Index: simgear/scene/material/matlib.cxx
===
RCS file: /var/cvs/SimGear-0.3/source/simgear/scene/material/matlib.cxx,v
retrieving revision 1.25
diff -d -u -p -r1.25 matlib.cxx
--- simgear/scene/material/matlib.cxx	10 Nov 2006 05:30:37 -	1.25
+++ simgear/scene/material/matlib.cxx	26 Nov 2006 23:35:42 -
@@ -214,91 +214,22 @@ bool SGMaterialLib::load( const string 
 }
 }
 
-osg::ref_ptrosg::StateSet lightStateSet = new osg::StateSet;
-{
-  lightStateSet-setRenderingHint(osg::StateSet::TRANSPARENT_BIN);
-  lightStateSet-setMode(GL_LIGHTING, osg::StateAttribute::OFF);
-//   lightStateSet-setMode(GL_DEPTH_TEST, osg::StateAttribute::ON);
-
-  lightStateSet-setMode(GL_BLEND, osg::StateAttribute::ON);
-
-  lightStateSet-setMode(GL_ALPHA_TEST, osg::StateAttribute::OFF);
-  lightStateSet-setAttribute(new osg::AlphaFunc(osg::AlphaFunc::GREATER, 0.01));
-  lightStateSet-setMode(GL_ALPHA_TEST, osg::StateAttribute::ON);
-
-  osg::CullFace* cullFace = new osg::CullFace;
-  cullFace-setMode(osg::CullFace::BACK);
-  lightStateSet-setAttributeAndModes(cullFace, osg::StateAttribute::ON);
-
-  osg::BlendFunc* blendFunc = new osg::BlendFunc;
-  blendFunc-setFunction(osg::BlendFunc::SRC_ALPHA, osg::BlendFunc::ONE_MINUS_SRC_ALPHA);
-  lightStateSet-setAttributeAndModes(blendFunc, osg::StateAttribute::ON);
-
-  osg::PolygonMode* polygonMode = new osg::PolygonMode;
-  polygonMode-setMode(osg::PolygonMode::FRONT, osg::PolygonMode::POINT);
-  lightStateSet-setAttribute(polygonMode);
-
-//   if (SGPointLightsUseSprites) {
-osg::PointSprite* pointSprite = new osg::PointSprite;
-lightStateSet-setTextureAttributeAndModes(0, pointSprite, osg::StateAttribute::ON);
-//   }
-
-//   if (SGPointLightsDistanceAttenuation) {
-osg::Point* point = new osg::Point;
-point-setMinSize(2);
-point-setSize(8);
-point-setDistanceAttenuation(osg::Vec3(1.0, 0.001, 0.01));
-lightStateSet-setAttribute(point);
-//   }
-
-  osg::PolygonOffset* polygonOffset = new osg::PolygonOffset;
-  polygonOffset-setFactor(-1);
-  polygonOffset-setUnits(-1);
-  lightStateSet-setAttributeAndModes(polygonOffset, osg::StateAttribute::ON);
-  
-  osg::TexGen* texGen = new osg::TexGen;
-  texGen-setMode(osg::TexGen::SPHERE_MAP);
-  

[Flightgear-devel] turn indicator

2006-11-26 Thread Josh Babcock
What value for the turn indicator property corresponds to a two minute
turn? I can't figure it out from the code, or google.

Josh

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] real-time data

2006-11-26 Thread Vikas N Kumar
Hi All
I need some help in collecting real-time data from FlightGear while
the aircraft is being flown. I will need it when I interface it with
hardware for instrument panels etc.
Could someone point where I could look for some info on this ? Either
in the source code or in some manual. I have read the Getting Started
Manual, and have not found anything in this regard except Jon
Wojnaroski's 747 project but that does not give any info on how the
realtime data was taken from FG or something similar.

Any help will be appreciated. Fyi, I use Linux and play FG on Linux
and all my work will be on Linux.

Thanks and regards,
Vikas

-- 
http://www.vikaskumar.org/

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] real-time data

2006-11-26 Thread John Wojnaroski
Vikas N Kumar wrote:

Hi All
I need some help in collecting real-time data from FlightGear while
the aircraft is being flown. I will need it when I interface it with
hardware for instrument panels etc.
Could someone point where I could look for some info on this ? Either
in the source code or in some manual. I have read the Getting Started
Manual, and have not found anything in this regard except Jon
Wojnaroski's 747 project but that does not give any info on how the
realtime data was taken from FG or something similar.

Any help will be appreciated. Fyi, I use Linux and play FG on Linux
and all my work will be on Linux.

Thanks and regards,
Vikas

  

Look in the Network  directory.  There is the protocol for sending data 
from flightgear via a LAN to a display machine.  There are two data 
structures,  opengc which is probably out of date and sync with the 
latest flightgear and a 2nd lfsglass which should work with 0.9-10.

Here is a short shell script for setting up the network calls

#!/bin/sh

/usr/local/bin/fgfs \
--fg-root=/usr/local/FlightGear  --bpp=32 \
--airport=KSFO \
--aircraft=c310 \
--disable-panel \
--disable-random-objects \
--visibility=25000  --disable-clouds \
--httpd=6500
#--native-ctrls=socket,in,30,,5700,udp \
#--opengc=socket,out,30,broadcast,6000,udp
#--native-fdm=socket,out,30,192.168.2.100,5800,udp \
#--native-fdm=socket,out,30,192.168.2.101,5900,udp


You can also download a working fgfs and source from www.lfstech.com 
that was used at a Mathworks seminar last year.

Hope this helps.

Regards
John W.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Using FG for class presentation

2006-11-26 Thread Ampere K. Hardraade
On Saturday 25 November 2006 18:27, Arnt Karlsen wrote:
 On Sat, 25 Nov 2006 22:02:17 +0100, wim wrote in message

 [EMAIL PROTECTED]:
  You may want to try the following app to extract your data:
 
  http://www.frantz.fi/software/g3data.php

 ..is also Debianised.  For other alternatives, play with apt-cache
 feeding it search strings like extract data from graph scan. Etc.

Cool, thanks.

Is there similar tool for processing vector graphics?
http://www.bea-fr.org/docspa/2000/f-sc000725a/pdf/appendix4p.pdf

Ampere

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Antonov AN-2 ready for download

2006-11-26 Thread Yurik V. Nikiforoff
В сообщении от 24 Ноябрь 2006 21:30 Melchior FRANZ написал(a):
 Someone mentioned it already: the aileron animation is
 wrong. Goes up when it should go down and vice versa.

I fix this, and another bug, but I have not enough time to prepare right 
update. Too many works at end of year... 

-- 
Wbr, Yurik

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel