mfranz
ce2a6cfe5c
Csaba HALASZ: set _arg even if there's no <command> (crash fix)
2009-01-28 07:46:31 +01:00
Tim Moore
31d9eaf54c
Use osg::Geometry code to draw trees ourselves.
...
This reverts back in the direction of Yon's original patch: the model is
drawn within ShaderGeometry::drawImplementation. This saves a lot of memory
over the previous approach of creating a PrimitiveSet for each model.
2009-01-28 07:43:09 +01:00
Tim Moore
781c445d14
Merge branch 'topic/modelopt' into next
2009-01-23 23:27:48 +01:00
Tim Moore
26a416399f
Merge branch 'topic/yontree' into next
2009-01-23 23:27:37 +01:00
Tim Moore
f7dc7f039e
QuadTreeBuilder: create leaves on demand
...
This avoids lots of empty leaves.
2009-01-23 19:30:29 +01:00
Tim Moore
3c74fea087
Rewrite ShaderGeometry to use display lists and OSG primitives.
...
Based on a patch from Yon Uriarte.
Eliminate _trees list from ShaderGeometry
Use the position and scale values that are already available.
2009-01-23 19:29:18 +01:00
Tim Moore
be0635bfd3
Optimize empty groups from .ac models
...
The OSG optimizer seems to have changed since this work was originally done.
2009-01-23 16:11:23 +01:00
Tim Moore
6723ef95c2
Merge branch 'maint' into next
2009-01-19 00:13:07 +01:00
Tim Moore
1a8fd62680
Protect against division by zero in QuadTreeBuilder
...
This could only happen when there's one leaf in the tree, or all the objects
happen to have the same position. Noticed by Csaba Halaz
2009-01-19 00:04:59 +01:00
Tim Moore
8b57ed46b1
Sort cloud sprites using std::sort, based on projected Z.
...
A "cleanup" of cloud sorting.
2009-01-16 00:37:40 +01:00
Tim Moore
25c08e56c2
Merge branch 'foo' into next
2009-01-15 22:52:11 +01:00
jmt
0f148b6ab6
Fix linkage of test programs with OpenThreads.
2009-01-15 22:49:00 +01:00
jmt
47575fe357
Commit Benoit Laniel's patch which converts more SimGear pieces to use
...
OpenThreads primitives directly.
2009-01-15 22:49:00 +01:00
jmt
7c14453b5a
Since we're now sure 1.9.1 will not be released from trunk, here's Yon
...
Uriarte's patch to convert SGReferenced over to OpenThread's atomic int.
2009-01-15 22:49:00 +01:00
Tim Moore
a47d5536fa
Merge branch 'maint' into next
2009-01-14 22:34:20 +01:00
Tim Moore
db8f7f21e8
Remove OptionsPusher and manipulation of osgDB dataFilePathList.
...
The bug it worked around has been fixed in the OSG ac3d loader, and changing
the path list has unpleasant multithreading implications.
2009-01-14 22:13:12 +01:00
Tim Moore
3c312c55f1
Merge branch 'maint' into next
2009-01-14 12:13:44 +01:00
Tim Moore
2d11419cba
SGPropertyNode must increment / decrement the reference counter in an aliased
...
node.
From Csaba Halász.
2009-01-14 12:10:23 +01:00
Tim Moore
07a4508944
Merge branch 'topic/mat-anim' into next
2009-01-13 22:58:45 +01:00
Tim Moore
62913739bb
Merge branch 'maint' into next
2009-01-13 22:52:19 +01:00
Tim Moore
55e9d8d944
SGMaterialAnimation: Don't install an update callback if values are static
2009-01-13 15:35:15 +01:00
Tim Moore
a9439d58c7
SGMaterialAnimation: factor out update of osg::Material
2009-01-13 13:15:34 +01:00
fredb
800ad40c4c
Csaba/Jester : fix the material animation and display night textures
2009-01-13 10:37:38 +01:00
Tim Moore
62864637a3
Merge branch 'maint' into next
2009-01-12 13:14:31 +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
timoore
ecf0a1a736
Fix include path
2009-01-08 23:06:23 +01:00
jmt
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.
2009-01-08 23:05:12 +01:00
jmt
b0a5b54949
Fix test-program linkage now sgmath depends on sgstructure.
2009-01-02 23:52:46 +01:00
jmt
ac57eab8ac
Fix a potential crash when OSG is misconfigured, and an appropriate image
...
loading plugin cannot be found.
2008-12-26 11:42:04 +00:00
mfranz
74a4144193
compilation fix: <cstring> for strcmp()
2008-12-22 18:01:34 +00:00
mfranz
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)
2008-12-21 15:01:11 +00:00
durk
c044d711ef
Documentation update regarding OpenAL and OSG.
SIMGEAR_1_9_0
2008-12-20 09:10:43 +00:00
curt
f2132f6a7d
Attempt to sort out the version number mess in preparation for a 1.9.0 release.
2008-12-19 20:39:59 +00: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
mfranz
f4ec02a592
James TURNER: make the index of the current waypoint available
2008-12-18 22:51:58 +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
timoore
966b9e5c2b
Use a singleton Fog attribute for all 3D clouds.
...
Don't update this Fog with any kind of update callback; instead, update from
the sky repaint method.
2008-12-10 22:39:48 +00:00
timoore
1625192c81
Use StateAttributeFactory for CullFace and ShadeModel attributes
2008-12-10 22:39:23 +00:00
timoore
c5e8c6603c
Use Boost singleton template for our singletons
2008-12-10 22:39:02 +00:00
timoore
37e541d326
Render cloud layers with face culling
...
Also, allow definition of colors for the cloud layer corners for debugging.
2008-12-10 22:38:34 +00:00
timoore
862a827fe6
Add cullFaceFront as a state attribute to the StateAttributeFactory
2008-12-10 22:38:14 +00:00
timoore
b96c5c9e4b
Render sky with depth test off.
...
Also, don't set BACKGROUND_BIT for cloud layers.
2008-12-10 22:37:52 +00:00
durk
f7e91f1f08
Finalizing the preparation of SimGear-1.99.5-rc2.
Release-1999_05_01
2008-12-10 18:20:36 +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