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
frohlich
e417903c23
Additions for the boundingvolumes
...
Modified Files:
SGGeometryTest.cxx SGIntersect.hxx SGLineSegment.hxx
SGTriangle.hxx
2009-03-05 10:32:05 +01:00
frohlich
81eae3fa48
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
2009-02-27 23:34:15 +01:00
frohlich
90c58087e8
Make material get helper function static.
...
Modified Files:
simgear/scene/material/matlib.cxx
simgear/scene/material/matlib.hxx
2009-02-27 23:34:15 +01:00
frohlich
19bc1e6313
Initialize random number for the tests.
...
Define the triangles center by the weighted sum of the vertices.
Modified Files:
SGGeometryTest.cxx SGTriangle.hxx
2009-02-27 23:34:15 +01:00
frohlich
4a4e8c87b8
Use template arguments instead of hard coded double.
...
Modified Files:
simgear/math/SGTriangle.hxx
2009-02-27 23:34:15 +01:00
frohlich
f04e559dc2
Initialize uninitialized variables.
...
Adapt the precision bounds to what matches the expectations of IEEE math.
Modified Files:
SGMathTest.cxx
2009-02-27 23:34:15 +01:00
frohlich
8e5e657344
Fix problem in unit quaternion return.
...
Modified Files:
SGQuat.hxx
2009-02-27 23:34:15 +01:00
frohlich
a4f1f62068
Make make check link again.
...
Modified Files:
simgear/math/Makefile.am
2009-02-27 23:34:15 +01:00
frohlich
a3e279f06f
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
2009-02-22 23:49:45 +01:00
frohlich
d11954e80c
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
2009-02-22 23:49:45 +01:00
durk
812170ebce
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.
2009-02-22 23:49:45 +01:00