Robert Osfield
975aea4a2b
From Sukender, "Factorized the depth loop ("while ( lastDepth >= _nodePath.size() )...") into a method called updateCurrentDaeNode(). Added missing calls into apply(osg::LightSource &) and daeWriter::apply(osg::Camera &) and daeWriter::apply(osg::CameraView &)"
2011-01-19 09:53:34 +00:00
Robert Osfield
0ed6049390
From Sukender, "Fixed ReaderWriterDAE::ConvertFilePathToColladaCompatibleURI(): It now handles paths containing '#' character as expected."
2011-01-19 09:36:21 +00:00
Robert Osfield
45f2b29a77
From Sukender and Robert Osfield, clean up of options
2011-01-19 09:34:26 +00:00
Robert Osfield
bc6a94c5b3
From Michael Platings, "I've attached a fix for a subtle bug that causes animations (and quite possibly other things) to be serialized incorrectly.
...
For the following code:
#define MYMACRO(NAME) myOutputStream << #NAME;
MYMACRO(Group)
you would expect that "Group" would be output. However, as there are many overloaded operator<< functions, none of which take a const char* argument, the function that's actually called is operator<<(bool). Hence what actually gets output is "TRUE".
An actual example of this is in serializers\osgAnimation\Animation.cpp, WRITE_CHANNEL_FUNC2.
So the simple solution to this is to add operator<<(const char*), attached.
"
2011-01-18 16:14:24 +00:00
Robert Osfield
f2f9bb11b0
Moved the StateSet query and texcoord settings to within the if (vertices) block to avoid
...
an attempt to dereferences geometry->getStateSet() when non Geometry drawable is intersected.
2011-01-18 15:00:36 +00:00
Robert Osfield
57cf04a6bb
Fixed CompileSet so it returns true when there is nothing to compile at all.
2011-01-18 11:20:53 +00:00
Robert Osfield
bf99528322
Build fix
2011-01-18 09:54:47 +00:00
Robert Osfield
11cd5a89ed
Implemented better coupling of DatabasePager and IcrementalCompileOperation,
...
removing functional duplication and opening the door to dynamic enabling/disabling
of pre compile based on load.
2011-01-17 17:17:19 +00:00
Robert Osfield
45bd464942
Added getNum methods
2011-01-17 09:10:14 +00:00
Robert Osfield
4525dce70e
First steps on the path to integrating ImageProcessor
2011-01-15 18:12:19 +00:00
Robert Osfield
2b3bba8587
From Guy Volckaert, "Changes to the openflight plugin to support replacing double sided polygons by 2 opposite facing polygons. This is sometimes required to resolved lighting and intersection issues. A new import option was was added to activate this feature called "replaceDoubleSidedPolys".
2011-01-14 14:30:19 +00:00
Robert Osfield
fac9992bca
From Sukender, "- Lowered one notify level (it's now coherent with the "if" just above)"
2011-01-14 13:31:07 +00:00
Robert Osfield
942213dc85
From Wang Rui, "I'd like to submit a small new feature to the osgmanipulator example
...
which could fix the dragger size in screen, so that no matter how we
zoom in/out the camera, the dragger will never be scaled.
This is what 3D graphics software like 3dsmax and maya behave, which
helps users select and manipulate draggers more easily.
You may turn on the feature with the new --fixedDraggerSize argument:
# osgmanipulator.exe --fixedDraggerSize --dragger TranslateAxisDragger
cessna.osg
"
2011-01-14 12:08:46 +00:00
Robert Osfield
a4f9c19440
From Sukender, "TIFF plugin now outputs messages coming from libtiff.
...
"
2011-01-14 12:03:37 +00:00
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
7c30f204e8
Updated so version number
2011-01-13 18:49:12 +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
762f8d5360
Fixed comment
2011-01-12 17:39:35 +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
5ed5221178
From Wojciech Lewandowski, "We encountered a problem when we tried overloading StandardManipulator class. Linker was unable to find StandardManipulator::AnimationData methods. Prefixing AnimationData with OSGGA_EXPORT removed the issue.
...
Fixed header is attached."
2011-01-11 17:20:25 +00:00
Robert Osfield
652c274d09
From Chris Hanson, "As an extension to this excellent work:
...
http://forum.openscenegraph.org/viewtopic.php?t=7285
This file adds the same string API wrapper to the State object for other older apps that
track Uniforms by string. The original comment about performance is preserved."
2011-01-11 17:18:44 +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
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