Robert Osfield
796314c339
Changed NodeVisitor so that is subclasses from osg::Object rather than osg::Referenced to enable it to be used with serialization and scripting
2013-09-24 15:08:23 +00:00
Robert Osfield
3af70f13a3
Removed unnceccesary setNumChildrenRequiringUpdateTraversal from VolumeTile constructor.
2013-09-20 15:43:24 +00:00
Robert Osfield
8f3ee7c649
Added initial cut of white and black lists
2013-09-20 10:44:24 +00:00
Robert Osfield
6e3f893a0e
Added type maps to help with querrying supported type names
2013-09-20 10:04:50 +00:00
Robert Osfield
250d9f2ed7
Introduce osgDB::PropetyInterface class that provided a generic interface for get/setting properties on scene graph objects, utilizing the osgDB serializers to do
...
the actual interface query and set/gets.
2013-09-19 16:19:32 +00:00
Robert Osfield
24ecfb1a48
Added access methods to Serializer to help with using wrappers for other purposes such as script integration.
...
Added Vec*i and Vec*ui support to serializers
2013-09-11 15:44:08 +00:00
Robert Osfield
31cd80cea7
From Giuseppe Donvito, "I'm using OSG 320 and I need to flush a DDS 3D texture on disk.
...
I found a bug on DDS ReaderWriter that generates a false positive on a guard for the size check on writing operation. This is due to a wrong imageSize computation that uses img->getImageSizeInBytes() method instead of img->getTotalSizeInBytes(), that actually ignores the r() dimension, contrariwise taken into account by the function ComputeImageSizeInBytes() later.
The line 1062 on file ReaderWriterDDS.cpp should be fixed with:
[code]unsigned int imageSize = img->getTotalSizeInBytes();[/code]
"
2013-09-10 15:17:59 +00:00
Robert Osfield
898c716841
Added osgPresentation::Show node and implementations with basic property reporting for various internal nodes of presentation graph
2013-09-10 09:23:30 +00:00
Robert Osfield
085bfd83d7
From Wang Rui, "The Python header will look for its libraries using "#pragma comment(lib,"python32_d.lib")" for MSVC. So user-specified libraries will not really be set for the osgdb_python plugin. This small fix may help locate the Python libraries after putting the CMakeLists.txt into src/osgPlugins/python
...
"
2013-09-09 16:02:32 +00:00
Robert Osfield
27b57dbf0c
From Colin Cochran, OES support for point sprites
2013-09-09 14:58:25 +00:00
Robert Osfield
e9697859bd
From Colin McDonald, "Add test for GL_EXT_framebuffer_object extension : osg uses osg::FBOExtensions to check if Frame Buffer Objects are
...
available. But this just checks if the fbo functions can be called.
It doesn't check if the OpenGL renderer supports fbos. For indirect
rendering on linux the client side capability may be different from
the display server, which can lead to mipmapped textures failing to
render. I've added a fbo extension check.
"
2013-09-09 13:33:13 +00:00
Robert Osfield
61ccd56d25
From Laurens Voerman, "two minor fixes, both in a CMakeList.txt file,
...
1> osgmultiplemovies example does not use SDL so needs no link to SDL
2> Added header files to "Plugins osg" project, so visual studio can find the source of
OSG_WARN << "AsciiInputIterator::readProperty(): Unmatched property "
"
2013-09-09 12:33:18 +00:00
Robert Osfield
7050c59cae
Initial cut of Audio/Volume/Movie/Image presentation objects
2013-09-06 09:35:56 +00:00
Robert Osfield
df48d440e4
From Colin McDonald, "Attached are some fixes to build osg using the Solaris Studio compiler.
...
I've also checked the modified files still build ok with other
compilers (Linux gcc, Windows Visual Studio).
osgDB/OutputStream.cpp and osgPlugins/lws/SceneLoader.cpp require
stdlib.h for atoi use.
In osg/Uniform.cpp the compiler complains that base_class is unknown
unless I add a class name qualifier.
Not a build fix, but I spotted a typo in osgUtil/SceneView."
2013-09-05 10:23:05 +00:00
Robert Osfield
94735a8364
From Laurens Voerman, "like the "Bug in ProxyNode serializer" Farshid Lashkari found (svn submit 13754) the PagedLOD serializer attempts to read begin and and brackets.
...
Fix is identical (don't read brackets when num_chidren is zero) and applies both to trunk and 3.2 branch."
2013-09-05 10:08:09 +00:00
Robert Osfield
19f84b52e7
Fixed warnings
2013-09-05 10:04:56 +00:00
Robert Osfield
0d2825e06f
From Alberto Luaces, "current versions of ffmpeg render «url_feof» macro as obsolete. The fix
...
is very simple and it is contained in the attached file."
2013-09-05 08:42:00 +00:00
Robert Osfield
73250601f0
Added missing Model.cpp
2013-09-05 08:22:27 +00:00
Robert Osfield
856ec46467
Added PrintProperties visitor
2013-09-04 16:25:18 +00:00
Robert Osfield
ccf7bbdb50
Added PrintPropertiesAction to osgPresentation
2013-09-04 15:39:17 +00:00
Robert Osfield
9f5e131203
Added Action class NodeVisitor that supports osgPresentation nodes.
2013-09-04 10:33:11 +00:00
Robert Osfield
3c106e4dd7
Added test for osgPresentatation::Group::getSupportedProperties()
2013-09-03 15:50:28 +00:00
Robert Osfield
fdfe3210ce
Added beginings of Text implementation
2013-09-03 10:17:06 +00:00
Robert Osfield
f5deda56a6
From Farshid Lashkari, "The ProxyNode serializer was not correctly reading the "Children" field. It conditionally writes the begin/end brackets, depending on whether it has children. However, during input it unconditionally attempts to read the begin/end brackets. I've modified the code to only read the brackets if it has children."
2013-09-02 10:56:48 +00:00
Robert Osfield
b9ecec6452
Refactored the use of epsilon in the clamping of the start/end points of the LineSegmentIntersector to better handle numerical precision issues.
2013-09-02 10:56:14 +00:00
Robert Osfield
698365e47f
Fixed double copy in StackedTransform copy constructor
2013-09-02 09:12:24 +00:00
Robert Osfield
820ba45fab
Added Audio, Image, Movie, Model and Volume class to osgPresentation.
2013-09-01 17:24:35 +00:00
Robert Osfield
ef32fab30e
Added color property to FontData parsing
2013-08-23 11:42:52 +00:00
Robert Osfield
d7038e1be1
Quitened down debug message
2013-08-22 13:39:36 +00:00
Robert Osfield
11685a3e0c
Removed debug messages
2013-08-22 12:37:49 +00:00
Robert Osfield
79c9aa7d02
Quitened down debug message
2013-08-22 12:07:55 +00:00
Robert Osfield
db449b9e09
Added warning when model file has not be found
2013-08-22 10:09:21 +00:00
Robert Osfield
464628b5c4
Reduced debug message level, and added a notify message for when an image isn't loaded
2013-08-22 10:05:29 +00:00
Robert Osfield
fcde15e136
Added test for serializers and fixed serializers
2013-08-22 07:49:22 +00:00
Robert Osfield
c678fed113
Added initial classes for present3D refactor
2013-08-21 19:54:03 +00:00
Robert Osfield
4e3715d4bb
Moved old osgPresentation source files to osgPresentation/deprecated subdirectory.
2013-08-18 18:10:39 +00:00
Robert Osfield
bd7ec9c5f7
Added initial cut of basic scripting support, introducing an osg::Script object to wrap up the individual scripts, osg::ScriptCallback for assigning a Script as node callback and an osg::ScriptEngine base class that plugins implement to provided support for specific scripting languages.
...
Provided are lua, python and V8 (for javascript) plugins that just open up enough of a link to the respective libs to run a script, there is no scene graph <-> script communication in current implementation.
2013-08-09 16:51:06 +00:00
Robert Osfield
babd6e0ee7
Removed CameraNode reference
2013-08-09 11:00:55 +00:00
Robert Osfield
93ebfd6217
Added translucent version of cushion which isn't depth tested to enable one to see the cursor even when it's behind other objects
2013-08-08 17:21:20 +00:00
Robert Osfield
82401defc7
Added osgPresentation::Cursor class to wrap up 3D cursor in the scene functionality
2013-08-08 16:49:33 +00:00
Robert Osfield
0c609bc17e
From Aurelien Albert, "I've go some problem with the method "State_Utils::replace" : if the original_phrase is empty, it leads to an infinite loop.
...
Here is a path to prevent this."
2013-08-05 12:00:34 +00:00
Robert Osfield
5f6a1f4093
From Anish Thomas, added catch for to an empty DrawElementsUInt creation.
2013-08-01 11:25:02 +00:00
Robert Osfield
14f63cbe67
From Ulrich Hertlein, "Based on the exchange on osg-users I went ahead and reworked shp/XBaseParser to avoid
...
weird behaviour (closing stdin) and leaking file descriptors, as well as some const-ness."
2013-08-01 10:28:12 +00:00
Robert Osfield
46ec50aecb
From Sebastian Messerschmidt, "Seems like your re-factoring didn't really produces the correct results.
...
You can check with the tester2.flt provided earlier and check with the result image.
I double checked this with OpenFlight creator, and it seems the yaw is broken.
With my initial quaternion version is seems correct and if I change the
float cos_yaw = cosf(osg::inDegrees(yaw));
float sin_yaw = sinf(osg::inDegrees(yaw));
to be
float cos_yaw = cosf(osg::inDegrees(-yaw));
float sin_yaw = sinf(osg::inDegrees(-yaw));
it seems to work as well."
2013-08-01 10:04:05 +00:00
Robert Osfield
837a680849
From Tom Jolley, "I found a couple more bugs after closely looking at the small piece of deprecated geometry in my model. There were problems with more than one primitive in a couple places. The first was the number of vertices were not being accumulated for DrawArraysPrimitiveType (caused another crash). The second is I had to move target_vindex and source_pindex before the PrimitiveSetList loop so they don't get reset on the next primitive (otherwise you end up with a lot of zeros in per vertex lists)."
2013-08-01 10:00:31 +00:00
Robert Osfield
07365c1073
Added osg::RenderInfo::pushRenderBin()/popRenderBin() and RenderInfo::getRenderBinStack() and getCameraStack() access methods for getting access to the current RenderBin/RenderStage.
2013-08-01 07:19:45 +00:00
Robert Osfield
364e2765e7
Added Intersector::get/setEpsilon(double) to allow users to control what epsilon is used by the LineSegmentIntersector when doing testing of itersections with bounding boxes
2013-07-31 13:11:49 +00:00
Robert Osfield
9878a83894
From Tom Jolly, "I ran across this error reading one of our older files. An iterator was being changed inside a loop that caused a crash."
2013-07-31 06:56:31 +00:00
Robert Osfield
56cb7de72a
From Sergey Kurdakov, fixed GLES2 invalid enumerant warning by disabling the check against GL_MAX_TEXTURE_COORDS under GLES.
2013-07-31 06:42:49 +00:00
Robert Osfield
0620f249a5
Changed default of serialize draw to off
2013-07-24 17:30:46 +00:00