94942d1ac4Add 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
b0a5b54949Fix test-program linkage now sgmath depends on sgstructure.
jmt
2008-12-26 12:27:32 +00:00
ac57eab8acFix 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
74a4144193compilation 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
f4ec02a592James TURNER: make the index of the current waypoint available
mfranz
2008-12-18 22:51:58 +00:00
53f7743678Stuart : the 3D clouds now respect changes to the environment caused by updated METAR etc.
fredb
2008-12-14 18:47:30 +00:00
15893bc558Csaba/Jester : fix a problem with tex transform animation
fredb
2008-12-12 20:02:44 +00:00
73b974f1b5Csaba/Jester : fix a problem with material animation
fredb
2008-12-12 19:57:25 +00:00
0e7bdc208bPrint the name of the file generating an OpenAL error
fredb
2008-12-12 07:41:44 +00:00
e0a07b7a92Stuart : - 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
2d77178ba3Stuart 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
b38e6d8bf3Ugly hack to fix a memory corruption problem
fredb
2008-12-06 23:01:24 +00:00
2803154213Stuart: 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
ae5297e6d7logstream improvements from Yon Uriarte
timoore
2008-11-29 00:17:29 +00:00
fa7490fb38Stuart: > 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
bad80521a8Track time in TileCache; assign new tiles the current time
timoore
2008-11-24 22:08:31 +00:00
8303e30033Stuart : > Warning: detected OpenGL error 'valeur non valide' after RenderBin::draw(,)
fredb
2008-11-24 20:26:12 +00:00
27de1e271eStuart 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
98cecfe940Templates for interacting with OSG objects
timoore
2008-11-21 14:48:15 +00:00
2e65538fb5Template functions and overloaded functions for accessing property values.
timoore
2008-11-18 22:16:58 +00:00
0b8b6ac56aStuart 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
6afd7e1a38enable world coordinate particle fix
timoore
2008-10-30 23:51:41 +00:00
91e22c1fb3Tidy up for a source code "snapshot" release.
curt
2008-10-30 17:51:00 +00:00
ad6129816d3D 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
409db9d7efFix a few spelling errors.
curt
2008-10-23 18:46:55 +00:00
2ccd58e917fix 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
7585ad430aadd global switch for particle systems
mfranz
2008-10-17 21:15:58 +00:00
c105c5a449allow 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
54065b59a1Move 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
f9250ae522Syd Adams: Replace rgb with png.
durk
2008-10-14 05:04:43 +00:00
2f8621ed3ds/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
98a3e7cffaif 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
d7f2966216Yeah, I really shouldn't be in the lexer
andy
2008-09-30 21:52:44 +00:00
8687b214e7Another lexer fix
andy
2008-09-30 20:19:01 +00:00
f5f1f0da8eFix broken lex.c checkin
andy
2008-09-30 19:06:34 +00:00
818359bfd0Fixes 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
8174005ac8MINGW patch by Csaba Halasz
fredb
2008-09-28 08:11:10 +00:00
0180cae8c3Fix 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
dd1ea541ecSync 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
19aac5b14cKeep non-local particles in a Z-up frame that is periodically moved.
timoore
2008-09-11 10:19:05 +00:00
f3f8a211cdMake 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
3edcbc3b99Use a more relevant library name
fredb
2008-08-31 18:39:49 +00:00
5a1cc8745eUpdate version
fredb
2008-08-31 18:35:02 +00:00
12495547c4Don'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
e55f55cd3eFix 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
29aad066f0pointers in Particles object should be ref_ptr
timoore
2008-08-11 08:32:13 +00:00
74d3bdc68cReturn eof after a number of reptetitions of file input.
timoore
2008-08-07 22:24:01 +00:00
7f9b3a8666Update 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
426f6de16ffinal fixes for SG_USING_STD removal
ehofman
2008-07-29 08:25:17 +00:00
cf19b81dd4forward declare osg::DrawElementsUShort for real
timoore
2008-07-29 02:54:48 +00:00
d4c7e95092Replace SG_USE_STD() by using std::
ehofman
2008-07-28 07:52:13 +00:00
aa07b5bdd8GL/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
ff72b68731Remove unneeded inclusions of windows.h, GL.h and GLU.H
fredb
2008-07-27 15:15:33 +00:00
433be0e46bMaybe a more portable way to do it
fredb
2008-07-25 21:33:54 +00:00
900607034eCompile again with MSVC
fredb
2008-07-25 21:27:46 +00:00
733e6fa14fReduce 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
cd72eb20c6Attached 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
d754e616a5remove a workaround for the C++ / stdlibary bug which existed aeons ago on Mac.
ehofman
2008-07-25 08:34:15 +00:00
d613e0a488Patch to remove macintosh and MWERKS from Simgear.
ehofman
2008-07-24 19:16:50 +00:00
942fa53ed9Add repeat option to SGFile.
timoore
2008-07-19 16:01:20 +00:00
1729841083Eliminate empty default constructor for SGReaderWriterBTGOptions
timoore
2008-07-19 16:00:58 +00:00
b20b3229bfadd <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
77fb93bb61update library version requirements
mfranz
2008-05-19 15:17:55 +00:00