1
0
Fork 0
Commit graph

224 commits

Author SHA1 Message Date
Erik Hofman
699f4eeb38 fix a typo 2012-01-09 08:14:46 +01:00
Erik Hofman
5f0066c4c2 Fix the sun position and fog/ambient coloring misalignment 2012-01-08 16:28:43 +01:00
Erik Hofman
3abf0b5df1 remove some ugly while loops 2012-01-08 13:51:38 +01:00
Erik Hofman
d91a617423 vecotry color calculations 2012-01-08 12:09:46 +01:00
ThorstenB
dac00efbc7 Fix some compiler warnings.
Comment out unused code.
2012-01-02 23:16:17 +01:00
Erik Hofman
1fb790eb60 comment out unused variables and function and properly initialize variables 2011-12-19 16:50:21 +01:00
Erik Hofman
e6e09a8161 Also expose the true sun color in the property tree. 2011-12-17 10:57:08 +01:00
Erik Hofman
ff4c771759 Expose the cloud color in the property tree 2011-12-16 15:37:16 +01:00
James Turner
029226f8d4 Use property objects to avoid property look-ups during TimeManager updates. 2011-11-20 18:30:31 +00:00
ThorstenB
4b2506d709 Add new performance monitoring subsystem.
Rename some subsystems for naming consistency.
2011-11-19 15:37:49 +01:00
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