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
32a4c0da2e
Added more flexible testing of Text3D
2011-01-11 11:39:50 +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
4cb58c703c
From Per Fahlberg, "The FindCOLLADA.cmake module failed to find the static libs for the latest collada dom, attached is the fixed file."
2010-12-23 10:07:27 +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
8202ccc679
From Jean-Sebastien, "In my auto-build today there are 3 errors caused by using a ref_ptr<T> in a function taking a T* when building without the implicit conversion."
2010-12-23 09:59:35 +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
c9c329e7c4
Moved the GL3 include to within the code block that handles GL1/GL2
2010-12-20 12:17:40 +00:00
Robert Osfield
959b8e6d1d
Fixed memory leak by introducing use of ref_ptr<>
2010-12-20 12:03:56 +00:00
Robert Osfield
9818c0fee2
From Kim Seokhwan, "Error fix in example/osganimationmorph/osganimationmorph.cpp
...
in this file,
function,
osg::Geometry* getShape(const std::string& name)
(line 51)
tries to use null pointer when model is not provided.
I added simple comment in attached file."
2010-12-20 12:02:50 +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
348870d7ba
Added --speed <ratio> command line parameter to osgviewer to enable control of the speed that animation paths are played back at.
2010-12-17 11:19:29 +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
8b8dda86af
Removed no longer used static member variables
2010-12-15 16:30:48 +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
cac4f3afb5
Added --speed option and output of buffer object and texture object pool stats at the end of the animation path.
2010-12-14 20:07:41 +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
5f8def64ff
Improved the parsing of output filename
2010-12-14 14:32:16 +00:00
Robert Osfield
b44baea35c
Added GLBufferObjectManager::reportStats()
2010-12-14 13:43:32 +00:00
Robert Osfield
bc07bab9a7
From Alan Dickenson, "I modified the CPack CMake files to provide the ability to easily create packages of the OpenSceneGraph components.
...
I modified the OsgCPackConfig.cmake.in and OsgCPack.cmake files to expose access to select the package generator mechanism through cmake CPACK_GENERATOR option. The user can specify the type of package generator (i.e. rpms. deb, NSIS, tar, zip, etc) that they would like to use from the CPack supported packages/installation methods.
I also changed the CPACK_PACKAGE_FILE_NAME to use OSG_PACKAGE_FILE_NAME which contains the name of each component so all of the component packages can be generated without renaming the files.
This should make it even easier to create distribution packages for the various linux, windows and mac distribution methods supported by CPack."
2010-12-14 10:42:08 +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
c0937c1614
From Wang Rui, "A modified version is attached. The blank while generating is in fact
...
used to avoid dual update traversals of the scene, which is not
allowed in my application (but I forgot the reason ;-) Now the blank
problem will disappear.
Inactive mode is also available, using the --inactive mode and
--camera-eye and --camera-hpr to set camera position:
./osgposter --output-poster --poster output.bmp --tilesize 800 600
--finalsize 8000 6000 cow.osg --inactive --camera-eye 0 0 20
"
2010-12-14 08:53:20 +00:00
Robert Osfield
3145837629
Renamed osgviewerQtContext to osgviewerQt, and removed deprecated examples from CMakeLists.txt
2010-12-13 17:54:27 +00:00
Robert Osfield
10fb8183ec
Moved osgviewerQT and osgviewQtWidget to deprecated as osgviewerQtContext will no be the main Qt example
2010-12-13 17:50:57 +00:00
Robert Osfield
29a8ea2e88
Moved osgbrowser into svn/trunk.
2010-12-13 17:50:00 +00:00
Robert Osfield
a4b0ca0310
Move osgcegui into deprecated
2010-12-13 17:49:37 +00:00