Robert Osfield
ad530c0fc7
From Sukender, "Small submission: - 3DS reader now takes care to not create Texture2D duplicates"
2011-01-14 11:49:55 +00:00
Robert Osfield
a1eabf18b5
Fixed for build with non autoatic ref_ptr<> to C pointer conversion
2011-01-14 11:46:43 +00:00
Robert Osfield
b0dd272186
From Brad Christiansen, "Attached is a fix which implements the lazy loading of optional layers (if requested) in the new osgb/osgt formats."
2011-01-14 11:00:11 +00:00
Robert Osfield
0da6d7f298
From Tim Moore, added missing ImageProcessor header reference
2011-01-13 18:05:59 +00:00
Robert Osfield
1b67e3ad1f
Added ImageProcessor interface class and plugin mechnanism for ImageProcessor implementations to osgDB::Registry.
...
Add NVidiaTextureTools based plugin that provides an ImageProcessor implementation within an nvtt plugin.
2011-01-13 14:59:29 +00:00
Robert Osfield
f61a6aa4e7
Refactored the way that the DatabasePager passes the Terrain decorator node onto the TerrainTile.
...
The DatabasePager now passes the Terrain pointer into the ReaderWriter's via osgDB::Options object,
rather than pushing a NodePath containing the Terrain onto NodeVisitor. This
change means that the DatabasePager nolonger needs to observer the whole NodePath and
will be lighter and quicker for it.
The change also means that ReadFileCallback can now run custom NodeVisitor's on the scene graph without
having to worry about TerrainTile's constructing scene graphs prior to the Terrain being assigned.
Also changed is the NodeVisitor::DatabaseRequestHandler which now requires a NodePath to the node that you wish
to add to rather than just the pointer to the node you wish to add to. This is more robust when handling scenes
with multiple parental paths, whereas previously errors could have occurred due to the default of picking the first
available parental path. This change means that subclasses of DatabasePager will need to be updated to use this new
function entry point.
2011-01-12 19:29:24 +00:00
Robert Osfield
534052f7cb
From Sukender, "FBX plugin did not relay the osgDB::ReaderWriter::Options* when writing images (the writeImage() call). Now it does."
2011-01-11 17:29:47 +00:00
Robert Osfield
1f0a8aff32
Changed dos endings to unix line endings
2011-01-11 17:29:11 +00:00
Robert Osfield
49113e03dc
From Mikhail Izmestev, "Current osgManipulator::AntiSquishCallback stops update traversal of childrens."
2011-01-11 17:23:22 +00:00
Robert Osfield
8dc2607c43
Changed debug messages to INFO
2011-01-11 17:05:24 +00:00
Robert Osfield
3cac9e9603
From Glenn Waldron, "Attached is a fix to State::convertVertexShaderSourceToOsgBuiltIns. The method was incorrectly inserting new declarations before a GLSL "#version" directive, which must always be the first line in a shader. This patch detects the #version directive and ensures that new declarations are inserted after it.
...
Attached is the modified State.cpp file.
I have also attached a sample transcript, showing the new code working properly. I ran it against osgEarth's shaders and it works as expected.
"
2011-01-11 17:04:37 +00:00
Robert Osfield
e4b1b6228d
From Tim Moore, "This patch fixes a race condition in Renderer::ThreadSafeQueue that was causing some notifications of available SceneView objects to be missed. I saw a very noticeable performance problem (60 fps -> 8 fps) in DrawThreadPerContext mode in an osgEarth application before this patch. I had high hopes that this change might fix the much-discussed multiple GPU problem; no such luck, but I think the root cause of that is probably a similar threading issue."
2011-01-11 16:58:17 +00:00
Robert Osfield
88987d194a
From Guy Volckaert, warning fixes
2011-01-11 16:18:49 +00:00
Robert Osfield
74cf034404
Unified more of the 2D and 3D text setup, fixed bugs in Text3D setup
...
which address the problems of black 3D text and the kerning causing problems with font positioning.
2011-01-11 11:39:31 +00:00
Robert Osfield
d59ac54b31
Improved the handling of application argument output when the options are very long.
2011-01-10 13:28:23 +00:00
Robert Osfield
c606604a7e
Added check for invalid face size to prevent a crash
2011-01-05 11:43:37 +00:00
Robert Osfield
a30265de46
Added extra checks to osg::Geometry::verifyArrays(std::ostream&)
2011-01-04 10:21:50 +00:00
Robert Osfield
d644a6dfe3
Added osg::Geometry::verifyArray(std::ostream&) method to enable checks to be done on osg::Geometry to see if the arrays
...
are big enough to handle the primitives used in the geometry.
Added usage of verifyArray into osgfilecache so that it reports any problems on reading files in paged database.
2011-01-03 19:41:06 +00:00
Robert Osfield
25ef1a9e58
Added iterator include
2010-12-24 19:47:31 +00:00
Robert Osfield
0d814bb6b8
Refactored IncrementalCompileOperation to make it more flexible.
2010-12-24 19:19:48 +00:00
Robert Osfield
149200f0e9
Fixed warnings
2010-12-23 13:11:15 +00:00
Robert Osfield
d2c19014ac
Deleted old makefile files that are no longer required now we have CMake
2010-12-23 10:45:43 +00:00
Robert Osfield
007c8b9df6
From Ulrich Hertlein (applied by Robert Osfield), "OpenThreads/win32/Win32Condition.h is not used anymore and could be removed from the
...
repository and win32/OpenThreads.mak and win32/CMakeLists.txt."
2010-12-23 10:05:55 +00:00
Robert Osfield
410b4fd109
Converted FrameStamp::g/setFrameNumber from int to uint
2010-12-22 20:11:05 +00:00
Robert Osfield
b5d4d9954a
From Tim Moore, Dereference the databaseRequest while the queue is locked. This prevents the request from being
...
deleted at an unpredictable time within addLoadedDataToSceneGraph.
2010-12-21 12:54:06 +00:00
Robert Osfield
c38a1eb56d
Introduced a local reference to the appropriate EasyCurl object to avoid seperate getEasyCurl() incurring a mutex lock overhead.
2010-12-21 12:51:15 +00:00
Robert Osfield
56a8df7ba7
Improved indentation to make it more readable and consistent with OSG.
2010-12-21 10:23:31 +00:00
Robert Osfield
7507242891
Cleaned up the frame number increment.
2010-12-21 09:36:03 +00:00
Robert Osfield
fce0121d26
From Paul Martz, Fix for "in expGeometryRecords.cpp lines 813-820, we write the UV list data incorrectly. According to the FLT spec, the data should be grouped per-vertex, not per-layer.
...
We should have:
UV for vertex 0, layer 1
UV for vertex 0, layer 2
UV for vertex 1, layer 1
UV for vertex 1, layer 2
...etc...
Instead, we have this:
UV for vertex 0, layer 1
UV for vertex 1, layer 1
...etc...
UV for vertex 0, layer 2
UV for vertex 1, layer 2
...etc..."
2010-12-21 09:12:18 +00:00
Robert Osfield
89f9aa2ddd
From Andy Skinner, "In this file I’ve changed TriangleFunctor to TemplatePrimitiveFunctor, and added operator() methods for:
...
· points (just look at points in frustum)
· lines (simple line clip—replace the external point)
· quadrilaterals (call operator() for triangles twice)"
2010-12-20 17:04:59 +00:00
Robert Osfield
f3df40aa70
From Andy Skinner, "We use a shared array for our OpenSceneGraph arrays, and the existing (deprecated) OSG plugin casts the Array to IntArray and FloatArray and the like. Because our arrays don’t use FloatArray, this crashes for us.
...
Attached is src/osgWrappers/deprecated-dotosg/osg/Geometry.cpp. It gets the data pointer out and casts it to a pointer to the element type, rather than casting the array object itself. This seems to work."
2010-12-20 16:23:27 +00:00
Robert Osfield
716a00ec59
From Trajce Nikolov, Fixes to avoid cracks in older archives, tested with archives 2.0, 2.1, 2.2 .
2010-12-20 10:49:30 +00:00
Robert Osfield
758bf7c3d9
From Trajce Nicklov, "I went thru the TileMapper today very carefuly and I remove all the tileStack approach - it made everything simplier and I think more proper. Cleaned the code as well. It was tested on huge archive with many lods as well with variable lods. Fix attached."
2010-12-19 13:25:45 +00:00
Robert Osfield
362edaa1b9
From Tim Moore, fix for race conditions in takeOrGenerate() methods
2010-12-17 13:43:41 +00:00
Robert Osfield
d8e3225cd8
Fixed warnings
2010-12-17 11:46:42 +00:00
Robert Osfield
634dd421fc
Fixed the GLBufferObjectSet::deleteAllGLBufferObjets() and TextureObjectSet::deletaAllTextureObjects() methods
...
and improved the checkConsistency() usage so it's now possible to switch if off completed from being compiled in.
2010-12-17 10:59:05 +00:00
Robert Osfield
95feb34ffa
Fixed the size computation
2010-12-15 19:44:29 +00:00
Robert Osfield
0e7cedab3a
Improvements to GLBufferObject and TextureObject pools
2010-12-15 12:34:16 +00:00
Robert Osfield
c26a241c55
Added report of ration of current size to max target size for buffer.
2010-12-14 20:22:34 +00:00
Robert Osfield
3580108b3a
Added AnimationCompletedCallback, s/getTimeScale and s/getTimeOffset() method to enable finer control of AnimationPathManipulator.
2010-12-14 20:07:00 +00:00
Robert Osfield
65f95fe3fe
Added methods for checking sizes of various buffer object/texture object pool sizes.
2010-12-14 19:29:01 +00:00
Robert Osfield
4b4b438d44
Removed redundent MinimumNumberOfTextureObjectsToRetainInCache static variable
2010-12-14 15:28:31 +00:00
Robert Osfield
cc348f86cb
Moved Performer and Inventor plugins into block protected to only compile when not using GLES.
2010-12-14 08:58:27 +00:00
Robert Osfield
bf6d45a531
Have moved gecko plugin to deprecated
2010-12-13 17:36:02 +00:00
Robert Osfield
543b2ee56e
Added resizeGLObjectBuffers(uint) and relaseGLObjects(State*) to BufferData.
2010-12-13 17:09:31 +00:00
Robert Osfield
eb9510eb72
Moved GraphicsWindowQt from osgviewerQtContext into osgQt.
2010-12-13 16:25:50 +00:00
Robert Osfield
c665fdc973
Form Richard Schmidt, "The following features were added:
...
* the glsl plugin now supports processing #includes. The file extension sets the shader type.
* the registry releases gl objects of the shared state manager
"
2010-12-13 12:16:57 +00:00
Robert Osfield
ea5d88e54f
Added TODO notes
2010-12-12 10:00:57 +00:00
Robert Osfield
d9ab15bd4c
From Wojciech Lewandowski, added docs on Swap Method env vars and command line options
2010-12-12 09:58:45 +00:00
Robert Osfield
c12b04368a
From Trajce Nikolov, "attached is a fix for the txp loader (in TileMapper). The code was giving wrong parent tile ids using the stack - I implemented differnt approach for that"
2010-12-12 09:52:29 +00:00