]> git.mxchange.org Git - simgear.git/log
simgear.git
15 years agoIgnore winding order since it is ignored later anyway.
frohlich [Sat, 7 Mar 2009 21:45:14 +0000 (21:45 +0000)]
Ignore winding order since it is ignored later anyway.
Only emit fully defined primitives.

Modified Files:
simgear/scene/model/BoundingVolumeBuildVisitor.hxx

15 years agoUse SGGeod in the model placement.
frohlich [Sat, 7 Mar 2009 11:11:52 +0000 (11:11 +0000)]
Use SGGeod in the model placement.

Modified Files:
simgear/scene/model/placement.cxx
simgear/scene/model/placement.hxx

15 years agoAdd convenience function to keep position with just an other elevation.
frohlich [Sat, 7 Mar 2009 11:10:57 +0000 (11:10 +0000)]
Add convenience function to keep position with just an other elevation.

Modified Files:
simgear/math/SGGeod.hxx

15 years agoFirst step for something doing static friction stuff.
frohlich [Thu, 5 Mar 2009 06:06:02 +0000 (06:06 +0000)]
First step for something doing static friction stuff.

Add an id field to identify BVHMotionTransforms.
Provide a factory for ids.
Use that to identify velocity data.
Track the lowermost id in the visitors.

Modified Files:
simgear/scene/bvh/BVHLineSegmentVisitor.cxx
simgear/scene/bvh/BVHLineSegmentVisitor.hxx
  simgear/scene/bvh/BVHMotionTransform.cxx
simgear/scene/bvh/BVHMotionTransform.hxx
simgear/scene/bvh/BVHNearestPointVisitor.hxx
simgear/scene/bvh/BVHNode.cxx simgear/scene/bvh/BVHNode.hxx
simgear/scene/util/SGSceneUserData.cxx
simgear/scene/util/SGSceneUserData.hxx

15 years agoAvoid duplicate triangles.
frohlich [Tue, 3 Mar 2009 08:25:19 +0000 (08:25 +0000)]
Avoid duplicate triangles.

Modified Files:
simgear/scene/bvh/BVHStaticGeometryBuilder.hxx

15 years agoRemove the StaticLeaf visitor slot.
frohlich [Mon, 2 Mar 2009 18:02:50 +0000 (18:02 +0000)]
Remove the StaticLeaf visitor slot.
Add a nearest point visitor.

Modified Files:
BVHBoundingBoxVisitor.hxx BVHDebugCollectVisitor.hxx
BVHLineSegmentVisitor.cxx BVHLineSegmentVisitor.hxx
BVHStaticGeometryBuilder.hxx BVHStaticLeaf.cxx
BVHStaticLeaf.hxx BVHSubTreeCollector.cxx
BVHSubTreeCollector.hxx BVHVisitor.hxx Makefile.am bvhtest.cxx
Added Files:
BVHNearestPointVisitor.hxx

15 years agoCrude hack to work around my today introduced collision tree sharing problem.
frohlich [Sun, 1 Mar 2009 21:31:18 +0000 (21:31 +0000)]
Crude hack to work around my today introduced collision tree sharing problem.

Modified Files:
simgear/scene/model/ModelRegistry.cxx

15 years agoDon't waste space with too huge stl containers.
frohlich [Sun, 1 Mar 2009 21:25:48 +0000 (21:25 +0000)]
Don't waste space with too huge stl containers.

Modified Files:
simgear/scene/bvh/BVHStaticGeometryBuilder.hxx

15 years agoDon't waste space with too huge stl containers.
frohlich [Sun, 1 Mar 2009 21:25:14 +0000 (21:25 +0000)]
Don't waste space with too huge stl containers.

Modified Files:
simgear/scene/bvh/BVHStaticData.hxx

15 years agoWin32 fix
fredb [Sun, 1 Mar 2009 15:50:45 +0000 (15:50 +0000)]
Win32 fix

15 years agoBuild boundingvolumes in the model loading phase.
frohlich [Sun, 1 Mar 2009 15:40:22 +0000 (15:40 +0000)]
Build boundingvolumes in the model loading phase.

Modified Files:
ModelRegistry.hxx ModelRegistry.cxx
Added Files:
BoundingVolumeBuildVisitor.hxx

15 years agoUpdate MSVC 7.1 projects - Add the BVH library
fredb [Sun, 1 Mar 2009 12:50:39 +0000 (12:50 +0000)]
Update MSVC 7.1 projects - Add the BVH library

15 years agoSGMatrix<T>::preMultTranslate should return self ( as postMultTranslate do )
fredb [Sun, 1 Mar 2009 12:49:52 +0000 (12:49 +0000)]
SGMatrix<T>::preMultTranslate should return self ( as postMultTranslate do )

15 years agoBVHLineSegmentVisitor::setLineSegmentEnd doesn't return anything
fredb [Sun, 1 Mar 2009 12:48:15 +0000 (12:48 +0000)]
BVHLineSegmentVisitor::setLineSegmentEnd doesn't return anything

15 years agoImplement setters for velocity notes in the model placement code.
frohlich [Sun, 1 Mar 2009 12:40:50 +0000 (12:40 +0000)]
Implement setters for velocity notes in the model placement code.

Modified Files:
simgear/scene/model/placement.cxx
simgear/scene/model/placement.hxx

15 years agoMore data to attach to the user data field.
frohlich [Sun, 1 Mar 2009 12:37:50 +0000 (12:37 +0000)]
More data to attach to the user data field.

Modified Files:
  simgear/scene/util/SGSceneUserData.hxx

15 years agoInclude the bounding volume tree on the build system.
frohlich [Sun, 1 Mar 2009 12:36:54 +0000 (12:36 +0000)]
Include the bounding volume tree on the build system.

Modified Files:
  configure.ac simgear/scene/Makefile.am

15 years agoInitial commit of the bounding volume tree implementation.
frohlich [Sun, 1 Mar 2009 12:35:49 +0000 (12:35 +0000)]
Initial commit of the bounding volume tree implementation.
The aim is to prove a better collion model in plenty ways.

Added Files:
  .cvsignore BVHBoundingBoxVisitor.hxx
BVHDebugCollectVisitor.hxx BVHGroup.cxx BVHGroup.hxx
BVHLineGeometry.cxx BVHLineGeometry.hxx
BVHLineSegmentVisitor.cxx BVHLineSegmentVisitor.hxx
BVHMotionTransform.cxx BVHMotionTransform.hxx BVHNode.cxx
BVHNode.hxx BVHStaticBinary.cxx BVHStaticBinary.hxx
BVHStaticData.hxx BVHStaticGeometry.cxx BVHStaticGeometry.hxx
BVHStaticGeometryBuilder.hxx BVHStaticLeaf.cxx
BVHStaticLeaf.hxx BVHStaticNode.cxx BVHStaticNode.hxx
BVHStaticTriangle.cxx BVHStaticTriangle.hxx
  BVHSubTreeCollector.cxx BVHSubTreeCollector.hxx
BVHTransform.cxx BVHTransform.hxx BVHVisitor.hxx Makefile.am
bvhtest.cxx

15 years agoAdditions for the boundingvolumes
frohlich [Sun, 1 Mar 2009 12:22:56 +0000 (12:22 +0000)]
Additions for the boundingvolumes
Modified Files:
SGGeometryTest.cxx SGIntersect.hxx SGLineSegment.hxx
SGTriangle.hxx

15 years agoRotate the scenery tiles so that the horizont is axis aligned.
frohlich [Fri, 27 Feb 2009 19:59:47 +0000 (19:59 +0000)]
Rotate the scenery tiles so that the horizont is axis aligned.
This might help culling and much more the upcomming collision tree.

Modified Files:
simgear/scene/tgdb/obj.cxx

15 years agoMake material get helper function static.
frohlich [Fri, 27 Feb 2009 19:30:28 +0000 (19:30 +0000)]
Make material get helper function static.

Modified Files:
  simgear/scene/material/matlib.cxx
  simgear/scene/material/matlib.hxx

15 years agoInitialize random number for the tests.
frohlich [Fri, 27 Feb 2009 18:52:53 +0000 (18:52 +0000)]
Initialize random number for the tests.
Define the triangles center by the weighted sum of the vertices.

Modified Files:
SGGeometryTest.cxx SGTriangle.hxx

15 years agoUse template arguments instead of hard coded double.
frohlich [Fri, 27 Feb 2009 06:05:36 +0000 (06:05 +0000)]
Use template arguments instead of hard coded double.

Modified Files:
simgear/math/SGTriangle.hxx

15 years agoInitialize uninitialized variables.
frohlich [Fri, 27 Feb 2009 05:18:31 +0000 (05:18 +0000)]
Initialize uninitialized variables.
Adapt the precision bounds to what matches the expectations of IEEE math.

Modified Files:
SGMathTest.cxx

15 years agoFix problem in unit quaternion return.
frohlich [Fri, 27 Feb 2009 05:16:52 +0000 (05:16 +0000)]
Fix problem in unit quaternion return.

Modified Files:
SGQuat.hxx

15 years agoMake make check link again.
frohlich [Fri, 27 Feb 2009 05:16:12 +0000 (05:16 +0000)]
Make make check link again.

Modified Files:
simgear/math/Makefile.am

15 years agoThe scenery center is history for a long time now.
frohlich [Sun, 22 Feb 2009 09:15:44 +0000 (09:15 +0000)]
The scenery center is history for a long time now.
Remove that from the transforms.

Modified Files:
simgear/scene/model/placement.hxx
simgear/scene/model/placementtrans.cxx
simgear/scene/model/placementtrans.hxx

15 years agoSmall cleanups, bug fixes and improovements to the geometry/math stuff.
frohlich [Sun, 22 Feb 2009 08:13:24 +0000 (08:13 +0000)]
Small cleanups, bug fixes and improovements to the geometry/math stuff.

Modified Files:
simgear/math/SGBox.hxx simgear/math/SGIntersect.hxx
simgear/math/SGLineSegment.hxx simgear/math/SGMatrix.hxx
simgear/math/SGPlane.hxx simgear/math/SGRay.hxx
simgear/math/SGSphere.hxx simgear/math/SGVec2.hxx
simgear/math/SGVec3.hxx simgear/math/SGVec4.hxx

15 years agoTorsten Dreyer: the rotate animation has two ways to define a axis
durk [Sat, 21 Feb 2009 09:11:41 +0000 (09:11 +0000)]
Torsten Dreyer: the rotate animation has two ways to define a axis
1. by using center/x-m and axis/[xyz]
2. by using axis/[xyz]1-m and axis/[xyz]2-m

The translate animation only supports method 1. and here comes a patch that
enables method 2 for this animations, too.

15 years agoFix to compile with MSC
fredb [Thu, 19 Feb 2009 20:41:36 +0000 (20:41 +0000)]
Fix to compile with MSC

15 years agoMerge branch 'topic/nasal' into next
Tim Moore [Sun, 15 Feb 2009 23:48:00 +0000 (00:48 +0100)]
Merge branch 'topic/nasal' into next

15 years ago"io.flush() implementation from Melchior. Also add a final filetype
mfranz [Sun, 15 Feb 2009 16:54:39 +0000 (16:54 +0000)]
"io.flush() implementation from Melchior.  Also add a final filetype
element to the io.stat() array, which has been sitting around on my
box for a while and doesn't seem to have broken anything."  -- Andy

(forward port from nasal/cvs)

15 years agoMerge branch 'topic/gcintersect' into next
Tim Moore [Fri, 13 Feb 2009 09:07:15 +0000 (10:07 +0100)]
Merge branch 'topic/gcintersect' into next

15 years agoNew getPrimitive function.
Tim Moore [Fri, 13 Feb 2009 08:35:50 +0000 (09:35 +0100)]
New getPrimitive function.

This searches for the primitive found in an OSG intersection query.

15 years agoMake SGSubsystemGroup::Member copy constructor private.
Tim Moore [Fri, 6 Feb 2009 23:37:47 +0000 (00:37 +0100)]
Make SGSubsystemGroup::Member copy constructor private.

The copy constructor wouldn't make any sense and would confuse ownership of
the subsystem pointer. Problem noted by John Denker.

15 years agoMerge branch 'topic/cloudz' into next
Tim Moore [Fri, 6 Feb 2009 18:16:19 +0000 (19:16 +0100)]
Merge branch 'topic/cloudz' into next

15 years agoTurn off z buffer writes for clouds.
Tim Moore [Fri, 6 Feb 2009 16:47:55 +0000 (17:47 +0100)]
Turn off z buffer writes for clouds.

This is standard practice for semi-transparent objects and should cut down
on the flickering and other sorting artifacts.

15 years agoUpdate MSVC 7.1 projects - Remove pthreads dependency
fredb [Sun, 25 Jan 2009 11:53:35 +0000 (11:53 +0000)]
Update MSVC 7.1 projects - Remove pthreads dependency

15 years agoMerge branch 'maint' into next
Tim Moore [Wed, 4 Feb 2009 10:03:20 +0000 (11:03 +0100)]
Merge branch 'maint' into next

15 years agoMerge branch 'releng/1.9.1' into maint
Tim Moore [Wed, 4 Feb 2009 10:02:30 +0000 (11:02 +0100)]
Merge branch 'releng/1.9.1' into maint

15 years agoSynchronize the version number with our mainantance release.
durk [Mon, 2 Feb 2009 05:34:13 +0000 (05:34 +0000)]
Synchronize the version number with our mainantance release.

15 years agoBuild trees under a transform note that is rotated to Z-up.
Tim Moore [Fri, 30 Jan 2009 09:37:06 +0000 (10:37 +0100)]
Build trees under a transform note that is rotated to Z-up.

This allows the tree geometry to be shared across the entire scene because it
doesn't need to be rotated for each scenery tile.

15 years agoDon't expand all the trees into display lists.
Tim Moore [Thu, 29 Jan 2009 06:22:42 +0000 (07:22 +0100)]
Don't expand all the trees into display lists.

This can chew up large amounts of memory for questionable gains. We do
let the tree model geometry be in a display list if OSG chooses to put
it there.

Various renaming and cleanup. Save some memory by reverting
ShaderGeometry's base class back to osg::Drawable.

15 years agoMerge branch 'topic/yontree' into next
Tim Moore [Wed, 28 Jan 2009 06:53:38 +0000 (07:53 +0100)]
Merge branch 'topic/yontree' into next

15 years agoMerge branch 'maint' into next
Tim Moore [Wed, 28 Jan 2009 06:53:31 +0000 (07:53 +0100)]
Merge branch 'maint' into next

15 years ago For the first time (no pun intended) in almost ten years time (again no
durk [Tue, 27 Jan 2009 22:43:13 +0000 (22:43 +0000)]
 For the first time (no pun intended) in almost ten years time (again no
 pun intended) that I'm touching the time library.

 Brian Schack reported that the traffic scheduler messes up the timestamps
 of the atlas network output. As it turns out, the c library functions
 asctime, and gmtime use a static copy of the tm struct to do the internal
 formatting. Our linux port of the SGTime class, incidentally, also stored
 it's master time stamp in this very same struct. Thus, formatting an
 arbitrary time value, would have the unwanted side effect of time travel.
 Usually, this would go unnoticed, because the actual time parameters would
 be updated before any damage could be done. But unwanted side effects, as
 in Brian's example could occur.

 On the MSVC port this appears to not have been a problem. Since that port
 used a copy of the tm struct to store it's master time stamps. Since the
 MSVC code also compiles cleanly on linux, it seems to be the way to go to
 use that approach. In addition, it also removes some conditional compile
 directives.

 I've only run a short test, but didn't see any undesirable side effects.

15 years agoCsaba HALASZ: set _arg even if there's no <command> (crash fix)
mfranz [Mon, 26 Jan 2009 18:01:48 +0000 (18:01 +0000)]
Csaba HALASZ: set _arg even if there's no <command> (crash fix)

15 years agoUse osg::Geometry code to draw trees ourselves.
Tim Moore [Wed, 28 Jan 2009 06:43:09 +0000 (07:43 +0100)]
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.

15 years agoMerge branch 'topic/modelopt' into next
Tim Moore [Fri, 23 Jan 2009 22:27:48 +0000 (23:27 +0100)]
Merge branch 'topic/modelopt' into next

15 years agoMerge branch 'topic/yontree' into next
Tim Moore [Fri, 23 Jan 2009 22:27:37 +0000 (23:27 +0100)]
Merge branch 'topic/yontree' into next

15 years agoQuadTreeBuilder: create leaves on demand
Tim Moore [Fri, 23 Jan 2009 13:36:53 +0000 (14:36 +0100)]
QuadTreeBuilder: create leaves on demand

This avoids lots of empty leaves.

15 years agoRewrite ShaderGeometry to use display lists and OSG primitives.
Tim Moore [Wed, 21 Jan 2009 21:20:03 +0000 (22:20 +0100)]
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.

15 years agoOptimize empty groups from .ac models
Tim Moore [Fri, 23 Jan 2009 14:22:40 +0000 (15:22 +0100)]
Optimize empty groups from .ac models

The OSG optimizer seems to have changed since this work was originally done.

15 years agoMerge branch 'maint' into next
Tim Moore [Sun, 18 Jan 2009 23:13:07 +0000 (00:13 +0100)]
Merge branch 'maint' into next

15 years agoProtect against division by zero in QuadTreeBuilder
Tim Moore [Sun, 18 Jan 2009 23:04:59 +0000 (00:04 +0100)]
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

15 years agoSort cloud sprites using std::sort, based on projected Z.
Tim Moore [Thu, 15 Jan 2009 23:37:40 +0000 (00:37 +0100)]
Sort cloud sprites using std::sort, based on projected Z.

A "cleanup" of cloud sorting.

15 years agoMerge branch 'foo' into next
Tim Moore [Thu, 15 Jan 2009 21:52:11 +0000 (22:52 +0100)]
Merge branch 'foo' into next

15 years agoFix linkage of test programs with OpenThreads.
jmt [Thu, 15 Jan 2009 14:46:37 +0000 (14:46 +0000)]
Fix linkage of test programs with OpenThreads.

15 years agoCommit Benoit Laniel's patch which converts more SimGear pieces to use
jmt [Thu, 15 Jan 2009 14:34:33 +0000 (14:34 +0000)]
Commit Benoit Laniel's patch which converts more SimGear pieces to use
OpenThreads primitives directly.

15 years agoSince we're now sure 1.9.1 will not be released from trunk, here's Yon
jmt [Thu, 15 Jan 2009 14:31:51 +0000 (14:31 +0000)]
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.

15 years agoMerge branch 'maint' into next
Tim Moore [Wed, 14 Jan 2009 21:34:20 +0000 (22:34 +0100)]
Merge branch 'maint' into next

15 years agoRemove OptionsPusher and manipulation of osgDB dataFilePathList.
Tim Moore [Wed, 14 Jan 2009 21:13:12 +0000 (22:13 +0100)]
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.

15 years agoMerge branch 'maint' into next
Tim Moore [Wed, 14 Jan 2009 11:13:44 +0000 (12:13 +0100)]
Merge branch 'maint' into next

15 years agoSGPropertyNode must increment / decrement the reference counter in an aliased
Tim Moore [Wed, 14 Jan 2009 11:10:23 +0000 (12:10 +0100)]
SGPropertyNode must increment / decrement the reference counter in an aliased
node.

From Csaba Halász.

15 years agoMerge branch 'topic/mat-anim' into next
Tim Moore [Tue, 13 Jan 2009 21:58:45 +0000 (22:58 +0100)]
Merge branch 'topic/mat-anim' into next

15 years agoMerge branch 'maint' into next
Tim Moore [Tue, 13 Jan 2009 21:52:19 +0000 (22:52 +0100)]
Merge branch 'maint' into next

15 years agoSGMaterialAnimation: Don't install an update callback if values are static
Tim Moore [Tue, 13 Jan 2009 13:10:15 +0000 (14:10 +0100)]
SGMaterialAnimation: Don't install an update callback if values are static

15 years agoSGMaterialAnimation: factor out update of osg::Material
Tim Moore [Tue, 13 Jan 2009 11:50:47 +0000 (12:50 +0100)]
SGMaterialAnimation: factor out update of osg::Material

15 years agoCsaba/Jester : fix the material animation and display night textures
fredb [Tue, 13 Jan 2009 07:49:14 +0000 (07:49 +0000)]
Csaba/Jester : fix the material animation and display night textures

15 years agoMerge branch 'maint' into next
Tim Moore [Mon, 12 Jan 2009 12:14:31 +0000 (13:14 +0100)]
Merge branch 'maint' into next

15 years agofix end of file
fredb [Sat, 10 Jan 2009 18:53:50 +0000 (18:53 +0000)]
fix end of file

15 years agoignore generated files
fredb [Sat, 10 Jan 2009 16:12:50 +0000 (16:12 +0000)]
ignore generated files

15 years agoFix include path
timoore [Sat, 27 Dec 2008 08:16:03 +0000 (08:16 +0000)]
Fix include path

15 years agoAdd some syntactic helpers to allow distance/course to be queried between
jmt [Fri, 26 Dec 2008 12:08:28 +0000 (12:08 +0000)]
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.

15 years agoFix test-program linkage now sgmath depends on sgstructure.
jmt [Fri, 26 Dec 2008 12:27:32 +0000 (12:27 +0000)]
Fix test-program linkage now sgmath depends on sgstructure.

15 years agoFix a potential crash when OSG is misconfigured, and an appropriate image
jmt [Fri, 26 Dec 2008 11:42:04 +0000 (11:42 +0000)]
Fix a potential crash when OSG is misconfigured, and an appropriate image
loading plugin cannot be found.

15 years agocompilation fix: <cstring> for strcmp()
mfranz [Mon, 22 Dec 2008 18:01:34 +0000 (18:01 +0000)]
compilation fix: <cstring> for strcmp()

15 years ago- shininess is in the rage 0..128
mfranz [Sun, 21 Dec 2008 15:01:11 +0000 (15:01 +0000)]
- 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)

15 years agoDocumentation update regarding OpenAL and OSG.
durk [Sat, 20 Dec 2008 09:10:43 +0000 (09:10 +0000)]
Documentation update regarding OpenAL and OSG.

15 years agoAttempt to sort out the version number mess in preparation for a 1.9.0 release.
curt [Fri, 19 Dec 2008 20:39:59 +0000 (20:39 +0000)]
Attempt to sort out the version number mess in preparation for a 1.9.0 release.

15 years agoStuart Buchanan :
fredb [Fri, 19 Dec 2008 07:39:09 +0000 (07:39 +0000)]
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).

15 years agoJames TURNER: make the index of the current waypoint available
mfranz [Thu, 18 Dec 2008 22:51:58 +0000 (22:51 +0000)]
James TURNER: make the index of the current waypoint available

15 years agoStuart :
fredb [Sun, 14 Dec 2008 18:47:30 +0000 (18:47 +0000)]
Stuart :
the 3D clouds now respect changes to the environment caused by updated METAR etc.

It also increases the AlphaFunc as suggested by Tim.

15 years agoCsaba/Jester : fix a problem with tex transform animation
fredb [Fri, 12 Dec 2008 20:02:44 +0000 (20:02 +0000)]
Csaba/Jester : fix a problem with tex transform animation

15 years agoCsaba/Jester : fix a problem with material animation
fredb [Fri, 12 Dec 2008 19:57:25 +0000 (19:57 +0000)]
Csaba/Jester : fix a problem with material animation

15 years agoPrint the name of the file generating an OpenAL error
fredb [Fri, 12 Dec 2008 07:41:44 +0000 (07:41 +0000)]
Print the name of the file generating an OpenAL error

15 years agoStuart :
fredb [Thu, 11 Dec 2008 08:24:35 +0000 (08:24 +0000)]
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.

15 years agoUpdate MSVC 7.1 projects. Add Boost
fredb [Thu, 11 Dec 2008 08:23:37 +0000 (08:23 +0000)]
Update MSVC 7.1 projects. Add Boost

15 years agoUse a singleton Fog attribute for all 3D clouds.
timoore [Wed, 10 Dec 2008 22:39:48 +0000 (22:39 +0000)]
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.

15 years agoUse StateAttributeFactory for CullFace and ShadeModel attributes
timoore [Wed, 10 Dec 2008 22:39:23 +0000 (22:39 +0000)]
Use StateAttributeFactory for CullFace and ShadeModel attributes

15 years agoUse Boost singleton template for our singletons
timoore [Wed, 10 Dec 2008 22:39:02 +0000 (22:39 +0000)]
Use Boost singleton template for our singletons

15 years agoRender cloud layers with face culling
timoore [Wed, 10 Dec 2008 22:38:34 +0000 (22:38 +0000)]
Render cloud layers with face culling

Also, allow definition of colors for the cloud layer corners for debugging.

15 years agoAdd cullFaceFront as a state attribute to the StateAttributeFactory
timoore [Wed, 10 Dec 2008 22:38:14 +0000 (22:38 +0000)]
Add cullFaceFront as a state attribute to the StateAttributeFactory

15 years agoRender sky with depth test off.
timoore [Wed, 10 Dec 2008 22:37:52 +0000 (22:37 +0000)]
Render sky with depth test off.

Also, don't set BACKGROUND_BIT for cloud layers.

15 years agoFinalizing the preparation of SimGear-1.99.5-rc2.
durk [Wed, 10 Dec 2008 18:20:36 +0000 (18:20 +0000)]
Finalizing the preparation of SimGear-1.99.5-rc2.

15 years agoStuart Buchanan :
fredb [Sat, 6 Dec 2008 23:02:42 +0000 (23:02 +0000)]
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.

15 years agoUgly hack to fix a memory corruption problem
fredb [Sat, 6 Dec 2008 23:01:24 +0000 (23:01 +0000)]
Ugly hack to fix a memory corruption problem

15 years agoStuart Buchanan :
fredb [Thu, 4 Dec 2008 20:56:03 +0000 (20:56 +0000)]
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.

15 years agoStuart:
fredb [Sun, 30 Nov 2008 23:06:18 +0000 (23:06 +0000)]
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.

15 years agologstream improvements from Yon Uriarte
timoore [Sat, 29 Nov 2008 00:17:29 +0000 (00:17 +0000)]
logstream improvements from Yon Uriarte

Avoid descending into iostream when a message won't be logged.