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
Robert Osfield
244e751146
From David Fries, "The ffmpeg lockmanager was introduced in ffmpeg 52 30 1, but
...
later backported to 52 20 1, so add that to the version check
in ReaderWriterFFmpeg.cpp."
2010-12-12 09:40:16 +00:00
Robert Osfield
b4dad9bac3
From David Fries, "Avoid a terrapage crash with outstanding
...
requests to a removed archive file. ReaderWriterTXP::getArchiveName
will create an archive if it doesn't exist. This is causing a crash
if the terrain is removed and there are outstanding database requests
in the database pager. The request will create a new archive, and as
the archive is newly create doesn't have the materials etc to support
the subtile that was just loaded. To fix the problem getArchiveName
will only return existing archives. createArchiveName was added to
create archives.
"
2010-12-12 09:37:14 +00:00
Robert Osfield
df5210f729
From Wang Rui, "I've found a possible bug in the new SmoothingVisitor implementation
...
(with a great 'crease angle' feature), which will crash if the normal
array is already set but without BIND_PER_VERTEX. I just believe that
we should reallocate the normal array in these cases, as the old
implementation does.
"
2010-12-12 08:56:58 +00:00
Robert Osfield
09ebb061c2
From Cedric Pinson, "Here a small fix about gdal plugin used to read dem file, if you dont
...
setup the log level to INFO it does not work. It's because of this line:
OSG_INFO << " GetGeoTransform == "<<
dataset->GetGeoTransform(geoTransform)<<"
I have just put the function outside of an stream stuff, and it works.
It's possible we have other code like that in other plugins, I guess
it's a side effect of the MACRO stuff about notification."
2010-12-11 15:12:09 +00:00
Robert Osfield
017a03ffe5
Refactor of DatabasePage/IncrementalCompileOperation to use the IncrementalCompileOperator for compiling objects
2010-12-10 15:27:19 +00:00
Robert Osfield
c040b25699
Build fixes to keep up with changes in head inclusions/API in osgDB
2010-12-10 13:22:21 +00:00
Robert Osfield
3d67b7a7eb
From Ulrich Hertlein, "attached are patches to osgTerrain that fix some typos and add a bit of documentation.
...
"
2010-12-08 10:34:29 +00:00
Robert Osfield
ebeed76643
Added protection against the Registry from being deleted prior to the proxy objects unregistering themselves
2010-12-08 09:54:23 +00:00
Robert Osfield
1b42084217
Fixes for benign threading memory contentions.
2010-12-08 09:52:58 +00:00
Robert Osfield
b2cf978ae3
Renamed YES and NO enums with more description names that don't overlap with iOS #define's
2010-12-06 10:35:02 +00:00
Robert Osfield
bc4f2c1209
From Johannes Bauerle, "When trying to use the osgText functionality in an osg application built without support for the fixed function pipeline I got a lot of warning messages about invalid calls.
...
I found two indirect calls to the glTexEnv in the file Text.cpp:
state.applyTextureAttribute(0,getActiveFont()->getTexEnv());
In the attached fix I surrounded these calls with #ifdef's checking for OSG_GL_FIXED_FUNCTION_AVAILABLE to ensure that the above function is only called when the fixed function pipeline is available.
"
2010-12-03 17:50:38 +00:00
Robert Osfield
c70679107d
Removed redundent call.
2010-12-03 17:20:32 +00:00
Robert Osfield
9df56ad858
Commented out debug message
2010-12-03 14:24:23 +00:00
Robert Osfield
06509b9769
Introduced bool Texture2D::textureObjectValid(State) and bool SubloadCallback::textureObjectValid(Texture2D&,State&) method to make it tell Texture2D::apply() whether the texture object is still valid or whether it's no longed valid for the any changes to the image attached to the Texture
2010-12-03 14:18:16 +00:00