frohlich
4f802689f2
Correct finite precision issues.
...
Use consistent function names.
Implement changes consistently over the different vector sizes.
Modified Files:
SGVec2.hxx SGVec3.hxx SGVec4.hxx
2009-09-17 12:21:42 +02:00
frohlich
7e2dafdcb8
Make the weak pointer work. Some bits were left when importing.
...
Modified Files:
SGSharedPtr.hxx SGWeakPtr.hxx
2009-09-17 12:18:07 +02:00
frohlich
795d481ca6
Switch to new vector conversion functions.
...
Modified Files:
simgear/math/SGGeod.cxx simgear/math/SGQuat.hxx
simgear/math/SGVec2.hxx simgear/math/SGVec3.hxx
simgear/math/SGVec4.hxx simgear/scene/material/Effect.cxx
simgear/scene/model/SGInteractionAnimation.cxx
simgear/scene/model/SGMaterialAnimation.cxx
simgear/scene/model/SGRotateTransform.cxx
simgear/scene/model/SGScaleTransform.cxx
simgear/scene/model/SGTranslateTransform.cxx
simgear/scene/model/animation.cxx
simgear/scene/model/particles.cxx
simgear/scene/model/placement.cxx
simgear/scene/model/shadanim.cxx
simgear/scene/sky/CloudShaderGeometry.cxx
simgear/scene/sky/cloud.cxx simgear/scene/sky/cloudfield.cxx
simgear/scene/sky/dome.cxx simgear/scene/sky/sky.cxx
simgear/scene/tgdb/GroundLightManager.cxx
simgear/scene/tgdb/SGOceanTile.cxx
simgear/scene/tgdb/SGTexturedTriangleBin.hxx
simgear/scene/tgdb/SGVasiDrawable.cxx
simgear/scene/tgdb/TreeBin.cxx simgear/scene/tgdb/obj.cxx
simgear/scene/tgdb/pt_lights.cxx
simgear/scene/util/SGUpdateVisitor.hxx
2009-09-09 08:39:55 +02:00
frohlich
1b936b9af8
Fix problem with ocean files not recognized as water.
...
Move dynamic casts to EffectGeode into the findMaterial method.
Modified Files:
simgear/scene/material/matlib.cxx
simgear/scene/material/matlib.hxx
simgear/scene/model/BoundingVolumeBuildVisitor.hxx
2009-09-09 08:39:55 +02:00
frohlich
f141cc28b0
Add some comments.
...
Make sure floating point constants do not introduce useless upcasts.
Remove now unused and not really usefull method.
Modified Files:
simgear/math/SGQuat.hxx
2009-09-05 17:01:58 +02:00
frohlich
028af34d3d
Remove unused member.
...
Modified Files:
simgear/scene/util/SGSceneFeatures.hxx
2009-09-05 17:01:58 +02:00
frohlich
ce54997be5
Should be now more easy to make use of SGMath without having osg.
...
Modified Files:
simgear/scene/sky/dome.cxx simgear/math/SGGeod.cxx
simgear/math/SGGeod.hxx simgear/math/SGQuat.hxx
simgear/math/SGVec2.hxx simgear/math/SGVec3.hxx
simgear/math/SGVec4.hxx
2009-09-05 17:01:58 +02:00
frohlich
3d213fa713
Return a osg::Vec value instead of a non const reference.
...
Modified Files:
scene/model/SGMaterialAnimation.cxx
2009-09-05 17:01:58 +02:00
frohlich
e71f3790ce
Avoid the non const SGVec*::osg() method.
...
Modified Files:
SGTranslateTransform.cxx SGScaleTransform.cxx
SGRotateTransform.cxx
2009-09-05 17:01:58 +02:00
frohlich
67b9cba4d3
Use const refs for const data.
...
Modified Files:
simgear/scene/model/CheckSceneryVisitor.hxx
simgear/scene/model/CheckSceneryVisitor.cxx
2009-09-05 17:01:58 +02:00
frohlich
382e0c6ad2
Remove unneeded explicit scenegraph deletion.
...
Modified Files:
simgear/scene/tgdb/TileCache.cxx
simgear/scene/tgdb/TileEntry.cxx
simgear/scene/tgdb/TileEntry.hxx
2009-07-02 08:51:12 +02:00
frohlich
0f7b65a921
Provide a thread safe SGWeakPtr implementation.
...
Extend SGAtomic with atomic exchange and add.
Import updates from the original implementation of that in OpenFDM.
Modified Files:
Makefile.am SGAtomic.cxx SGAtomic.hxx SGReferenced.hxx
SGSharedPtr.hxx
Added Files:
SGWeakPtr.hxx SGWeakReferenced.hxx
2009-06-25 10:13:03 +02:00
frohlich
09a57c7a52
No observed_ptr needed.
...
Modified Files:
simgear/scene/model/ModelRegistry.cxx
2009-06-25 10:13:02 +02:00
frohlich
9068f0606e
Remove unused headers.
...
Modified Files:
simgear/scene/tgdb/TileEntry.cxx
2009-06-25 10:13:02 +02:00
frohlich
c577b7e369
Propagate the lanel loader through the options.
...
Modified Files:
simgear/scene/model/SGReaderWriterXML.cxx
2009-06-25 10:13:02 +02:00
frohlich
5850464ba7
Move the carrier interactive geometry configuration into the model files.
...
Modified Files:
Makefile.am animation.cxx
Added Files:
SGInteractionAnimation.hxx SGInteractionAnimation.cxx
2009-06-23 10:42:42 +02:00
frohlich
75c2a45b25
Add some trailing spaces ...
...
Modified Files:
./simgear/math/SGIntersect.hxx
2009-06-23 10:42:42 +02:00
frohlich
6d05fc6f57
Finally get rid of that member in the SGModelData callback.
...
Move call of SGModelData::modelLoaded directly into the xml reader.
Modified Files:
simgear/scene/model/SGPagedLOD.cxx
simgear/scene/model/modellib.hxx
simgear/scene/model/modellib.cxx
simgear/scene/model/SGReaderWriterXML.cxx
2009-06-15 10:23:21 +02:00
frohlich
ca53add820
Mark static transforms as static.
...
Modified Files:
simgear/scene/tgdb/TileEntry.cxx
2009-06-15 10:23:21 +02:00
frohlich
6fe3099ab4
Revert a change from 2009/06/07.
...
Should make the Nasal code for some xml models work again.
Modified Files:
simgear/scene/model/SGPagedLOD.cxx
simgear/scene/model/SGReaderWriterXML.cxx
simgear/scene/model/modellib.cxx
simgear/scene/model/modellib.hxx
2009-06-15 10:23:21 +02:00
frohlich
a34eceb327
Also handle PagedLOD nodes frame count in the update visitor.
...
Modified Files:
simgear/scene/util/SGUpdateVisitor.hxx
2009-06-11 15:55:12 +02:00
frohlich
c9042c3186
Also test against bounds when updating the scene.
...
Modified Files:
simgear/scene/util/SGUpdateVisitor.hxx
2009-06-11 15:55:12 +02:00
frohlich
f913febd71
More cleanup.
...
Modified Files:
simgear/scene/model/SGReaderWriterXML.cxx
2009-06-11 15:55:11 +02:00
frohlich
daa0fbdc6b
Do not modify danymically generated textures.
...
Modified Files:
simgear/scene/model/ModelRegistry.cxx
2009-06-11 15:55:11 +02:00
frohlich
d4c52b599d
Provide something more sensible for the properties root
...
for the modelLoaded call. MAy be this needs to be revisited, but in any
case better than constant zero.
Modified Files:
simgear/scene/model/SGPagedLOD.cxx
simgear/scene/model/modellib.cxx
2009-06-11 15:55:11 +02:00
frohlich
ec88373eb7
Cleanup.
...
Modified Files:
simgear/scene/model/SGReaderWriterXML.cxx
2009-06-11 15:55:11 +02:00
frohlich
4286cafdeb
Doing the compilers job: constant propagation.
...
This variable is nowhere set except to zero.
Modified Files:
model/SGPagedLOD.cxx model/SGReaderWriterXML.cxx
model/modellib.cxx model/modellib.hxx
2009-06-11 15:55:11 +02:00
frohlich
3880d8e2f2
Slight cleanup.
...
Remive last reference to plibs file utility library.
Modified Files:
simgear/scene/model/SGReaderWriterXML.cxx
2009-06-11 15:55:11 +02:00
frohlich
671c84ad44
Remove unused header.
...
Modified Files:
simgear/scene/tgdb/TileEntry.cxx
2009-06-11 15:55:11 +02:00
frohlich
a0d687bb24
Use osgDB::FileUtils instead of plib file utils.
...
Modified Files:
simgear/scene/material/mat.cxx
2009-06-11 15:55:10 +02:00
frohlich
704385ff0a
Replace SGPlacementTrans usage with osg::PositionAttitueTransform.
...
Remove SGPlacementTrans.
Update build system.
Modified Files:
SimGear.dsp projects/VC7.1/SimGear.vcproj
projects/VC8/SimGear.vcproj simgear/scene/model/Makefile.am
simgear/scene/model/placement.cxx
simgear/scene/model/placement.hxx
simgear/scene/tgdb/TileEntry.cxx
simgear/scene/tgdb/TileEntry.hxx
Removed Files:
simgear/scene/model/placementtrans.cxx
simgear/scene/model/placementtrans.hxx
2009-06-11 15:55:10 +02:00
frohlich
81a657edec
Use osg's builtin mechanisms to traverse only in range nodes with the
...
update visitor.
Modified Files:
simgear/scene/util/SGUpdateVisitor.hxx
simgear/scene/tgdb/TileEntry.cxx
simgear/scene/model/placementtrans.cxx
2009-06-11 15:55:10 +02:00
frohlich
9d0bad29c0
Invent a property root if not given in the options struct.
...
Modified Files:
simgear/scene/model/SGReaderWriterXML.cxx
2009-06-03 23:43:45 +02:00
frohlich
4700955480
Avoid empty search path extensions for the case that only the bucket index
...
number is given.
Modified Files:
scene/tgdb/TileEntry.cxx
2009-06-03 00:08:05 +02:00
frohlich
2c66081fa4
When loading stg files honour the original path if given.
...
Modified Files:
simgear/scene/tgdb/ReaderWriterSTG.cxx
simgear/scene/tgdb/TileEntry.cxx
simgear/scene/tgdb/TileEntry.hxx
2009-06-03 00:08:05 +02:00
frohlich
855e88da43
Enable stg loading by filename.
...
Modified Files:
simgear/scene/tgdb/ReaderWriterSTG.cxx
2009-06-03 00:08:05 +02:00
frohlich
bfa5fff500
Cleanup.
...
Additional null pointer checks.
Simplify redundant interface arguments.
Modified Files:
simgear/scene/material/mat.cxx simgear/scene/material/mat.hxx
simgear/scene/material/matlib.cxx
simgear/scene/material/matlib.hxx
simgear/scene/tgdb/ReaderWriterSTG.cxx
simgear/scene/tgdb/SGReaderWriterBTG.cxx
simgear/scene/tgdb/SGReaderWriterBTGOptions.hxx
simgear/scene/tgdb/TileEntry.cxx
simgear/scene/tgdb/TileEntry.hxx simgear/scene/tgdb/obj.cxx
2009-06-03 00:08:04 +02:00
frohlich
01c64fd554
Give the models properties as an argument to the init callback.
...
Modified Files:
SGPagedLOD.cxx
2009-06-03 00:08:04 +02:00
frohlich
29e79f8f61
Also note the btg reader header in the build system.
...
Modified Files:
scene/tgdb/Makefile.am
2009-05-19 23:53:24 +02:00
frohlich
8f7527ede0
Restore the special capability of the btg reader to read compressed files.
...
Modified Files:
scene/tgdb/SGReaderWriterBTG.cxx
scene/tgdb/SGReaderWriterBTG.hxx
2009-05-19 23:53:24 +02:00
frohlich
7cd149a4d8
Implement current osgDB::ReaderWriters supportsExtension interface instead
...
of the previous one.
Modified Files:
model/SGReaderWriterXML.cxx model/SGReaderWriterXML.hxx
tgdb/ReaderWriterSTG.cxx tgdb/ReaderWriterSTG.hxx
tgdb/SGReaderWriterBTG.cxx tgdb/SGReaderWriterBTG.hxx
2009-05-19 23:53:24 +02:00
frohlich
e45912fd8a
Attach the ModelData to the options instead of the userdata field.
...
Modified Files:
simgear/scene/model/SGPagedLOD.cxx
simgear/scene/model/SGReaderWriterXML.cxx
2009-05-19 23:53:24 +02:00
frohlich
7dc9eba2d0
Make SimGear compile with osg trunk
...
Modified Files:
simgear/scene/model/SGPagedLOD.cxx
simgear/scene/model/SGPagedLOD.hxx
simgear/scene/sky/cloud.cxx simgear/scene/sky/moon.cxx
simgear/structure/OSGVersion.hxx
2009-05-16 16:18:54 +02:00
frohlich
c9d0eac739
Put some annotations into the loaded models names.
...
Modified Files:
simgear/scene/model/modellib.cxx
2009-04-15 23:03:07 +02:00
frohlich
8f24d924ee
Remove a newline printf, probably left over from development.
...
Modified Files:
dome.cxx
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
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
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
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
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
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
frohlich
22f2fac56b
Modified Files:
...
simgear/scene/model/animation.cxx:
Change factor/offset order for texture animations.
Fixes remaining bug with texture animations.
2008-01-07 22:05:48 +00:00
frohlich
92d8fa1193
Modified Files:
...
simgear/scene/model/SGClipGroup.cxx
simgear/scene/model/SGClipGroup.hxx Update the clip group.
2007-12-31 15:49:01 +00:00
frohlich
9c51bf3edf
Modified Files:
...
simgear/scene/model/animation.cxx: Create animation inputs if not
already there. Fixes broken texture animations from past checkin.
2007-12-31 15:48:02 +00:00
frohlich
cf0e4e6f8c
Modified Files:
...
Makefile.am SGPickCallback.hxx: add proirities for pick callbacks.
2007-12-26 19:19:51 +00:00