mfranz
8a489eed0b
only WARN if fgcommand "load" doesn't find the file; it returns the
...
success/failure result, and it's up to the caller to complain or ignore
2007-01-20 23:06:44 +00:00
mfranz
b7a7de4f30
don't search *-set.xml files in the the *complete* $FG_ROOT/Aircraft/ tree
...
(including all subdirs and with max depth!), but only the outmost level.
There are no *-set.xml files in deeper nested dirs, and with an ever growing
number of aircraft the search just lasts too long.
2007-01-15 20:58:20 +00:00
frohlich
826866b327
Modified Files:
...
src/GUI/gui.h src/GUI/gui_funcs.cxx src/GUI/gui_local.cxx
src/GUI/mouse.cxx src/GUI/sgVec3Slider.cxx
src/GUI/sgVec3Slider.hxx src/Main/fg_commands.cxx:
Remove some dead code.
2007-01-07 15:51:29 +00:00
frohlich
a788ebf487
Modified Files:
...
src/Input/input.cxx src/Main/renderer.cxx
src/Main/renderer.hxx src/Scenery/scenery.cxx
src/Scenery/scenery.hxx: Move scenery picking into the renderer.
There is most of the required data defined. Also we can better use
the pick visitor that will be needed with th upcommung panel code.
2007-01-07 12:02:50 +00:00
frohlich
eff14788a7
Modified Files:
...
src/Main/renderer.cxx: Don't try to render the moon without light...
2007-01-06 15:09:42 +00:00
frohlich
b8dffe05ab
Modified Files:
...
src/Cockpit/panel.cxx src/Main/renderer.cxx: Make sure we run on
texture unit 0 in plain opengl code.
2007-01-06 13:51:47 +00:00
frohlich
059c906be5
Modified Files:
...
src/Cockpit/panel.cxx src/Cockpit/panel.hxx
src/Cockpit/panel_io.cxx src/GUI/dialog.cxx src/GUI/dialog.hxx
src/GUI/menubar.cxx src/GUI/menubar.hxx src/GUI/new_gui.hxx
src/Input/input.cxx src/Input/input.hxx src/Main/renderer.cxx
src/Scenery/scenery.cxx src/Scenery/scenery.hxx:
Use SGBinding instead of FGBinding. Remove FGBinding. Install hooks
to make the pick animation work.
2007-01-04 13:22:27 +00:00
frohlich
bc539e6284
Modified Files:
...
globals.cxx: Use the command manager singleton
2007-01-04 12:48:21 +00:00
frohlich
001bff4cbc
Modified Files:
...
src/Main/options.cxx: Olaf Flebbe: remove leftover snprintf
2007-01-03 10:51:54 +00:00
frohlich
f63c96bf0e
Modified Files:
...
options.cxx: Olaf Flebbe: Fix some problems with --help --verbose
caused by the usage of snprintf. Elimate snprintf usage in favour
plain std::string manipulations.
2007-01-02 08:32:32 +00:00
durk
0547e72d17
Modified (cleaner) traffic manager initialization procedure, corresponding
...
to the new data/AI/Aircraft directory scan code that will be committed
in a minute.
2006-12-27 11:50:13 +00:00
frohlich
bb3d4ad3af
Modified Files:
...
src/Main/renderer.cxx src/Main/viewer.cxx: Clean up the viewers
frames a bit. Do no longer require a axis permutation in osg's
viewer.
2006-12-27 09:28:15 +00:00
fredb
c9401da22d
Remove two g++ warnings
2006-12-17 18:32:56 +00:00
fredb
2422747bcc
Port jpg-httpd to OSG
2006-12-16 17:44:46 +00:00
frohlich
66b6fa0001
Modified Files:
...
renderer.cxx: set TexEnv for the 2d stuff.
2006-12-03 16:50:00 +00:00
frohlich
037a961280
Modified Files:
...
renderer.cxx: Put light information into the update visitor
2006-12-03 16:48:25 +00:00
frohlich
6ad85fbae9
Modified Files:
...
src/Main/renderer.cxx: Use a LightSource for the Light.
2006-11-23 17:50:49 +00:00
frohlich
0adac854dc
Modified Files:
...
renderer.cxx: Fill in that information into the update visitor
2006-11-20 18:16:31 +00:00
frohlich
42528de4ab
Modified Files:
...
src/Main/renderer.cxx src/Cockpit/panel.cxx: Move some more into
simple scenegraph wrappers. That fixes current problems with
invisible panels.
2006-11-15 06:07:42 +00:00
frohlich
16aee6ac41
Modified Files:
...
src/Main/renderer.cxx: Fix some ugly triangle artefacts on the
bo105's Instrument panel.
2006-11-12 17:22:02 +00:00
frohlich
29778f1496
Modified Files:
...
src/Main/main.cxx src/Main/renderer.cxx: Avoid an extra clear of
of the color buffer.
2006-11-12 12:38:57 +00:00
frohlich
bb7c889bbb
Modified Files:
...
src/Time/tmp.cxx src/Time/light.hxx src/Time/light.cxx
src/Main/renderer.cxx src/Cockpit/panel.cxx: Initialize sky colors
2006-11-10 05:37:50 +00:00
frohlich
bd97270782
Modified Files:
...
src/Main/renderer.cxx: Make sure the normalize mode is not set
2006-11-08 20:45:21 +00:00
frohlich
6e370ce895
Modified Files:
...
fg_init.cxx: Oops, forgot to commit that chunk
2006-11-01 22:26:57 +00:00
frohlich
7e5d6d1d75
Modified Files:
...
Time/tmp.cxx Main/viewer.hxx Main/viewer.cxx Main/renderer.cxx
Get rid of an other OSGFIXME. The view matrix had some plib specials
included. The viewer is now updated for that.
2006-11-01 21:22:25 +00:00
frohlich
6b9d29194b
Modified Files:
...
src/AIModel/AIBase.cxx src/Main/main.cxx src/Main/renderer.cxx
Reflect last change in SimGear
2006-10-31 06:27:34 +00:00
frohlich
c53eef58e4
Modified Files:
...
src/Main/Makefile.am: now we need libsgutil ...
2006-10-31 06:19:53 +00:00
frohlich
b0f9d24f9d
Modified Files:
...
configure.ac src/AIModel/AIAircraft.cxx src/AIModel/AIBase.cxx
src/AIModel/AIBase.hxx src/AIModel/AICarrier.cxx
src/AIModel/AICarrier.hxx src/AIModel/AIManager.cxx
src/AIModel/AIManager.hxx src/ATC/AIEntity.cxx
src/ATC/AIEntity.hxx src/ATC/AIMgr.cxx src/ATC/AIMgr.hxx
src/ATC/ATCdisplay.cxx src/ATC/ATCdisplay.hxx
src/Cockpit/cockpit.cxx src/Cockpit/cockpit.hxx
src/Cockpit/hud.cxx src/Cockpit/hud.hxx
src/Cockpit/hud_rwy.cxx src/Cockpit/panel.cxx
src/Cockpit/panel.hxx src/Cockpit/built_in/FGMagRibbon.cxx
src/Cockpit/built_in/FGMagRibbon.hxx src/FDM/flight.cxx
src/FDM/groundcache.cxx src/FDM/groundcache.hxx
src/GUI/gui_funcs.cxx src/Input/input.cxx
src/Instrumentation/od_gauge.cxx
src/Instrumentation/od_gauge.hxx
src/Instrumentation/render_area_2d.cxx
src/Instrumentation/render_area_2d.hxx
src/Instrumentation/wxradar.cxx
src/Instrumentation/wxradar.hxx
src/Instrumentation/HUD/HUD.cxx
src/Instrumentation/HUD/HUD.hxx
src/Instrumentation/HUD/HUD_runway.cxx src/Main/Makefile.am
src/Main/main.cxx src/Main/renderer.cxx src/Main/renderer.hxx
src/Main/viewmgr.cxx src/Model/acmodel.cxx
src/Model/acmodel.hxx src/Model/model_panel.cxx
src/Model/model_panel.hxx src/Model/modelmgr.cxx
src/Model/modelmgr.hxx src/Model/panelnode.cxx
src/Model/panelnode.hxx src/Navaids/awynet.cxx
src/Scenery/Makefile.am src/Scenery/hitlist.cxx
src/Scenery/hitlist.hxx src/Scenery/newcache.cxx
src/Scenery/scenery.cxx src/Scenery/scenery.hxx
src/Scenery/tileentry.cxx src/Scenery/tileentry.hxx
src/Scenery/tilemgr.cxx src/Scripting/NasalSys.cxx
src/Scripting/NasalSys.hxx src/Time/light.cxx
Big BLOB on the way to OSG.
2006-10-29 19:30:21 +00:00
mfranz
546d76269a
emit signal /sim/signals/fdm-initialized when the FDM is up; this is
...
useful to attach listeners and have their functions run at a time when
they can safely access FDM generated properties
2006-10-26 09:07:41 +00:00
durk
fee78e5119
Fixed a potentially tiny memory leak.
2006-09-30 05:17:45 +00:00
fredb
ec4887d1d2
Win32 only : Advertise we need a console when the program is linked as a 'Windows' subsystem
2006-09-27 20:18:08 +00:00
frohlich
4ea7fc6327
Attemp to fix the 'bogous tile problem'
2006-08-31 05:07:50 +00:00
fredb
2fc8a4bb4b
Remove compilation warnings
2006-08-21 07:41:23 +00:00
curt
2d6f291d4f
Add an initial implementation of the Garmin 400 series "Aviation In" data
...
format. I have a Garmin 295 to test with, but so far I haven't been able
to make this work (code should compile cleanly though.) I don't know if
I've made a mistake in the protocol or if my 295 just doesn't support this.
More work on this to come.
2006-08-20 23:37:13 +00:00
mfranz
ad0921f3e0
print the whole autosave.xml path, not just the filename. Unfortunately,
...
in the case of fg_init.cxx we'll only see that if the log-level is set
in preferences.xml, because command line options weren't even processed
at that time. :-/
2006-08-10 11:21:15 +00:00
mfranz
eb38d1f92b
remove experimental and unused code (we read the splash screen style
...
from /sim/gui/style[0] since a while, not from the preferred style.
This allows overriding it from *-set.xml files.)
2006-08-07 15:19:22 +00:00
mfranz
74391d55a1
cosmetics only:
...
- unify indentation (throw out 2-space indentation; this file uses 4 spaces)
- fix mixed indentation
- remove trailing spaces
- fix a couple of spelling mistakes
2006-08-07 15:16:46 +00:00
mfranz
d84043fbe2
move GL_TEXTURE_LOD_BIAS_EXT one section up and document what it does
...
(this was the reason why the first two text lines on the splash screen
looked more blurry than the others). BTW: I played with other values
than -0.5, but this turned out to be the best already. It makes textures
sharper than 0, but not too sharp (and thus flickering).
2006-08-07 15:11:46 +00:00
mfranz
6ce68a226a
remove confusing error message that leads first-time users on the wrong
...
track and is a PITA for support staff. It's this message:
Error reading properties:
Failed to open file
at /home/newbie/.fgfs/autosave.xml
(reported by SimGear XML Parser)
2006-08-03 09:37:31 +00:00
frohlich
cdb725528d
Clean up scenery center handling. It is set now less often.
2006-07-27 16:36:22 +00:00
durk
943b1b8e79
Enable the airway database parsing.
2006-07-27 14:49:41 +00:00
durk
a69dfbbc9a
Mark's dynamic sun color changes.
2006-07-27 05:16:06 +00:00
curt
ae62896f9f
Small tweaks to point lighting configuration to better control the appearance
...
of approach rabbits.
2006-07-21 15:48:57 +00:00
curt
0cec9290db
Add a configuration property to turn on/off the use of point sprites.
...
Generally you want point sprites for performance reasons when enhanced runway
lighting (and smooth points) are activated. Most hardware doesn't
accelerate the rendering of standard smooth points, so without point sprites
you will kill your night time performance if you turn on enhanced runway
lighting.
Note that enhanced runway lighting "breaks" our clever scheme to make the
runway lighting brightness vary with the relative view angle. This means
with enhanced lighting on, all lights are equally bright no matter what
direction you view them from. So perpendicular runways are just as bright
as runways you are directly lined up with (when enhanced runway lighthing
is activated.)
You can revert to the original lighting scheme by turning off enhance runway
lights, turning off distance-attenuation, and turning off point-sprites in
the rendering options menu.
2006-07-20 03:47:39 +00:00
curt
5831d99fc0
Always check for if glPointParameterIsSupported, even if we haven't asked
...
for point light distance attenuation, because we may want to toggle this
on via the rendering options gui.
2006-07-20 03:43:07 +00:00
ehofman
a4265a3b0a
Use one standard define for enableing of the Special Purpose FDM code.
2006-07-17 17:58:53 +00:00
durk
d68723f3da
Time initialization fixes. 1) Offset types "system-offset", "gmt-offset",
...
and "latitude-offset" should not use a precalculated value of warp.
2) Since the values of cur_time and crrGMT are identical in the current
version of the SGTime class, the calculations of the "system", "gmt", and
"latitude" are re-evaluated and updated where necessary.
2006-07-09 08:02:47 +00:00
mfranz
e46036d55f
initialize HUD class and call its drawing routine from renderer
...
(basically a NOOP if /sim/hud/visibility[1] is false)
2006-07-04 15:54:41 +00:00
mfranz
0beba6c967
add new HUD to build system
2006-07-04 15:52:09 +00:00
mfranz
8de07e024e
make clear that "Failed to find runway ..." doesn't have fatal consequences
2006-07-01 16:00:27 +00:00