a460c753e7Work around a limitation of gc_calc_course_dist(). When the start and end points are too close together, this routine can return a course of "nan" but the distance is valid. Someday someone who understands the math should rewrite the gc_calc_course_dist() routine so it is more robust, but for now it's easiest to simply check for a nan result and code around the limitation.
curt
2004-03-03 21:37:41 +00:00
9f59e956fa#define isnan _isnan for MSVC and Mingwin.
curt
2004-03-03 21:35:38 +00:00
bd02eb8e6bRemove a typo
ehofman
2004-03-03 20:06:28 +00:00
a266790a25Put Curt's cloud movement fix back in
ehofman
2004-03-03 20:05:18 +00:00
d8acc3a8f2Use a round-robin scheme rather than returning a random textured state.
ehofman
2004-03-02 13:28:12 +00:00
5f21c75e02Make it possible to define multiple texture for a material (multiple <texture> entries in the materials.xml file). The code can return a random texture, or a pre defined texture upon request (default is random)
ehofman
2004-03-02 10:51:13 +00:00
79d72b6292Add front() methods SGQueue, SGLockedQueue, and SGBlockingQueue so that the can be used more interchangably with a regular STL queue.
curt
2004-02-28 18:51:20 +00:00
aa67c738a1Load submodels before animations, so that we can animate submodels.
david
2004-02-27 03:30:01 +00:00
70dbbf52f0Melchior FRANZ: Here are some updates for the metar class:
ehofman
2004-02-23 20:07:20 +00:00
99bf2c6f9eComment out an improperly written constructor.
curt
2004-02-23 01:34:31 +00:00
3fdeea7f65An ugly hack to get MipsPro 7.4.1 working on IRIX 6 .5.20 (Yuck)
ehofman
2004-02-20 16:07:51 +00:00
ea9d110036Fix from Richard Harke for 64 bit systems. The reftag was left uninitialized by naNum(). If it happened to be constructing it on the stack in a location previously occupied by a real reference, it would generate a corrupt naRef.
andy
2004-02-20 15:10:49 +00:00
16ad232e0dChanges to tke sky dome coloring
ehofman
2004-02-18 14:33:16 +00:00
5b8e5fce20Remove an extra sgSetVec call
ehofman
2004-02-17 14:40:05 +00:00
0633d703d0Be a little quieter at the default debug level.
david
2004-02-07 21:36:20 +00:00
ec6ce9fcd8Move the new metar class from FlightGear to SimGear
ehofman
2004-02-02 10:12:31 +00:00
c9e53d5a30Yank the MSVC special handling. It turns out it was becuase "strlen" has special voodoo in the parser. That's much more cleanly handled by renaming the function than by #ifdef'ing.
andy
2004-02-01 17:47:08 +00:00
828e10773cFix a slight ambiguity in variable names.
curt
2004-01-31 19:50:35 +00:00
34b5c1a1b9Activate the driver fog workaround again. It doesn't seem to be solved yet.
ehofman
2004-01-29 18:25:55 +00:00
f0af686d17Make sure all libraries are used to test for certain functions
ehofman
2004-01-27 09:41:33 +00:00
eda1121054Fix a mistake
ehofman
2004-01-26 19:59:36 +00:00
d97eb240d9Clean up the Pre-, and PostDraw functions a bit. Especially the glPushAttrib has had some attention. The NVidia hack is commented out for now.
ehofman
2004-01-24 12:08:12 +00:00
8c296d96c7Fix an initialization problem
ehofman
2004-01-19 13:37:26 +00:00
65a49bb6e4Oops, I originally had ramped the vasi/papi color transition the wrong way. So as you passed through the target glide slope from low to high it would be colored: red -> white -> small range of transition to red -> white. Now it goes the right way so you get: red -> smooth transition to -> white. You can tell you are getting high if you see the bottom vasi start to turn pink ... etc. etc. hopefully just like in real life.
curt
2004-01-16 17:37:05 +00:00
cfedc90fddTry to prevent a devide by zero situation
ehofman
2004-01-15 14:23:06 +00:00
5665a62938Don't do any calculations when thay are not needed
ehofman
2004-01-15 14:22:03 +00:00
36521869aeMake sure MispPro compilers < 7.4 still work
ehofman
2004-01-15 14:21:31 +00:00
84fd7a49adThe emissive values just don't seem like the right thing to do. You suddenly see the dark side of the moon quite clearly, which usually isn't the case.
curt
2004-01-14 18:02:58 +00:00
24b5f05522Make the vasi lights slightly larger/brighter.
curt
2004-01-09 16:49:13 +00:00
17415424bfUse the same coloring scheme for the moon and the sun, add a bit of light reflection to the moon
ehofman
2004-01-09 10:19:00 +00:00
920c0fdb62Updates to the alpha-test animation class
ehofman
2004-01-08 10:38:29 +00:00
40414f2823Updates to the alpha-test animation class
ehofman
2004-01-08 10:25:23 +00:00
7bee5f1ab6Smarter vasi coloring.
curt
2003-12-30 07:04:05 +00:00
a43f5c8d21Track some additional data required for computing vasi/papi colors.
curt
2003-12-30 05:53:50 +00:00
8361069344Go with an all white texture for vasi/papi lights. We will vary the background color externally to change from white to red.
curt
2003-12-30 05:53:03 +00:00
c9661e2732Add a number of Metar related constants
ehofman
2003-12-27 13:41:02 +00:00
bd13cf84a1Resolve some dependency problems
ehofman
2003-12-27 09:31:02 +00:00
e54cfc002bUpdates to support sgi's MIPSpro compiler version 7.4 and newer. This also fixes a number of C++ issues where FlightGear didn't follow the standard.
ehofman
2003-12-26 13:55:09 +00:00
5aac63d9f5Parse/GC interaction fixed. Remove the OP_NEWARGS "optimization" (it wasn't).
andy
2003-12-22 19:27:51 +00:00
6a19bbee7dMelchior FRANZ: There are constructors for sg_io_exception that don't initialize the location. In this case getFormattedMessage does still output an extra line with " at" followed by ... nothing. Looks silly.
ehofman
2003-12-19 17:44:30 +00:00
2e5c4b4515Rewrite sg_geodesy. The new version is more accurate to the WGS84 standard and includes a sgCartToGeod() function which is 100% symmetric (down to the precision of a double) with sgGeodToCart().
andy
2003-12-19 02:40:33 +00:00
92a123a47dExtra i++ led to a "double skip" when parsing a \r\n pair. So a DOS file would look like it was all on one line, and a comment would skip to the end of the file.
andy
2003-12-08 16:55:50 +00:00
755173bd2eBug fixes. The priority queue wasn't handling boundary conditions at the edge of the table properly. The new code is half the size -- it *has* to be correct, right?
andy
2003-12-07 19:53:34 +00:00
27477402c9Property interpolator subsystem. A utility, primarily for Nasal scripts
andy
2003-12-05 01:49:44 +00:00
dc9c41e119Added setsize() and subvec() library functions
andy
2003-12-05 01:49:02 +00:00
3c7f9e7ba4A first attempt on detecting endianness and number of bits
ehofman
2003-12-01 18:57:32 +00:00
fbf018598eRename IRIX to irix_string in simgear/compatibility and assign "simgear/compatibility/irix_string" to STL_STRING for IRIX
ehofman
2003-12-01 18:56:53 +00:00
83b4dcb55cAdd Nasal Vs. 1.5
ehofman
2003-12-01 14:33:45 +00:00
5812571df4Attempt to fix a bug in SGSocket::read() affecting TCP style sockets.
curt
2003-11-27 13:24:26 +00:00
b1c688abe8Revert an IRIX/O2 only setting again
ehofman
2003-11-27 10:23:13 +00:00
34e2a9dc37Nasal and event manager updates from Andy Ross.
curt
2003-11-25 21:26:01 +00:00
1786692406Version 1.3 of Andy Ross's "NASAL" embedded scripting language.
curt
2003-11-25 20:16:28 +00:00
c37afce303Minor changes to logging messages (to STDOUT).
david
2003-11-24 17:41:43 +00:00
1ea99cdd4dMacOS X fixes
ehofman
2003-11-23 10:04:45 +00:00
4c1d22b8a6FIx a typo
ehofman
2003-11-21 21:56:57 +00:00
5f22c93db7Frederic Bouvier wrote: > When a c172 is on one machine, I only got segfault on an animation > not found. This animation is named ControlsGroup and I guess > that one object name referenced in this null animation no > longer exist in the .ac model. I say that because the > preceding one is analogous and works. > > So I would say the multiplayer works, except when there is a c172.
ehofman
2003-11-19 15:16:21 +00:00
13a42f1d9eChange istringstream back to a typedef so there is no need to redefine every class memeber.
ehofman
2003-11-09 08:56:09 +00:00
c4d5d85c3eSave on a number of CPU costly strcmp calls when using the blend function
ehofman
2003-11-04 13:25:23 +00:00
ea1b70191cShoot, I was trying to hunt down a bug that wasn't even caused by the sstream implementation! Back out some of the previous patches
ehofman
2003-10-20 19:53:35 +00:00
19815c3bceAnd don't forget to free up the used memory.
ehofman
2003-10-20 19:38:27 +00:00
66fb6b5a1cMake it easy on myself (and make it work as a bonus)
ehofman
2003-10-20 19:32:50 +00:00
bb002356b4Fix a stragling left over reference to metakit.
curt
2003-10-15 20:01:41 +00:00
431e78cf09Add the ability to set three levels of detail for static scenery using the property tree
ehofman
2003-09-28 08:38:48 +00:00
81b9ec50b0Fix a dependency problem
ehofman
2003-09-25 08:22:40 +00:00
e0ba803ca9A couple changes to allow separate handling of VASI/PAPI lights which generally are turned on all the time.
curt
2003-09-24 19:56:51 +00:00
7ae57483f3Fix a problem where the compiler would mix up two function declarations because the one wich has SGSubsystem in it's options list expected a const SGSubsystem, but it was called with a plain SGSubsystem
ehofman
2003-09-24 19:06:59 +00:00
d22640ef4eMove FGEventMgr and FGSubsystemMgr over to SimGear, add SGEventMgr to FlightGear's globals structre and some small code cleanups
ehofman
2003-09-24 17:19:22 +00:00
f3eeeb760fVarious tweaks to handling taxiway lighting.
curt
2003-09-23 23:06:50 +00:00
695e112039Fix a problem where the upper cloud layers are drawn with the sun punch through value
ehofman
2003-09-23 08:42:20 +00:00
133e67adb8Fix a problem where the cloud layers suddenly change color when looking towards the sun
ehofman
2003-09-22 12:32:03 +00:00
6079cd3df8Initialize some variables before using them
ehofman
2003-09-17 17:59:28 +00:00
6f4fd2dc6eFrederic Bouvier: This patch is there to correct a problem that prevent to load static objects when specifying a relative fg-root or a different, relative, fg-scenery. It appears that there is a mix between fg-root, fg-scenery and PLIB's model-dir. It has been reported on the list that users are not able to see the buildings, especially those running the win32 builds because they run 'runfgfs.bat' that set FG_ROOT=./DATA.
ehofman
2003-09-13 11:45:47 +00:00
b30eb9c00cAdd support for win32-pthreads in MSVC.NET
ehofman
2003-09-13 11:33:49 +00:00
1236d8be19Fix a problem for systems with older headers
ehofman
2003-09-12 21:24:52 +00:00
cb35ecb4b0Use default OpenGL material colors
ehofman
2003-09-09 14:33:29 +00:00