ehofman
58f3985567
Fix a NaN at higher altitudes: sin_beta could become greater than 1.0 which is hard to understand for asin.
2009-04-15 23:03:07 +02:00
frohlich
872db67f21
Remove unused variables.
...
Modified Files:
simgear/bucket/newbucket.hxx
2009-04-15 23:03:07 +02:00
Tim Moore
006f90997a
Merge branch 'maint' into next
2009-03-31 00:04:30 +02:00
torsten
26b4776394
fix wrong bucket calculation for western hemisphere, close to poles, full-degree-longitude calculations.
...
set_bucket computed false left border, if the span was greater than 1, longitudes were less than zero
and longitudes were within SG_EPSILON on a full degree. Example: -179.0, +87.5 returned -176, 87
but should return -180, 87.
Discovered by Brian Schack
2009-03-30 18:43:39 +02:00
frohlich
66c64459e6
Makes more sense to process the orientation in this order.
...
Modified Files:
simgear/scene/model/placement.cxx
2009-03-30 18:42:45 +02:00
frohlich
dc8657f57f
Clean up placementtrans a bit.
...
Modified Files:
simgear/scene/model/placement.cxx
simgear/scene/model/placementtrans.cxx
simgear/scene/model/placementtrans.hxx
2009-03-30 18:42:45 +02:00
frohlich
9d647b90e0
Zap aliasing compiler warnings.
...
Modified Files:
simgear/io/lowlevel.cxx
2009-03-30 18:42:45 +02:00
frohlich
f5730c950b
Remove second, identical to the first one license header.
...
Modified Files:
simgear/scene/model/SGScaleTransform.cxx
2009-03-30 18:42:45 +02:00
frohlich
15d37daebd
Remove unused header.
...
Modified Files:
simgear/scene/tgdb/TileEntry.cxx
2009-03-30 18:42:45 +02:00
frohlich
795c9876af
Make it compile with gcc-4.4.
...
Modified Files:
simgear/debug/logstream.hxx
2009-03-30 18:42:45 +02:00
frohlich
45f653167d
Make use of optimized matrix multiplication routines in osg.
...
Modified Files:
simgear/scene/model/SGTranslateTransform.cxx
2009-03-30 18:42:45 +02:00
frohlich
403d9b6ac1
No longer change the material properties for ac models on the fly.
...
Modified Files:
simgear/scene/model/ModelRegistry.cxx
2009-03-30 18:42:45 +02:00
frohlich
722af5f659
Cleanup. Use already structured data instead of copying stuff.
2009-03-18 07:53:51 +01:00
frohlich
471b9f02ec
Add const accessors.
...
Modified Files:
simgear/ephemeris/ephemeris.hxx
2009-03-18 07:53:51 +01:00
frohlich
fd294b6f98
Make sure the boundingvolumes for the btg files are as high as possible
...
in the scenegraph.
Modified Files:
simgear/scene/tgdb/SGReaderWriterBTG.cxx
2009-03-18 07:53:51 +01:00
frohlich
88baaa72be
Use triangle sphere intersection directly.
...
Modified Files:
simgear/scene/bvh/BVHSubTreeCollector.cxx
2009-03-18 07:53:50 +01:00
frohlich
61084cf1ba
Make triangle sphere intersection tests usable with mixes types.
...
Modified Files:
simgear/math/SGIntersect.hxx
2009-03-18 07:53:50 +01:00
frohlich
5b63f0755a
Preparations for improoved timing behaviour.
...
Modified Files:
simgear/scene/bvh/BVHMotionTransform.cxx
simgear/scene/bvh/BVHMotionTransform.hxx
simgear/scene/bvh/BVHSubTreeCollector.cxx
2009-03-18 07:53:50 +01:00
frohlich
9eb5cf6c98
Add a reference time to the velocity stuff.
...
Modified Files:
simgear/scene/model/ModelRegistry.cxx
simgear/scene/model/placement.cxx
simgear/scene/model/placement.hxx
simgear/scene/util/SGSceneUserData.hxx
2009-03-18 07:53:50 +01:00
frohlich
679db5a22b
The chunked stuff is no longer needed for the ground tiles.
...
... I (Mathias Froehlich), believe that it is more performant (for the GPU) to
build the biggest indexed sets possible at the expense of tight culling.
I (Mathias Froehlich) also know that the CPU is more performant on smaller chunks
building the old flat groundcache on such tiles. :)
So this code *was* to balance these two contrary requirements to some degree.
Now we have optimized datastructures for drawing and differently optimized
datastructures for intersection tests.
Modified Files:
simgear/scene/tgdb/obj.cxx
2009-03-18 07:53:50 +01:00
frohlich
0e35168bdb
Also align the ocean tiles with some horizontal axis.
...
This way the bounding boxes for this geometry is slightly smaller.
Helps ground intersection stuff to avoid the ocean triangles earlier.
Modified Files:
simgear/scene/tgdb/SGOceanTile.cxx
2009-03-18 07:53:50 +01:00
frohlich
035dcc7ab7
Improove bounding volume building in the scenery loading process.
...
Refactor common code in the BoundingVolumeBuildVisitor.hxx.
Modified Files:
simgear/scene/model/BoundingVolumeBuildVisitor.hxx
simgear/scene/model/ModelRegistry.cxx
simgear/scene/model/ModelRegistry.hxx
2009-03-18 07:53:50 +01:00
frohlich
252deed5b9
Make the debug geometry stuff work with a time argument.
...
Modified Files:
simgear/scene/bvh/BVHDebugCollectVisitor.hxx
2009-03-18 07:53:50 +01:00
fredb
c2c4cad753
Compile under windows
2009-03-18 07:53:50 +01:00
frohlich
42e76477cf
Make sure each carrier gets its own valocity.
...
Modified Files:
simgear/scene/model/ModelRegistry.cxx
2009-03-18 07:53:50 +01:00
mfranz
1eade74e5a
warning--
2009-03-18 07:53:50 +01:00
frohlich
f1f0fa0aa9
Make use of posix clocks if available.
...
Have a more general timestamp implementation.
Very useful for higher accuracy timings.
Modified Files:
simgear/structure/subsystem_mgr.cxx
simgear/structure/subsystem_mgr.hxx
simgear/timing/testtimestamp.cxx simgear/timing/timestamp.cxx
simgear/timing/timestamp.hxx
2009-03-18 07:53:49 +01:00
frohlich
deef158822
Use a reference counted pointer for the condition.
...
Modified Files:
simgear/sound/xmlsound.hxx simgear/sound/xmlsound.cxx
2009-03-11 20:06:57 +01:00
frohlich
fef2006663
Remove unused methods.
...
Modified Files:
material/matmodel.hxx material/matmodel.cxx
2009-03-11 20:06:57 +01:00
frohlich
5c97fd576a
Make local functions static.
...
Modified Files:
model/SGReaderWriterXML.cxx
2009-03-11 20:06:56 +01:00
frohlich
c4eb6b7b65
Remove unused functions/includes ...
...
Modified Files:
simgear/scene/tgdb/userdata.hxx
simgear/scene/tgdb/userdata.cxx
2009-03-11 20:06:56 +01:00
frohlich
31324761cc
Zap SGLocation.
...
Modified Files:
projects/VC7.1/SimGear.vcproj projects/VC8/SimGear.vcproj
simgear/scene/model/Makefile.am
simgear/scene/model/placement.cxx
simgear/scene/model/placement.hxx
Removed Files:
simgear/scene/model/location.cxx
simgear/scene/model/location.hxx
2009-03-11 20:06:56 +01:00
frohlich
e495f03ee9
Ignore winding order since it is ignored later anyway.
...
Only emit fully defined primitives.
Modified Files:
simgear/scene/model/BoundingVolumeBuildVisitor.hxx
2009-03-11 20:06:56 +01:00
frohlich
f5769627e4
Use SGGeod in the model placement.
...
Modified Files:
simgear/scene/model/placement.cxx
simgear/scene/model/placement.hxx
2009-03-11 20:06:56 +01:00
frohlich
06ad73f85b
Add convenience function to keep position with just an other elevation.
...
Modified Files:
simgear/math/SGGeod.hxx
2009-03-11 20:06:56 +01:00
frohlich
fa20363853
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
2009-03-05 10:32:06 +01:00
frohlich
2564432e71
Avoid duplicate triangles.
...
Modified Files:
simgear/scene/bvh/BVHStaticGeometryBuilder.hxx
2009-03-05 10:32:06 +01:00
frohlich
addf47600d
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
2009-03-05 10:32:06 +01:00
frohlich
7f534a7966
Crude hack to work around my today introduced collision tree sharing problem.
...
Modified Files:
simgear/scene/model/ModelRegistry.cxx
2009-03-05 10:32:06 +01:00
frohlich
eabffece1f
Don't waste space with too huge stl containers.
...
Modified Files:
simgear/scene/bvh/BVHStaticGeometryBuilder.hxx
2009-03-05 10:32:06 +01:00
frohlich
afed842ad1
Don't waste space with too huge stl containers.
...
Modified Files:
simgear/scene/bvh/BVHStaticData.hxx
2009-03-05 10:32:06 +01:00
fredb
c46cfb5d47
Win32 fix
2009-03-05 10:32:06 +01:00
frohlich
34fe42bbd9
Build boundingvolumes in the model loading phase.
...
Modified Files:
ModelRegistry.hxx ModelRegistry.cxx
Added Files:
BoundingVolumeBuildVisitor.hxx
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
frohlich
fee8d0cf78
Implement setters for velocity notes in the model placement code.
...
Modified Files:
simgear/scene/model/placement.cxx
simgear/scene/model/placement.hxx
2009-03-05 10:32:05 +01:00
frohlich
f5f9c6b81f
More data to attach to the user data field.
...
Modified Files:
simgear/scene/util/SGSceneUserData.hxx
2009-03-05 10:32:05 +01:00
frohlich
4e3460a34b
Include the bounding volume tree on the build system.
...
Modified Files:
configure.ac simgear/scene/Makefile.am
2009-03-05 10:32:05 +01:00
frohlich
8545b6ce6b
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
2009-03-05 10:32:05 +01:00