Commit Graph

  • 94942d1ac4 Add some syntactic helpers to allow distance/course to be queried between two geodetic points. This still entails a full _geo_inverse_wgs_84 call, but makes call sites neater. jmt 2008-12-26 12:08:28 +00:00
  • b0a5b54949 Fix test-program linkage now sgmath depends on sgstructure. jmt 2008-12-26 12:27:32 +00:00
  • ac57eab8ac Fix a potential crash when OSG is misconfigured, and an appropriate image loading plugin cannot be found. jmt 2008-12-26 11:42:04 +00:00
  • 74a4144193 compilation fix: <cstring> for strcmp() mfranz 2008-12-22 18:01:34 +00:00
  • 5c44cb0f01 - shininess is in the rage 0..128 - restore fg/plib compatibility (there is/was no <shininess> group) (we may want to change that in the (near?) future, though) mfranz 2008-12-21 15:01:11 +00:00
  • c044d711ef Documentation update regarding OpenAL and OSG. SIMGEAR_1_9_0 durk 2008-12-20 09:10:43 +00:00
  • f2132f6a7d Attempt to sort out the version number mess in preparation for a 1.9.0 release. curt 2008-12-19 20:39:59 +00:00
  • 69871b15ff Stuart Buchanan : fredb 2008-12-19 07:39:09 +00:00
  • f4ec02a592 James TURNER: make the index of the current waypoint available mfranz 2008-12-18 22:51:58 +00:00
  • 53f7743678 Stuart : the 3D clouds now respect changes to the environment caused by updated METAR etc. fredb 2008-12-14 18:47:30 +00:00
  • 15893bc558 Csaba/Jester : fix a problem with tex transform animation fredb 2008-12-12 20:02:44 +00:00
  • 73b974f1b5 Csaba/Jester : fix a problem with material animation fredb 2008-12-12 19:57:25 +00:00
  • 0e7bdc208b Print the name of the file generating an OpenAL error fredb 2008-12-12 07:41:44 +00:00
  • e0a07b7a92 Stuart : - Removes the cloud type re-use code - I think they aren't worth the graphical artefacts that they cause in light of Tim's improvements - Changes the transparency of the clouds. Previously, the clouds were transparent at 0m distance, opaque at 200m, then gradually more transparent to the fog limits. This meant they were generally quite transparent. Now, they are opaque from 200m to 15km, then become transparent at 20km. A side effect of this is that the current textures could probably benefit from being made slightly transparent to improve the blending of the sprites against each other. fredb 2008-12-11 08:24:35 +00:00
  • 4da58e8846 Update MSVC 7.1 projects. Add Boost fredb 2008-12-11 08:23:37 +00:00
  • 966b9e5c2b Use a singleton Fog attribute for all 3D clouds. timoore 2008-12-10 22:39:48 +00:00
  • 1625192c81 Use StateAttributeFactory for CullFace and ShadeModel attributes timoore 2008-12-10 22:39:23 +00:00
  • c5e8c6603c Use Boost singleton template for our singletons timoore 2008-12-10 22:39:02 +00:00
  • 37e541d326 Render cloud layers with face culling timoore 2008-12-10 22:38:34 +00:00
  • 862a827fe6 Add cullFaceFront as a state attribute to the StateAttributeFactory timoore 2008-12-10 22:38:14 +00:00
  • b96c5c9e4b Render sky with depth test off. timoore 2008-12-10 22:37:52 +00:00
  • f7e91f1f08 Finalizing the preparation of SimGear-1.99.5-rc2. Release-1999_05_01 durk 2008-12-10 18:20:36 +00:00
  • 2d77178ba3 Stuart Buchanan : - Replaces simple shader attributes with vectors (this was missed out of the last patch by mistake) - Includes Yon's Fog update code (Thanks!) - Fixes a bug since 1.0 where --enable-real-weather-fetch stopped the other weather scenarios from working. fredb 2008-12-06 23:02:42 +00:00
  • b38e6d8bf3 Ugly hack to fix a memory corruption problem fredb 2008-12-06 23:01:24 +00:00
  • b601cdb6a5 Stuart Buchanan : fredb 2008-12-04 20:56:03 +00:00
  • 2803154213 Stuart: Attached is another clouds patch. This does the following: 1) Puts the 3D clouds in a cloud rendering bin, to reduce the transparent edge problem. Viewing 3d clouds against a 2D layer _above_ it now blends correctly. There is still a problem when viewing a layer below the 3d clouds, and I'm not sure if/how I'll manage to solve that. Thanks to Tim for pointing me at the correct code (again). 2) Performance improvement by calculating the Bounding box when the cloud is generated rather than ever time it is requested. fredb 2008-11-30 23:06:18 +00:00
  • ae5297e6d7 logstream improvements from Yon Uriarte timoore 2008-11-29 00:17:29 +00:00
  • fa7490fb38 Stuart: > Something has changed in the environment manager which means that clouds > generateion is now inconsistent. I'm still tracking it down, as my recent > changes shouldn't have affected this. fredb 2008-11-26 07:28:10 +00:00
  • bad80521a8 Track time in TileCache; assign new tiles the current time timoore 2008-11-24 22:08:31 +00:00
  • 8303e30033 Stuart : > Warning: detected OpenGL error 'valeur non valide' after RenderBin::draw(,) fredb 2008-11-24 20:26:12 +00:00
  • 27de1e271e Stuart Buchanan : Attached is a small patch for 3D clouds. It provide the following: 1) Proper spherical distribution of sprites (previously they were distributed cylindrically - whoops) 2) Better shading, so the bottom of the cloud is darker than the top. 3) Fixed a couple of texture sizing bugs. fredb 2008-11-23 12:14:56 +00:00
  • 98cecfe940 Templates for interacting with OSG objects timoore 2008-11-21 14:48:15 +00:00
  • 2e65538fb5 Template functions and overloaded functions for accessing property values. timoore 2008-11-18 22:16:58 +00:00
  • e6371cbf9c Manuel Massing: curt 2008-11-09 15:39:54 +00:00
  • 0b8b6ac56a Stuart Buchanan : It fixes the following issues (to a greater or lesser extent): 1) Performance. Quad trees used to improve culling, and the sprites are placed on the surface of a sphere rather than randomly throughout the cloud, requiring fewer textures. This saves about 5-10fps on my machine. 2) Disabled 3D clouds have no performance impact. Previously they were still in the scenegraph. Now they are removed. 3) Clouds are now loaded on start-up, and don't require the scenario to be changed, they also work with METAR. 4) The cloud field is shifted as you travel. There's a small bug in that the clouds "jump" as you reach the edge of the field. 5) Iterative sorting of sprites. This doesn't appear to solve the alpha blending problem completely, but may help a bit. fredb 2008-11-06 21:58:07 +00:00
  • cc17cc4af7 Respect precipitation-enable property timoore 2008-10-31 09:46:23 +00:00
  • 6afd7e1a38 enable world coordinate particle fix timoore 2008-10-30 23:51:41 +00:00
  • 91e22c1fb3 Tidy up for a source code "snapshot" release. curt 2008-10-30 17:51:00 +00:00
  • ad6129816d 3D clouds from Stuart Buchanan. Need a recent driver update, --enable-clouds3d option and a Weather Scenario to show up fredb 2008-10-26 09:37:13 +00:00
  • 409db9d7ef Fix a few spelling errors. curt 2008-10-23 18:46:55 +00:00
  • 2ccd58e917 fix regression: sgLoad3DModel_internal should not make assumptions about the type of SGModelData. This *can* have to do with Nasal, but doesn't have to. That's entirely that class instance's business. mfranz 2008-10-18 18:44:36 +00:00
  • 7585ad430a add global switch for particle systems mfranz 2008-10-17 21:15:58 +00:00
  • c105c5a449 allow to modify the XML animation config of a loaded submodel by defining an <overlay> branch, which is copied over the submodel's properties before the animations are evaluated mfranz 2008-10-14 13:01:01 +00:00
  • 54065b59a1 Move omit-node part from startElement to endElement to allow nodes of this type to have children. We have to save the omit state on the stack for that. mfranz 2008-10-14 11:03:39 +00:00
  • f9250ae522 Syd Adams: Replace rgb with png. durk 2008-10-14 05:04:43 +00:00
  • 2f8621ed3d s/multiplayer/multiplay/, as this seems to be the slightly more official version (--multiplay option, /sim/multiplay/ properties etc.) mfranz 2008-10-10 09:48:03 +00:00
  • 98a3e7cffa if a model XML file contains a <multiplayer> block, copy its contents to the model's property root (/ai/models/multiplayer[*]) mfranz 2008-10-09 22:20:33 +00:00
  • d7f2966216 Yeah, I really shouldn't be in the lexer andy 2008-09-30 21:52:44 +00:00
  • 8687b214e7 Another lexer fix andy 2008-09-30 20:19:01 +00:00
  • f5f1f0da8e Fix broken lex.c checkin andy 2008-09-30 19:06:34 +00:00
  • 818359bfd0 Fixes for bugs shaken out in the recent push: die properly for nil indexes in slices. Fix string conversion issue with bare "+" and "-". Fix lexing of exponent expressions such that "1e" is not a number. andy 2008-09-30 16:48:36 +00:00
  • 8174005ac8 MINGW patch by Csaba Halasz fredb 2008-09-28 08:11:10 +00:00
  • 0180cae8c3 Fix parsing for degenerate cases like a[,] a[:] and {:}. The slicing syntax exposed the low-level generators to some new cases. andy 2008-09-26 19:18:19 +00:00
  • dd1ea541ec Sync with Nasal upstream (Melchior already had a chance to test this, so hopefully not too much breaks). New syntax features: andy 2008-09-26 18:22:12 +00:00
  • 19aac5b14c Keep non-local particles in a Z-up frame that is periodically moved. timoore 2008-09-11 10:19:05 +00:00
  • f3f8a211cd Make sure the compiler is aware that SGModelData a child of osg::Referenced, now gcc-3.3 will compile. ehofman 2008-09-04 08:52:47 +00:00
  • 3edcbc3b99 Use a more relevant library name fredb 2008-08-31 18:39:49 +00:00
  • 5a1cc8745e Update version fredb 2008-08-31 18:35:02 +00:00
  • 12495547c4 Don't use osgDB::SharedStateManager::share in SGLoadTexture2D timoore 2008-08-29 07:39:05 +00:00
  • ff654ab094 - Update SimGear.dsp - Assign an arbitrary prerelease version number - Fix a "make dist" problem. curt 2008-08-28 17:52:43 +00:00
  • e55f55cd3e Fix typing error with fgetc in readln(). On most boxes, this would cause a spurious EOF when there was a 0xff in the stream. But on PPC, char is unsigned (for reasons known only to IBM) and it would loop forever. andy 2008-08-25 16:53:34 +00:00
  • 29aad066f0 pointers in Particles object should be ref_ptr timoore 2008-08-11 08:32:13 +00:00
  • 74d3bdc68c Return eof after a number of reptetitions of file input. timoore 2008-08-07 22:24:01 +00:00
  • 7f9b3a8666 Update MSVC 7.1 projects - Adapt to OSG 2.6.0-rc1 : location of header files should now be searched in the install directory, here ..\..\..\install\msvc71\OpenSceneGraph\include fredb 2008-08-02 11:31:47 +00:00
  • 426f6de16f final fixes for SG_USING_STD removal ehofman 2008-07-29 08:25:17 +00:00
  • cf19b81dd4 forward declare osg::DrawElementsUShort for real timoore 2008-07-29 02:54:48 +00:00
  • d4c7e95092 Replace SG_USE_STD() by using std:: ehofman 2008-07-28 07:52:13 +00:00
  • aa07b5bdd8 GL/wgl.h never existed, and a glx equivalent is not needed fredb 2008-07-27 18:04:13 +00:00
  • c7cbb22667 - remove the SG_GLxxxx_H #defines, since OSG provides its own versions - this exposed a bizarre issue on Mac where dragging in <AGL/agl.h> in extensions.hxx was pulling in all of Carbon to the global namespace - very scary. As a result, I now need to explicitly include CoreFoundation in fg_init.cxx. - change SG_USING_STD(x) to using std::x ehofman 2008-07-27 16:10:36 +00:00
  • ff72b68731 Remove unneeded inclusions of windows.h, GL.h and GLU.H fredb 2008-07-27 15:15:33 +00:00
  • 433be0e46b Maybe a more portable way to do it fredb 2008-07-25 21:33:54 +00:00
  • 900607034e Compile again with MSVC fredb 2008-07-25 21:27:46 +00:00
  • 733e6fa14f Reduce compiler.h to almost nothing (but it's worth keeping around I think, for the MSVC and MipsPro warning stuff). ehofman 2008-07-25 18:35:40 +00:00
  • cd72eb20c6 Attached patches remove BORLANDC, and hence SG_MATH_EXCEPTION_CLASH and SG_INCOM PLETE_FUNCTIONAL from SimGear and FlightGear. ehofman 2008-07-25 10:39:20 +00:00
  • d754e616a5 remove a workaround for the C++ / stdlibary bug which existed aeons ago on Mac. ehofman 2008-07-25 08:34:15 +00:00
  • d613e0a488 Patch to remove macintosh and MWERKS from Simgear. ehofman 2008-07-24 19:16:50 +00:00
  • 942fa53ed9 Add repeat option to SGFile. timoore 2008-07-19 16:01:20 +00:00
  • 1729841083 Eliminate empty default constructor for SGReaderWriterBTGOptions timoore 2008-07-19 16:00:58 +00:00
  • 315d83bc88 s/getChild/getNode/ (otherwise "start/size" wouldn't work) mfranz 2008-07-12 15:31:29 +00:00
  • 223aa0ccd5 - XML interface changes: * condition at top level * <start|end>/<color|size> hierarchy * wind/gravity -> bool * rename some properties (rotspeed -> rotation-speed, etc.) * unit suffixes - remove redundant code - warnings-- mfranz 2008-07-12 14:06:11 +00:00
  • 38494a48d8 fix SGPropertyNode::LAST_USED_ATTRIBUTE mfranz 2008-07-10 10:33:32 +00:00
  • 38456bddb5 write-protection warning: use simplified path mfranz 2008-07-09 17:31:55 +00:00
  • b8a12b0e5b let readProperties() refuse to overwrite write-proteced properties mfranz 2008-07-09 16:17:52 +00:00
  • 2d37c0aa42 remove redundant #defines (they are already in compiler.h) mfranz 2008-06-22 18:07:50 +00:00
  • c8c693db53 From Benoit Laniel: replace SG threading constructs with those from OpenThreads timoore 2008-06-12 08:14:40 +00:00
  • cdff0fceea Update MSVC 7.1 projects fredb 2008-06-08 16:45:13 +00:00
  • 3b6f47aea1 warnings-- mfranz 2008-06-07 14:45:22 +00:00
  • 7bc37651c3 add OSGVersion.hxx to VC7.1 project file timoore 2008-06-02 20:26:07 +00:00
  • 4fe43c3e50 OSG DatabasePager interface change in 2.5.1 timoore 2008-06-02 20:22:16 +00:00
  • 0826b7c3ca Replace header files istream and ostream with iosfwd timoore 2008-06-02 20:21:50 +00:00
  • d219c5c4c6 Don't include <iostream> and "using" declarations in header files timoore 2008-06-02 20:21:27 +00:00
  • 1a498348ee Fix non threadsafe code fredb 2008-06-01 17:25:05 +00:00
  • c6b03555f7 Report abnormal condition fredb 2008-05-31 12:08:17 +00:00
  • bb1a270532 Update MSVC 7.1 projects fredb 2008-05-31 12:06:30 +00:00
  • 69ea4b846a Fix a problem in loading models with paged LOD in some circunstances ( debug with MSVC for instance ) fredb 2008-05-31 12:05:11 +00:00
  • 373a0e4a7d Use bool instead of int to represent boolean values fredb 2008-05-31 10:02:43 +00:00
  • f4f5ab2392 xmlsound: warning-- mfranz 2008-05-21 14:51:39 +00:00
  • b20b3229bf add <delay-sec> parameter that defines how many seconds after triggering the sound should be played (default: 0) mfranz 2008-05-21 14:47:06 +00:00
  • 77fb93bb61 update library version requirements mfranz 2008-05-19 15:17:55 +00:00
  • ec72b46dcb Win32 fix fredb 2008-05-15 06:19:15 +00:00