[Flightgear-devel] fg_os_osgviewer coredump and patch

2008-04-17 Thread Torsten Dreyer
Hi all,

for fg osg with osgviewer enabled and a camera configured in preferences.xml 
that can't be opened, fg coredumps.

This is due to using the GraphicsContext for the camera without checking if it 
has been created:

osg::GraphicsContext* gc;
gc = osg::GraphicsContext::createGraphicsContext(cameraTraits.get());
gc-realize();

Attached is a patch (against current cvs) to fix this. 

Please consider applying this patch, it works perfectly for me.

Greetings, Torsten
Index: fg_os_osgviewer.cxx
===
RCS file: /var/cvs/FlightGear-0.9/source/src/Main/fg_os_osgviewer.cxx,v
retrieving revision 1.16
diff -u -p -r1.16 fg_os_osgviewer.cxx
--- fg_os_osgviewer.cxx	22 Mar 2008 09:31:08 -	1.16
+++ fg_os_osgviewer.cxx	17 Apr 2008 07:21:39 -
@@ -172,7 +172,6 @@ void fgOSOpenWindow(int w, int h, int bp
 if (strcmp(cameraNode-getName(), camera) != 0)
   continue;
 
-	nCameras++;
 // get a new copy of the traits struct
 osg::ref_ptrosg::GraphicsContext::Traits cameraTraits;
 cameraTraits = new osg::GraphicsContext::Traits(*traits);
@@ -209,14 +208,17 @@ void fgOSOpenWindow(int w, int h, int bp
 
 osg::GraphicsContext* gc;
 gc = osg::GraphicsContext::createGraphicsContext(cameraTraits.get());
-gc-realize();
-camera-setGraphicsContext(gc);
-// If a viewport isn't set on the camera, then it's hard to dig it
-// out of the SceneView objects in the viewer, and the coordinates
-// of mouse events are somewhat bizzare.
-camera-setViewport(new osg::Viewport(0, 0, cameraTraits-width, cameraTraits-height));
-camera-setProjectionResizePolicy(rsp);
-viewer-addSlave(camera.get(), osg::Matrix::translate(-shearx, -sheary, 0), osg::Matrix());
+if( gc != NULL ) {
+  gc-realize();
+  camera-setGraphicsContext(gc);
+  // If a viewport isn't set on the camera, then it's hard to dig it
+  // out of the SceneView objects in the viewer, and the coordinates
+  // of mouse events are somewhat bizzare.
+  camera-setViewport(new osg::Viewport(0, 0, cameraTraits-width, cameraTraits-height));
+  camera-setProjectionResizePolicy(rsp);
+  viewer-addSlave(camera.get(), osg::Matrix::translate(-shearx, -sheary, 0), osg::Matrix());
+  nCameras++;
+}
   }
   if (nCameras  1)
 	manipulator-setResizable(false);
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Message time and fonts

2008-04-17 Thread till busch
hi adam,

this is currently not controlled by a property. you can find the timeout in 
Nasal/screen.nas (line 184).

log = window.new(nil, -30, 10, 10);

you could also specify the font there (untested):

log.font = font;

i think that changing the font size is not easily possible.

cheers,

-till

On Thursday 17 April 2008, Adam Dershowitz wrote:
 Is there a property that controls the font size, and the time that a
 message remains on the screen?  I have hunted around and not had any
 luck finding that in the property tree.  But I could have missed it.
 If not, where can it be set?  Which source file or other location has
 that info?

 Thanks,

 --Adam

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Nav.dat additions CYVR DMEs

2008-04-17 Thread Ron Jensen
The approach plates for CYVR show DMEs associated with ILS on all
runways but 30. http://www.czvr.ca/_Pilot_Resources/_Charts/CYVR.php 

Locations below are based on likely looking structures on Googleearth.

Ron

CYVR DMEs

12 49.205663 -123.196219 20 11055 20 0.000 ITL CYVR 8L DME-ILS
12 49.188036 -123.201341 23 10950 20 0.000 IVR CYVR 8R DME-ILS
12 49.196433 -123.198972  7 0 20 0.000 IMK CYVR 12 DME-ILS
12 49.183891 -123.165605 10 11195 20 0.000 IRD CYVR 26L DME-ILS
12 49.201993 -123.164087 10 11070 20 0.000 IFZ CYVR 26R DME-ILS


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] B-1B update

2008-04-17 Thread Markus Zojer
Hi Curt!

Some updates to the bone, would you be so kind to apply it?

http://homepage.univie.ac.at/markus.zojer/fgfs/B-1B0013.tar.gz

Thanks in advance,

Markus

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Flight Gear Build

2008-04-17 Thread sbwong
Hi, 

Thanks for your help. Finally, I was able to build FG with MSVC9.
But I ran into the following error message after I tried to execute 
flightgear.exe.


The application failed to initialize properly (0xc022). Click on OK to 
terminate the application.

Then I tried to run the debugger to see if I can see different error messages 
since the above one
did not tell me anything. And I got the following error messages:

'FlightGear.exe': Loaded 
'C:\flightgearsrc\src\FlightGear-1.0.0\Debug\FlightGear.exe', Symbols loaded.
'FlightGear.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll'
'FlightGear.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll'
'FlightGear.exe': Loaded 'C:\WINDOWS\system32\wsock32.dll'
'FlightGear.exe': Loaded 'C:\WINDOWS\system32\ws2_32.dll'
'FlightGear.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll'
'FlightGear.exe': Loaded 'C:\WINDOWS\system32\ws2help.dll'
'FlightGear.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll'
'FlightGear.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll'
'FlightGear.exe': Loaded 'C:\WINDOWS\system32\secur32.dll'
'FlightGear.exe': Loaded 
'C:\flightgearsrc\src\FlightGear-1.0.0\Debug\freeglut.dll', Symbols loaded.
'FlightGear.exe': Loaded 'C:\WINDOWS\system32\user32.dll'
'FlightGear.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll'
'FlightGear.exe': Loaded 'C:\WINDOWS\system32\winmm.dll'
'FlightGear.exe': Loaded 'C:\WINDOWS\system32\opengl32.dll'
'FlightGear.exe': Loaded 'C:\WINDOWS\system32\glu32.dll'
'FlightGear.exe': Loaded 'C:\WINDOWS\system32\ddraw.dll'
'FlightGear.exe': Loaded 'C:\WINDOWS\system32\dciman32.dll'
Debugger:: An unhandled non-continuable exception was thrown during process load
The program '[3728] FlightGear.exe: Native' has exited with code -1073741790 
(0xc022).

Does it mean I missed another dll or dlls? 
Please advise.

Thank you very much.

Sophia


   
 
  Yup, looks indeed as if you have MSVC9. No matter, after several tries I
 got FG to build with it. I made a new directory VC9 in the same place as
 VC8, copied the VC 8 solution (.sln) file to the location, converted it to
 VC9 (click on it from VC9 , and it converts), and worked it out from there.
 You can have my project files if that would help - but you will need to
 adjust all the paths, etc.
 
 Vivian
 
 
 
 -
 This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
 Don't miss this year's exciting event. There's still time to save $100. 
 Use priority code J8TL2D2. 
 http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 Flightgear-devel mailing list
 Flightgear-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/flightgear-devel


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] Flight Gear Build

2008-04-17 Thread Vivian Meazza
Sbwong wrote:

 Sent: 17 April 2008 19:09
 To: FlightGear developers discussions
 Subject: Re: [Flightgear-devel] Flight Gear Build
 
 
 Hi, 
 
 Thanks for your help. Finally, I was able to build FG with 
 MSVC9. But I ran into the following error message after I 
 tried to execute flightgear.exe.
 
 
 The application failed to initialize properly (0xc022). 
 Click on OK to terminate the application.
 
 Then I tried to run the debugger to see if I can see 
 different error messages since the above one did not tell me 
 anything. And I got the following error messages:
 
 'FlightGear.exe': Loaded 
 'C:\flightgearsrc\src\FlightGear-1.0.0\Debug\FlightGear.exe', 
 Symbols loaded.
 'FlightGear.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll'
 'FlightGear.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll'
 'FlightGear.exe': Loaded 'C:\WINDOWS\system32\wsock32.dll'
 'FlightGear.exe': Loaded 'C:\WINDOWS\system32\ws2_32.dll'
 'FlightGear.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll'
 'FlightGear.exe': Loaded 'C:\WINDOWS\system32\ws2help.dll'
 'FlightGear.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll'
 'FlightGear.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll'
 'FlightGear.exe': Loaded 'C:\WINDOWS\system32\secur32.dll'
 'FlightGear.exe': Loaded 
 'C:\flightgearsrc\src\FlightGear-1.0.0\Debug\freeglut.dll', 
 Symbols loaded.
 'FlightGear.exe': Loaded 'C:\WINDOWS\system32\user32.dll'
 'FlightGear.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll'
 'FlightGear.exe': Loaded 'C:\WINDOWS\system32\winmm.dll'
 'FlightGear.exe': Loaded 'C:\WINDOWS\system32\opengl32.dll'
 'FlightGear.exe': Loaded 'C:\WINDOWS\system32\glu32.dll'
 'FlightGear.exe': Loaded 'C:\WINDOWS\system32\ddraw.dll'
 'FlightGear.exe': Loaded 'C:\WINDOWS\system32\dciman32.dll'
 Debugger:: An unhandled non-continuable exception was thrown 
 during process load The program '[3728] FlightGear.exe: 
 Native' has exited with code -1073741790 (0xc022).
 
 Does it mean I missed another dll or dlls? 
 Please advise.
 
 Thank you very much.
 
 Sophia
 
 

  
   Yup, looks indeed as if you have MSVC9. No matter, after several 
  tries I got FG to build with it. I made a new directory VC9 in the 
  same place as VC8, copied the VC 8 solution (.sln) file to the 
  location, converted it to VC9 (click on it from VC9 , and it 
  converts), and worked it out from there. You can have my 
 project files 
  if that would help - but you will need to adjust all the paths, etc.
  


Hmm - I think you need at least OpenAL32.dll and wrap_oal.dll in your path
somewhere. Try those anyway - they are in mine.

Vivian



-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Flash with altitude change

2008-04-17 Thread Adam Dershowitz
I am driving FlightGear with a text file of data.  For some reason,  
when I am looking at an external view, for each altitude change there  
is an annoying flash.  It looks like a single frame being drawn in the  
wrong position.  I can sometimes make out a ghost of the airplane  
being drawn in the wrong place, or the ground in the wrong place.
This doesn't happen with an internal view.  Even altitude changes in  
the data file of less than 50 ft. are enough to cause it to happen.

I am using version 1.0, plib on a Mac.

Any idea why this is happening or what I can do about it?  It makes  
this playback look really bad.

Thanks much.


--Adam




-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel