Commit Graph
100 Commits
Author SHA1 Message Date
fredb bff1584012 Geometry shader support 2010-03-30 12:07:38 +02:00
fredb d5757c4fb8 Lauri Peltonen : add the ability to generate tangent vectors for model, terrain or ocean geometry inside the effect file 2010-03-16 14:27:21 +01:00
fredb 1e6aa4b40f Precipitation inside cockpit temporary fix.
Needs a clip distance settable to take account of views and different cockpit size.
2010-03-16 14:21:45 +01:00
fredb 133fa09261 Update version numbers 2010-02-05 00:23:26 +01:00
fredb 3dcffc7df8 MINGW patch from Benoît Laniel 2010-01-25 14:35:45 +01:00
fredb b121277142 Update MSVC 9 projects 2010-01-25 14:35:26 +01:00
fredb d283fcf7b4 Update SimGear version 2010-01-25 14:35:24 +01:00
fredb e22cf106c2 Change version in comment 2010-01-21 06:13:06 +01:00
fredb 5ffb270ec1 Update simgear config.h version 2010-01-21 06:12:55 +01:00
fredb f85f3b0f25 Update MSVC 9 project 2010-01-21 06:12:40 +01:00
fredb e7ec83d626 Win32 fixes 2010-01-21 06:12:30 +01:00
fredb 0c303389d6 Compile under MSVC9 2009-08-09 23:56:10 +02:00
fredb 7e7d877874 Fix case typo 2009-07-27 23:47:15 +02:00
fredb 57ccb6fd6b Suppress warnings 2009-07-27 23:47:15 +02:00
fredb efa2876e29 Compile latest SimGear under MSVC9 2009-07-27 23:47:15 +02:00
fredb f8e475cd34 Refactor GLX only debug code 2009-07-15 12:50:49 +02:00
fredb a05e063949 Compile when not GLX 2009-07-12 00:52:07 +02:00
fredb e2f6632fee Support MSVC 64-bit architecture 2009-07-02 08:51:12 +02:00
fredb 5c5c583dcc Add MSVC90 (VS2008) project files 2009-07-02 08:51:12 +02:00
fredb 0d8d5c02d0 Update MSVC 7.1 projects - Put PLIB and FLTK in 3rdParty 2009-07-02 08:51:12 +02:00
fredb a8d1c44408 Remove unmaintained, outdated and misleading project files. Use VC7.1 projects instead 2009-07-02 08:51:12 +02:00
fredb 78b4318c34 Suppress warnings 2009-07-02 08:51:12 +02:00
fredb b47031a099 Win32 fix 2009-07-02 08:51:12 +02:00
fredb 33f7903aeb Update MSVC 7.1 projects 2009-06-25 10:13:02 +02:00
fredb f3c2740917 Win32 fix 2009-06-25 10:13:02 +02:00
fredb f4a527c57c Add a simple class to subdivide Bezier curves 2009-06-15 10:23:22 +02:00
fredb c491baff0e Remove unused variable 2009-06-15 10:23:21 +02:00
fredb 030d044d03 Win32 fix 2009-06-11 15:55:12 +02:00
fredb e1f7a1e0a0 Stuart Buchanan :
This patch changes the shader so the diffuse light element is applied based on the co-linearity of the light vector and the viewing vector. I think this makes sense, as the tree textures don't represent a surface themselves.
2009-05-02 00:40:09 +02:00
fredb c2c4cad753 Compile under windows 2009-03-18 07:53:50 +01:00
fredb c46cfb5d47 Win32 fix 2009-03-05 10:32:06 +01:00
fredb 0c1d96b749 Update MSVC 7.1 projects - Add the BVH library 2009-03-05 10:32:06 +01:00
fredb 9b67f52d56 SGMatrix<T>::preMultTranslate should return self ( as postMultTranslate do ) 2009-03-05 10:32:06 +01:00
fredb d37907d35d BVHLineSegmentVisitor::setLineSegmentEnd doesn't return anything 2009-03-05 10:32:05 +01:00
fredb fdd3c77298 Fix to compile with MSC 2009-02-22 23:49:45 +01:00
fredb 3ff059848c Update MSVC 7.1 projects - Remove pthreads dependency 2009-02-04 11:07:27 +01:00
fredb 800ad40c4c Csaba/Jester : fix the material animation and display night textures 2009-01-13 10:37:38 +01:00
fredb 4d4ac7ea24 fix end of file 2009-01-12 13:13:04 +01:00
fredb 119651482d ignore generated files 2009-01-12 13:12:50 +01:00
fredb 69871b15ff Stuart Buchanan :
Attached is yet another 3D clouds patch, to fix the following:
1) The 3D clouds were not modified by the cloud coverage, due to some problems with osg::Switch
2) METAR changes to cloud coverage were not obeyed.
3) Making changes via the Cloud dialog had no effect unless 3D clouds were toggled.
4) Cloud cover was too sparse.
5) 3D Stratus clouds caused performance issues on some hardware (fixed by removing 3D stratus from cloudlayers.xml - it will now be a 2D layer).
2008-12-19 07:39:09 +00:00
fredb 53f7743678 Stuart :
the 3D clouds now respect changes to the environment caused by updated METAR etc.

It also increases the AlphaFunc as suggested by Tim.
2008-12-14 18:47:30 +00:00
fredb 15893bc558 Csaba/Jester : fix a problem with tex transform animation 2008-12-12 20:02:44 +00:00
fredb 73b974f1b5 Csaba/Jester : fix a problem with material animation 2008-12-12 19:57:25 +00:00
fredb 0e7bdc208b Print the name of the file generating an OpenAL error 2008-12-12 07:41:44 +00:00
fredb 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.
2008-12-11 08:24:35 +00:00
fredb 4da58e8846 Update MSVC 7.1 projects. Add Boost 2008-12-11 08:23:37 +00:00
fredb 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.
2008-12-06 23:02:42 +00:00
fredb b38e6d8bf3 Ugly hack to fix a memory corruption problem 2008-12-06 23:01:24 +00:00
fredb b601cdb6a5 Stuart Buchanan :
This provides the following enhancements & bug fixes
- Fix the chequer-board bug.
- Add proper cloud coverage function - so scattered clouds are now truly scattered.
- Add real-time control for visibility range.
- Use a limited set of clouds rather than generating a completely new Geode for each cloud. This saves sorting and display time.
- Add controls to Rendering dialog to allow fine-tuning of the number of sprites, cloud visibility and the number of different types of cloud.
- Add some variance to the sort back-off to avoid all clouds being sorted at the same time.
- Pack attributes into vectors for performance
- Re-order the cloud type determination code so that if a cloud layer could either be stratus or cumulus, cumulus is used.
- Lowered the cloud level in the standard cloud configuration slightly so a cumulus layer is generated rather than stratus.

These last two mean that you should see some 3D cumuli if disabling real weather fetch.

My thanks to Yon Uriarte for his help with performance work.
2008-12-04 20:56:03 +00:00
fredb 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.
2008-11-30 23:06:18 +00:00
fredb 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.

Well, the cause was a bug in my code, but it didn't expose itself until we moved
to multiple cameras. The attached patch fixes the problem.

I've also put in a new heuristic to improve the frame-rate. Clouds that are already sorted
are likely to still be sorted in subsequent frames. Therefore I've put in a back-off
mechanism for the bubble-sort pass. This should mean that if you stay completely
stationary, once the clouds become sorted they will eventually only perform a
bubble sort pass every 128 frames.
2008-11-26 07:28:10 +00:00
fredb 8303e30033 Stuart :
> Warning: detected OpenGL error 'valeur non valide' after RenderBin::draw(,)

Fixed in the patch below. For some reason the shader didn't like index 16 being used...

The patch also fixes the chequer-board effect that was causing very sparse cloud cover.
2008-11-24 20:26:12 +00:00
fredb 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.
2008-11-23 12:14:56 +00:00
fredb 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.
2008-11-06 21:58:07 +00:00
fredb ad6129816d 3D clouds from Stuart Buchanan. Need a recent driver update, --enable-clouds3d option and a Weather Scenario to show up 2008-10-26 09:37:13 +00:00
fredb 8174005ac8 MINGW patch by Csaba Halasz 2008-09-28 08:11:10 +00:00
fredb 3edcbc3b99 Use a more relevant library name 2008-08-31 18:39:49 +00:00
fredb 5a1cc8745e Update version 2008-08-31 18:35:02 +00:00
fredb 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 2008-08-02 11:31:47 +00:00
fredb aa07b5bdd8 GL/wgl.h never existed, and a glx equivalent is not needed 2008-07-27 18:04:13 +00:00
fredb ff72b68731 Remove unneeded inclusions of windows.h, GL.h and GLU.H 2008-07-27 15:15:33 +00:00
fredb 433be0e46b Maybe a more portable way to do it 2008-07-25 21:33:54 +00:00
fredb 900607034e Compile again with MSVC 2008-07-25 21:27:46 +00:00
fredb cdff0fceea Update MSVC 7.1 projects 2008-06-08 16:45:13 +00:00
fredb 1a498348ee Fix non threadsafe code 2008-06-01 17:25:05 +00:00
fredb c6b03555f7 Report abnormal condition 2008-05-31 12:08:17 +00:00
fredb bb1a270532 Update MSVC 7.1 projects 2008-05-31 12:06:30 +00:00
fredb 69ea4b846a Fix a problem in loading models with paged LOD in some circunstances ( debug with MSVC for instance ) 2008-05-31 12:05:11 +00:00
fredb 373a0e4a7d Use bool instead of int to represent boolean values 2008-05-31 10:02:43 +00:00
fredb ec72b46dcb Win32 fix 2008-05-15 06:19:15 +00:00
fredb 0c06bfd3d9 Update MSVC 7.1 projects 2008-04-23 22:09:23 +00:00
fredb 5e4c4725bc Update MSVC 7.1 projects 2008-04-14 06:27:26 +00:00
fredb bb3b606820 Allows to load submodels with path relative to current model path.
Submodel path must be prefixed by ./ otherwise path is relative to fg_root ( current behavior )
2008-04-02 22:25:12 +00:00
fredb bd19899bbc Update MSVC 7.1 projects 2008-03-22 11:39:01 +00:00
fredb b69753fb76 Win32 fix 2008-03-22 11:38:50 +00:00
fredb 1f9e954610 Update MSVC 7.1 projects 2008-03-09 22:09:52 +00:00
fredb 49b5c2058d Initialize variables before using them 2008-03-02 16:49:07 +00:00
fredb 620e71e800 Update MSVC 7.1 projects 2008-02-28 21:25:44 +00:00
fredb edee4b3fe5 Update MSVC 7.1 projects 2008-01-17 21:41:48 +00:00
fredb 701c4bcf27 Avoid spitting gazillion 'Cannot find image file "" ' message on the console while loading random objects 2008-01-12 08:50:21 +00:00
fredb 65d0ee126a Update MSVC 7.1 projects 2008-01-04 21:45:41 +00:00
fredb 4db6435090 Remove warnings 2008-01-04 21:45:14 +00:00
fredb 182ee9d7e4 Update MSVC 7.1 projects 2007-12-18 22:25:24 +00:00
fredb 60f0003436 Update MSVC 7.1 projects 2007-12-02 12:28:30 +00:00
fredb 671f3f5890 Update MSVC 7.1 projects 2007-08-12 13:40:16 +00:00
fredb 9bae445624 Fix a typo 2007-08-12 13:32:42 +00:00
fredb 4477867ef4 Update MSVC 7.1 projects 2007-06-16 16:14:23 +00:00
fredb e696c884dc MSVC 7 compilation 2007-06-16 16:13:29 +00:00
fredb 3824f064cd Update MSVC 7.1 projects 2007-04-03 11:35:19 +00:00
fredb cba6db752b Avoid potential memory leak problems when exceptions are thrown by using reference objects 2007-04-03 11:25:07 +00:00
fredb aacdcad529 restore 'double checked locking' 2007-01-29 08:19:13 +00:00
fredb 39f683b272 Ensure a reference on the cube map texture is always held 2007-01-26 20:30:02 +00:00
fredb d534cf6f02 Better fix for the constant scale factor problem 2007-01-21 11:15:36 +00:00
fredb dd4326f7c4 Support constant scaling factor 2007-01-21 10:33:34 +00:00
fredb 40aecd688e Don't segfault when dir is empty 2007-01-16 21:34:18 +00:00
fredb a0af7f0524 Update MSVC 7.1 project file and fix win32 compilation 2007-01-09 21:58:04 +00:00
fredb 108689661f Add a prototype simgear_config.h for MSVC 7.1 and a rule to build it. 2007-01-06 17:01:58 +00:00
fredb d3e00dba8e Add a prototype simgear_config.h for MSVC 7.1 and a rule to build it.
At Olaf requests, add MSVC 8 specific symbols to remove pedantic warnings
2007-01-06 16:52:50 +00:00
fredb fcd33e5035 Remove redundant directory ( projects as a whole is already there ) 2007-01-06 16:47:57 +00:00
fredb 6a0bb18fca Refresh MSVC6 project file 2007-01-06 14:45:21 +00:00