Durk Talsma
6fa2b1cbe6
Equate sun angle for morning and afternoon. This is a temporary solution, but should give more consistent results for locations that are relatively close to the poles.
2011-11-14 17:22:02 +01:00
James Turner
e89699acef
Fix for http://code.google.com/p/flightgear-bugs/issues/detail?id=478 , ensure sun-angle has a valid (default) value at init.
2011-11-10 14:47:57 +00:00
James Turner
c1eca1ff6b
Refactor SGSky handling and ownership - sink into Renderer, remove global variable 'the sky', and hence clean up main loop and subsystem creation a little more.
2011-11-05 17:11:52 +00:00
James Turner
70b4f38ebc
Goodbye automake.
2011-11-01 11:15:53 +00:00
ThorstenB
acdf0dc469
Clean-up date/time option parser.
...
Add range checks and provide error messages.
Extend time offset to 64bit - so we're safe for 2038-01-19 (and the next
couple of millions years beyond...).
Support partial date/time strings, such as --start-date-gmt=2011 or
--start-date-gmt=:::12:00:00
2011-10-30 14:48:53 +01:00
Mathias Froehlich
81cab66c2c
Make use of SGTimeStamp::sleepUntil for accurate sleeping.
...
For use with frame rate throtteling make use of
SGTimeStamp::sleepUntil. This function should cover the
system dependent parts of accurate sleeps and should
move the system dependent code out of the time manager.
2011-10-28 17:43:47 +02:00
James Turner
b1b4b7ecf4
Fix (nearly) all the std:: namespace violations in headers, in preparation for fixing SGsmplstat.hxx to *not* do a 'using namespace std'.
2011-10-17 17:41:59 +01:00
James Turner
8986c3488d
Make sun-angle a plain property, so observers fire.
2011-10-12 09:17:58 +01:00
James Turner
1c8d8e7908
More CMake headers support
2011-07-19 07:58:03 +01:00
Erik Hofman
afca14c372
add a sanity check for the overcast property
2011-06-05 10:26:55 +02:00
Erik Hofman
8f3cdc9404
Add a /rendering/scene/overcast option to color the skydome gray in case of overcast
2011-06-05 10:20:16 +02:00
Erik Hofman
8b72e13d2f
As torten explains: it is probably not a good idea to ti /environment/relative-humidity since the FGEnvironment ties to this property too
2011-06-04 15:39:45 +02:00
Erik Hofman
c346bcee77
Add the /rendering/scene/scattering property to allow the weather system to contoll the amount of light scattering (or absorption) of the fog
2011-06-04 13:11:56 +02:00
ThorstenB
863551a932
fix #142 : initial window position
...
Be (at least a bit) smarter with initial x/y position
Also some minor type/comment issues.
2011-05-29 18:46:11 +02:00
James Turner
436abe1e62
Factor timeofday command into the TimeManager
2011-05-25 12:13:25 +01:00
ThorstenB
7ec9d036d6
Renaming / more consistent naming.
2011-03-28 00:30:23 +02:00
ThorstenB
dca2132087
New property reporting worst-case frame latency.
...
Shows maximum latency of any frame within the last second.
2011-03-28 00:16:27 +02:00
Torsten Dreyer
1050a35d92
prepare for subsystem_mgr.hxx no longer including props.hxx
...
subsystem_mgr.hxx will soon no longer include props.hxx since it
does not (need to) know about properties at all.
2011-02-27 12:53:47 +01:00
ThorstenB
133cfbfa7f
Fixed several compiler warnings
...
uninitialized or unused variables, init sequence, ...
2011-02-02 22:05:54 +01:00
James Turner
a91ec5f9f9
Initial work on CMake build files, with considerable help from Olaf Flebbe.
2010-12-19 15:06:04 +00:00
Tim Moore
79a2173ef9
Fix bug 182 - make sun direction agree with position of sun from the ephemeris
...
http://code.google.com/p/flightgear-bugs/issues/detail?id=182
There were two issues. The biggest is that the sunsolver was accessing
parameters from the ephemeris and doing a different calculation with
them to derive the right ascension and declination of the sun. I'm not
sure who is right, but I changed sunsolver to agree with the
ephemeris. Also, there was an inappropriate use of geodetic
coordinates in calculating the sun latitude and longitude.
Also, I did some cleanup in updateSunPos().
2010-12-04 16:26:46 +01:00
James Turner
e0aef846e3
Fixing bug #172 - warp handling during pause.
2010-11-21 23:43:41 +00:00
ThorstenB
dec020cd64
Suppress framerate while splash screen active
...
Don't irritate the fps-geeks while the sim isn't ready yet.
And a minor pointer safety issue.
2010-11-21 13:58:10 +01:00
Christian Schmitt
0a5e86f4e6
remove old .cvsignore files
2010-11-11 01:16:29 +01:00
Erik Hofman
f75656ea59
Allow for scenery de-saturation
2010-09-12 11:06:14 +02:00
James Turner
7f36caede6
Create TimeManager subsystem, and collect the time related code out of main.cxx and fg_init.cxx into it.
...
Remove the unfortunately named 'tmp.[cxx|hxx]', pushing the remaining code in FGLight.
(second try, with init bug fixed)
2010-08-04 09:16:37 +01:00
James Turner
47fd8a8a2a
Revert "Create TimeManager subsystem" - not quite ready for prime-time yet!
...
This reverts commit 50eb95dcad
.
2010-08-02 00:23:36 +01:00
James Turner
50eb95dcad
Create TimeManager subsystem, and collect the time related code out of main.cxx and fg_init.cxx into it.
...
Remove the unfortunately named 'tmp.[cxx|hxx]', pushing the remaining code in FGLight.
2010-08-01 20:33:11 +01:00
James Turner
d1852430bf
Make various implicit includes (via PLIB) explicit.
2010-07-28 10:25:42 +01:00
James Turner
9604908a8d
Remove all (2) uses of simgear/math/vector.h from FlightGear.
2010-07-23 13:26:07 +01:00
Erik Hofman
913726cb0e
adjust gamma based on time of day
2010-07-17 15:02:06 +02:00
James Turner
4756cd4882
Wrap SGEphemeris in a subsytem/property interface, and remove from mainloop.
2010-06-26 10:31:21 +01:00
ehofman
38cd172e82
slightly tweak the ambient color a bit.
2010-01-25 15:22:00 +01:00
Tim Moore
9a94b26609
Changes for animated effects
2009-12-20 10:34:07 +01:00
Tim Moore
b39599f578
Merge branch 'ehofman/sky'
2009-11-26 23:32:20 +01:00
ehofman
af6da1d3c1
sun postition fixes
...
Was: allow sound effects in the configuration file to be added to the 'avionics' sample group by setting '<type>avionics</type>'.
but this change obviously snuck in with that.
2009-11-10 06:54:57 +01:00
ehofman
06187368d2
first stab at reorganizing fgUpdateSunPos() to make it use quats
2009-11-07 08:54:23 +01:00
ehofman
61d8aa5bde
Adjust fog color.
2009-10-26 18:54:40 +01:00
Tim Moore
5b29cd4cc0
fix warnings in Multiplayer, Scripting, and Time
2009-08-24 18:07:19 +02:00
ehofman
83675c7216
Changed my mind, the 'scene specular' color is actually the diffuse color and the sun specular color is the scene specular color
2009-08-23 21:43:08 +02:00
ehofman
37e1581964
forgot a few untie's and fix a small bug
2009-08-23 21:43:08 +02:00
ehofman
25a99a2417
Expose the color of the sun (which is not the scene specular color anymore)
2009-08-23 21:43:08 +02:00
ehofman
bdccfb587d
brighten te sky color towards the sun at dusk and dawn
2009-05-02 00:44:21 +02:00
ehofman
71c9cb9f48
Remove unused code
2009-04-15 23:19:30 +02:00
ehofman
30ae6e0564
Let the fog color transition into the sky dome to give a more natural effect
2009-04-15 23:19:30 +02:00
ehofman
2923bd15bc
Also adjust diffuse based on visibility although probably nobody will notice the difference
2009-04-15 23:19:29 +02:00
ehofman
c2af121c00
fog color and cloud color are the same anyhow, remove one of them in the ambient color calculation
2009-04-15 23:19:29 +02:00
ehofman
846d756e55
logarithmic decrease in shinines/specular and limited linear increased ambient color due to reduced visibility.
2009-04-15 23:19:29 +02:00
ehofman
b7e8be8ceb
Adjust the lighting once more, the previous behavior wasn't really satisfactory to me. Now specular is also influenced by visibility.
2009-04-15 23:19:29 +02:00
ehofman
48ac04456f
Adding ambient support for ac3d aircraft models reveiled a mistake in the scne ambient calculation. Decreasing visibility now increases ambient color giving a nice dark color on bright days and a much more visible color on normal days.
2009-04-01 09:23:55 +02:00
frohlich
183b871b48
Fix a problem with two concurent 'round to multiple of basic simulation
...
time' code paths. The problem may lead to skipped fdm updates at very high
frame rates. The most visible effect of that was that the aircraft
slips backwards wrt the forward moving carrier.
Remove unused stuff.
Modified Files:
configure.ac projects/VC7.1/FlightGear.vcproj
projects/VC8/FlightGearLib.vcproj src/Cockpit/cockpit.cxx
src/FDM/Makefile.am src/FDM/flight.cxx src/FDM/flight.hxx
src/FDM/SP/Balloon.cxx src/FDM/SP/BalloonSim.cpp
src/FDM/SP/BalloonSim.h src/Main/Makefile.am
src/Main/fg_init.cxx src/Main/main.cxx src/Time/Makefile.am
Removed Files:
src/Time/fg_timer.cxx src/Time/fg_timer.hxx
2009-03-18 08:00:09 +01:00
frohlich
f9f9350b96
Adapt to SGTimeStamp changes.
...
Modified Files:
configure.ac src/Cockpit/panel.cxx src/FDM/Makefile.am
src/FDM/flight.hxx src/FDM/ExternalNet/ExternalNet.hxx
src/Instrumentation/marker_beacon.cxx src/Main/Makefile.am
src/Main/fg_init.cxx src/Main/main.cxx
src/MultiPlayer/multiplaymgr.cxx src/Time/fg_timer.cxx
utils/GPSsmooth/MIDG_main.cxx utils/GPSsmooth/UGear_main.cxx
utils/GPSsmooth/gps_main.cxx
2009-03-18 08:00:08 +01:00
frohlich
30b05ee7a3
ompute some vectors from the current view when they are used.
...
Simplifies the update hell in the viewer a bit.
Modified Files:
src/Main/renderer.cxx src/Main/viewer.cxx src/Main/viewer.hxx
src/Time/tmp.cxx
2009-03-11 23:14:34 +01:00
jmt
0f4f044a94
Kill off many Point3D includes, and a couple of uses in the HUD code.
...
Requires a SimGear update to get some new SGGeodesy helpers.
2008-12-26 12:28:05 +00:00
fredb
3db0cf1659
Remove unneeded inclusions of windows.h, GL.h and GLU.H
2008-07-27 15:18:34 +00:00
ehofman
d9bfd5a425
This should apply, and everything should build cleanly, in isolation from the
...
SimGear change. It changes all the SG_xxxx to be the 'real' includes, and gets
rid of many #ifdef SG_HAVE_STD_INCLUDES. As an added bonus, rather than
replacing 'SG_USING_NAMESPACE(std)' with 'using namespace std', I just fixed
the small number of places to use std:: explicitly. So we're no longer polluting
the global namespace with the entire contents of std, in many cases.
There is one more 'mechanical' change to come - getting rid of SG_USING_STD(X),
but I want to keep that separate from everything else. (There's another
mechnical change, replacing <math.h> with <cmath> and so on *everywhere*, but
one step at a time)
2008-07-25 18:38:29 +00:00
ehofman
eccddb3dfd
Attached patches remove BORLANDC, and hence SG_MATH_EXCEPTION_CLASH and SG_INCOM
...
PLETE_FUNCTIONAL from SimGear and FlightGear.
As a result, SG_HAVE_STD_INCLUDES is now *always* set, so I will get the boring
fixes for that done, but separately. I'm still auditing the other things in comp
ilers.h - there's a lot that can die now BORLAND is gone.
2008-07-25 10:39:53 +00:00
ehofman
6c4061bdc5
Remove the remaining macintosh (not MacOS-X) and MWERKS workarounds.
2008-07-25 07:29:20 +00:00
frohlich
4fe615fff5
Modified Files:
...
src/AIModel/AIBase.cxx src/AIModel/AICarrier.cxx
src/ATC/AIEntity.cxx src/Cockpit/hud_rwy.cxx
src/FDM/Makefile.am src/FDM/flight.hxx src/FDM/groundcache.cxx
src/Instrumentation/HUD/HUD_runway.cxx src/Main/Makefile.am
src/Main/fg_init.cxx src/Main/main.cxx src/Main/renderer.cxx
src/Main/viewer.cxx src/Main/viewer.hxx src/Model/acmodel.cxx
src/Model/modelmgr.cxx src/Scenery/scenery.cxx
src/Scenery/scenery.hxx src/Scenery/tileentry.cxx
src/Time/tmp.cxx: Remove the scenery center handling.
Osg has double valued transforms at any relevant place.
2007-05-05 08:08:24 +00:00
frohlich
d3fdf74e4f
Modified Files:
...
light.cxx light.hxx sunsolver.cxx tmp.cxx: kick out sg.h
2007-01-30 20:14:25 +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
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
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
frohlich
cdb725528d
Clean up scenery center handling. It is set now less often.
2006-07-27 16:36:22 +00:00
mfranz
c9813d1b5d
new FSF address
2006-02-21 01:16:04 +00:00
ehofman
0f448cb4ca
Melchior FRANZ:
...
gui colors and material animation use "red", "green", "blue".
Would be nice if these light colors would use the same standard.
2006-01-27 13:54:35 +00:00
ehofman
6c331a55a8
Tie the scene ambient,diffuse end specular red,green and blue components to a property under /rendering/scene
2006-01-27 12:35:15 +00:00
ehofman
da5d0ffc28
Cygwin fix.
2005-11-12 14:40:17 +00:00
ehofman
e1d92f81e9
Deprecate some non GPL compatible code in favor of our own routines.
2005-11-11 14:46:15 +00:00
ehofman
62a359cc4a
Alex Romosan:
...
* Use "const string&" rather than "string" in function calls when appropriate.
* Use "const Point3D&" instead of "Pint3D" in function calls when appropriate.
* Improved course calculation in calc_gc_course_dist()
* Safer thread handling code.
Vassilii Khachaturov:
Dont use "const Point3D&" for return types unless you're absolutely sure.
Erik Hofman:
* Use SGD_(2)PI(_[24]) as defined in simgear/constants.h rather than
calculating it by hand every time.
2005-10-25 13:49:55 +00:00
ehofman
f938af2592
Vassilii Khachaturov thought that these messages are actually debug messages and I tend to agree.
2005-10-22 11:26:58 +00:00
ehofman
ef099d3cad
Why this didn't ring any alarm bells during my previous test compile is beyond me, but this should get FlightGear in a compilable state again.
2005-07-26 20:12:03 +00:00
ehofman
73f06ccef3
Remove unused code, especially concidering the non-commercial clause in the copyright statement.
2005-07-26 08:08:41 +00:00
ehofman
7e024c549f
Remove a copyright that doesn't belong there. This file was written from scratch for FlightGear.
2005-07-22 12:32:46 +00:00
curt
40170cb722
The view frustum is defined in plib apps using calls to ssgSetFOV() and
...
ssgSetNearFar(). This by default creates a symmetric view frustum which is
typically what an application wants.
However, to get control of the view frustum in order to build support for
asymmetric view frustums, we need to wrap these calls with a bit of our own
logic.
This set of changes wraps all calls to ssgSetFOV() and ssgSetNearFar() with
FGRenderer methods.
I also standardized how the FGRenderer class is handled in globals.[ch]xx.
This led to some cascading changes in a variety of source files.
As I was working my way through the changes, I fixed a few warnings along
the way.
2005-02-25 19:41:53 +00:00
curt
d05121ef46
Fix my mailing address by replacing it with my web page.
2004-11-19 22:10:41 +00:00
curt
4214cd6c10
Migrate FlightGear code to use "#include SG_GL*" defined in
...
"#include <simgear/compiler.h>".
2004-11-18 19:53:00 +00:00
curt
2acdd02879
Clean up various compiler warnings that have crept into the code. This
...
by no means get's them all, but it's a start.
2004-04-01 15:27:53 +00:00
ehofman
7de581bf8f
Changes to tke sky dome coloring
2004-02-18 14:33:50 +00:00
ehofman
816d84457c
Reduce the log level to info
2004-01-24 10:36:37 +00:00
ehofman
79ef949e17
Check for less than -1.0 also.
2004-01-19 14:26:24 +00:00
ehofman
ce66c93d6c
Fix a problem where the dot product might possibly be greater than 1.0 causing a NaN for the following acos()
2004-01-19 13:46:47 +00:00
ehofman
491e7c6fea
Fix a posible devide by zero situation
2004-01-15 18:10:00 +00:00
ehofman
1fa7a1464f
Name the property sun-angle-rad instead of sun-pos-rad to make it a bit more descriptive
2004-01-07 22:51:28 +00:00
ehofman
f279f4b065
Chnage the name to reflect the real unit of radians instead of degrees
2004-01-07 09:26:17 +00:00
ehofman
519fd99106
Make the position of the sun above the horizon available in the proprty tree
2004-01-07 09:21:35 +00:00
andy
439a9fa1e4
Minor API changes to support the new sg_geodesy implementation. A few
...
places now use sgCartToGeod() instead of rolling their own
approximation. And YASim is now using exactly the same 3D coordinate
system as the rest of FlightGear is.
2003-12-19 02:42:32 +00:00
ehofman
980012e168
Move FGEventMgr and FGSubsystemMgr over to SimGear, add SGEventMgr to FlightGear's globals structre and some small code cleanups
2003-09-24 17:20:55 +00:00
ehofman
b61c3fa11c
Initialize some variables, re-order the function calls in updeate() and reread the interpoltation tables upoj reinit()
2003-09-23 08:27:06 +00:00
ehofman
e0dda6ad52
A small fix to have a smoot transition of cloud colors when in time warp mode
2003-09-20 11:05:12 +00:00
ehofman
a33ad90ed7
Convert fgLIGHT to FGLight and make it FGSubsystem compatible. Let the subsystem manager handle it and let FGLight::update() handle the repositioning of the sun and the moon.
2003-09-20 09:38:32 +00:00
ehofman
6fd6d7eb06
Remove the test property to check the difference between the old and the new behavior
2003-09-17 19:21:57 +00:00
curt
a217c563ba
Clean up the timeofday setting code a bit more, consolodate the solver
...
functions (note to Norman: I looked at the web page you listed and that
looks like a good idea, but I don't have time right now to go through and
debug an entirely new routine. What we have works well enough for now I hope!)
2003-09-17 15:49:15 +00:00
curt
b10715833c
Fix a few potential gotcha's in setting up start time.
2003-09-16 22:34:22 +00:00
curt
9bb782ce72
Added a command line option to specify a starting time of day in the sense of:
...
--timeofday=dawn
--timeofday=dusk
--timeofday=noon
--timeofday=midnight
2003-09-15 22:55:39 +00:00
ehofman
3e98bccbaf
Remove unused gamma corrections
2003-09-03 18:47:48 +00:00
ehofman
7a29fc0613
Average sunlight and ambient light instead of multiplying it
2003-08-29 22:13:05 +00:00
curt
27a36e6059
- The latest volley in the FlightGear lighting wars.
...
- Ambient is based off the lookup table only.
- Diffuse is based off of the lookup table, but multiplied by a combination
of sun/fog colors.
The result is a bit more ambient light at dusk and night since the world is
never 100% dark. And we still get nice sunset/sunrise colored illumination
of surfaces that are directly illuminated by the sun.
2003-08-29 21:24:13 +00:00
ehofman
6f8aa7b331
Change GLUT_H to FG_GLUT_H to prevent a naming clash with freeglut.
2003-08-21 09:12:12 +00:00
ehofman
5ae096b225
Reorganization of main.cxx
2003-08-17 09:54:41 +00:00