mfranz
ad302db9a8
segfault--
2009-06-03 00:08:04 +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
mfranz
13a2b92a32
remove duplicated header entry
2009-05-19 23:53:25 +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
ehofman
56c4ba67c6
* Add a function to create a node after the laste node with the same name
...
(this frees the xml property loader from keeping track of the number of
nodes with the same name that have already been added to the property
tree).
* make some small code cleanups at the core of the property tree.
2009-05-18 00:36:46 +02:00
Tim Moore
7e7ce2f38e
Merge branch 'maint' into next
2009-05-18 00:34:06 +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
mfranz
f91d96b51a
- fix one broken #include path (in a not usually compiled test app)
...
- turn four #include paths from the "foo" form to <foo>
The quotes form is normally only used for headers with path relative
to the including file's path, though the standard doesn't strictly
mandate this. This is consistent with the rest of sg, it makes the
code's intent clearer and helps to find headers. (And it's a few
milliseconds faster, too.)
2009-05-16 16:18:37 +02:00
mfranz
bc19609147
tcpserver: typo
2009-05-16 16:17:39 +02:00
mfranz
1ccaf3a0bd
fix leaks
2009-05-16 16:17:39 +02:00
ehofman
03bfd829da
add a bit of comment
2009-05-02 00:40:09 +02:00
fredb
e1f7a1e0a0
Stuart Buchanan :
...
This patch changes the shader so the diffuse light element is applied based on the co-linearity of the light vector and the viewing vector. I think this makes sense, as the tree textures don't represent a surface themselves.
2009-05-02 00:40:09 +02:00
ehofman
ceeac0ecf0
Revert most of the previous patch, it didn't improve the dome since it wat adjusting the wrong bads
2009-04-15 23:03:07 +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
ehofman
8537cc9edf
Let the fog color transition into the sky dome to give a more natural effect
2009-04-15 23:03:07 +02:00
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