Robert Osfield
ee266255eb
Added scripting support for JumpData, KeyPosition, HomePosition and parts of SlideEventHandler that enable dispatching of user created events.
2014-03-10 19:08:46 +00:00
Robert Osfield
9b299dc4b9
Added ability to replace callback objects via lua scripts to allow one to override callbacks.
...
Added fallback for osgGA::Widget::Extents.
2014-03-07 11:09:25 +00:00
Robert Osfield
9319350176
Added support for osg::Image to the lua plugin.
2014-03-06 10:27:26 +00:00
Robert Osfield
076adcbd82
Implement add, set and get methods for StateSet.
2014-03-04 13:36:13 +00:00
Robert Osfield
218e36b12b
Relaxed the handling of Image objects
2014-03-04 13:35:27 +00:00
Robert Osfield
c6e72ee00b
Fixed handling of OverrideValue
2014-03-04 13:34:23 +00:00
Robert Osfield
2b67196418
From Stephan Huber, fix for handling font paths on a local machine when other files have been source from a remote machine.
2014-02-28 17:38:36 +00:00
Robert Osfield
de09adcaa9
Added MapReverseIterator implementation.
2014-02-27 10:02:55 +00:00
Robert Osfield
46381cb15c
Added MapIteratorObject and support for it in the lua plugin to provide map iterator functionality.
2014-02-26 18:18:08 +00:00
Robert Osfield
9394215d31
Added Map serializer size() method and support for it in the lua plugin. Renamed functions in lua plugin to be more consistent.
2014-02-26 11:01:35 +00:00
Robert Osfield
69e9f2c973
Added support for vector and map containers in osgDB::Serailizer's and lua plugin.
2014-02-26 08:26:51 +00:00
Robert Osfield
4ef5d9eb5f
Added Vector serialization and support in lua plugin top enable script users to set/get vector properties such as osg::Array, osg::PrimitiveSet and children lists.
2014-02-24 10:19:48 +00:00
Robert Osfield
6d68718fba
Fixed handling of enums in Lua plugin.
...
Fixed computation of getNumPrimitives() so that it returns 0 when PrimitiveSet is zero.
Added missing properties to PrimitiveSet serializers
2014-02-13 18:52:41 +00:00
Robert Osfield
cb805d7be5
Added inital cut of PrimitiveSetSet wrappers to scripting
2014-02-13 11:01:36 +00:00
Robert Osfield
42705bff3f
Added full range of Array subclasses to wrappers
2014-02-12 18:10:52 +00:00
Robert Osfield
743a6b049c
Added initial support for wrapping osg::Array in a way that can be used via scripting.
2014-02-12 18:03:53 +00:00
Robert Osfield
2797e8cb7c
Improved support for setting/getting properties via the osg::UserDataContainer.
2014-02-11 18:07:37 +00:00
Robert Osfield
e3a003a08f
Quitened down debug messages
2014-02-11 10:56:51 +00:00
Robert Osfield
a9f8af3fb6
Changed implementation of enums to use strings as lua type to make it easier to do comparisons and track values
2014-02-11 09:43:08 +00:00
Robert Osfield
e21865ee33
Implemented Widget::handle, handleImplementation, traverse and travseImplementation() wrappers to enable them to be extended via scripting
2014-02-10 18:07:26 +00:00
Robert Osfield
31e98b51df
Added support for serailizing and scripting BoundingBox and BoundingSphere objects
2014-02-10 16:44:13 +00:00
Robert Osfield
3dcca431a9
Fixed handling of setting member variables via the Serializers when the value is the default.
...
Added support for more features of the osgDB::Widget class.
Fixed handling of boolean values in the Lua plugin
2014-02-08 17:53:51 +00:00
Robert Osfield
1319c2d281
Added support for enum's in the Lua script integration
2014-02-08 10:39:20 +00:00
Robert Osfield
8ad0ab1f6b
Fixed handling of returns when invoking a script, removed some debug messages, added a warning message when detecting erronous types.
...
Added FocusBehaviour enum to osgGA::Widget serialization
2014-02-07 16:06:57 +00:00
Robert Osfield
6f5e5c23df
Added initial Widget wrapper
2014-02-07 10:46:16 +00:00
Robert Osfield
4016aed62d
Moved experimental Widget class to osgGA
...
Add computeIntersections() to the osgGA::GUIActionAdapter base class to enable intersection tests without needing to directly link to osgViewer.
2014-02-06 17:32:41 +00:00
Robert Osfield
99eb81e743
Added support for casting objects to allow one to access a parent classes methods.
2014-02-06 11:25:37 +00:00
Robert Osfield
ca3737e002
Tweaked the detection of when the position transform for the hull is required.
2014-02-05 11:08:39 +00:00
Robert Osfield
2b8be97297
Added support for a <hull> tag that can be used within <volume> tag.
2014-02-05 11:07:03 +00:00
Robert Osfield
1909093cac
Improved the white space trimming
2014-02-05 11:04:29 +00:00
Robert Osfield
c599189d7d
Added lua-5.2.3 as source code so it can be optinally built as part of the lua plugin, making it possible to work out of the box across all platforms with needing lua as an external dependency.
...
Added the Cmake option OSG_USE_LOCAL_LUA_SOURCE to control whether to build and use the Lua source code in the lua plugin, or look for lua as an external dependency.
2014-02-04 16:49:13 +00:00
Robert Osfield
6bf6d5eeb2
Added test code for nesting a <hull> within a volume tag.
2014-02-04 16:46:33 +00:00
Robert Osfield
488e1692cc
From Stephan Huber, added support for compile source code of lua with the lua plugin
2014-02-04 11:24:01 +00:00
Robert Osfield
f44369777f
Fixed error in the computation of tex coords of Maximum Intensity Projection + Transfer Function rendering.
2014-02-03 15:35:22 +00:00
Robert Osfield
306a4f2d2d
Replaced C cast to long with a static_cast<const void*>() to avoid a build error under Mingw 64.
2014-01-31 19:18:18 +00:00
Robert Osfield
5f8e2bda2f
Added osg::CallbackObject to be used to extend C++ class from scripting languages by providing callback objects assigned to the osg::Object UserDataContainer, with the CallbackObject's Name used to map the "method" provided by the CallbackObject. The CallbackObject is implemented by the script engine to provide the neccessary glue to invoking the script with the appropriate input parameters and handling the output parameters.
...
To the Lua plugin added support for assigned lua functions to C++ osg::Objects via the new osg::CallbackObject mechanism. To invoke the scripts function from C++ one must get the CallbackObject and call run on it.
Renamed ScriptCallback to ScriptNodeCallback to avoid possibly confusion between osg::CallbackObject and the ScriptNodeCallback.
2014-01-31 16:20:29 +00:00
Robert Osfield
4814a5341e
Removed the invocation of gcc on all platforms
2014-01-28 15:28:17 +00:00
Robert Osfield
f7e6f0092c
From Kristofer Tingdahl, "the vertical bar is upside down, and hence not as the documentation says it should be. This is corrected with this patch"
...
From Robert Osfield, changed the example so that the vertical and horizon scalar bars are rotated to the XZ plane so you can see them with the default viewer's camera orientation.
Tweaked the positioning of title text of vertic scalar bar to avoid overlap of text.
2014-01-28 11:01:28 +00:00
Robert Osfield
5292c7ca50
From Laurens Voerman, "I experienced a crash in Geometry::fixDeprecatedData(), on certain files, and brought the problem down to a very simple test file, attached as test3.zip.
...
There are two problems:
1> for DrawElementsUShortPrimitiveType (and UInt) the source_pindex still equals -1 and causes a crash
in DrawElementsUBytePrimitiveType source_pindex is incremented, and in DrawElementsU(Short/Int)PrimitiveType primitiveNum is incremented, but never used
2> The drawelements need to be rewritten as the vertices are reordered.
created a patch for osg stable branch(r14038): attached as Geometry-osg-3.2.zip
and for svn brach(r14044): attached as Geometry_osg_svn.zip"
2014-01-24 17:31:09 +00:00
Robert Osfield
70bfad0371
From Aurelien Albert, "In the "apply" method of osg::FrameBufferObject, the draw buffers are always enabled, even if the target is only "READ_FRAMEBUFFER".
...
This can lead to inconsistency if you bind a framebuffer with multiple attachments in DRAW mode and then a framebuffer with different attachment count in READ mode (for example to manually "blit" from a FBo to another).
On some ATI cards (at least RADEON HD) this also leads to an "incomplete " FBO status
I've added a test to enable drawbuffers only if target is "DRAW" or "READ_DRAW", this solves my problems on ATI cards."
2014-01-24 17:06:32 +00:00
Robert Osfield
fcc34a8b45
From Michael Schanne, "small fix for a duplicate OR operand in KdTree.cpp."
2014-01-24 16:45:45 +00:00
Robert Osfield
1270236715
From Torben Dannhauer, VisualStudio 2013 build fixes
2014-01-24 16:24:59 +00:00
Robert Osfield
8a334e724b
From Kristofer, "The osgSim::ScalarBar has a problem in that if the scalarbar has a color in one end that co-incides with the background color, one cannot see where the scalarbar ends. With this patch, we add a line around the perimiter of the bar to mark it.
...
Secondly, we thought the text-annotation missed ticks that mark out precisely where on the bar the texts relate to, so we added that as well."
2014-01-24 16:19:38 +00:00
Robert Osfield
8ae57c2797
From Marc Helbling, "I am sending a small fix in the PLY pseudo-loader; the extension was checked in plyfile.cpp thus preventing the loading of any .PLY file (extension in uppercase). The extension filtering is already handled by ReaderWriter::acceptsExtension in a case unsensitive way."
2014-01-24 16:01:59 +00:00
Robert Osfield
eb56080277
Fixed warnings
2014-01-24 15:40:18 +00:00
Robert Osfield
91b7104a92
Changed the handling of single window configurations so that simply reuse the View::getCamera() instead of creating a slave.
2014-01-24 14:26:25 +00:00
Robert Osfield
f0df819cbf
Fixed crash when reading a viewer configuration file where the EventVisitor was being re-assigned but left a dangling pointer
2014-01-24 11:37:35 +00:00
Robert Osfield
29ab577bc3
From Stephan Huber, "attached is a new zip containing two small fixes:
...
* forwarded touch-events do have a correct input-range from 0 .. 1
* I refactored sending touch-events per osc so the receiver can detect a TOUCH_ENDED better"
2014-01-24 10:10:43 +00:00
Robert Osfield
4886a8941d
Fixed warnings
2014-01-23 19:55:37 +00:00
Robert Osfield
d8482ef1ba
From Kristofer Tingdahl,"we have a bunch of classes that inherit osg::Node, and they create their own, internal geometry which is passed into the render bucket at the cull-traversal. Last week, we realised that these classes are not accounted for when doing an ComputeBoundVisitor- traversal, as there is no specialization in ComputeBoundVisitor for them.
...
One solution is naturally to create a new class that would inherit the osg::ComputeBoundVisitor, and use that. I don't like that idea as the ComputeBoundVisitor does actually have what I need - it is only hidden in a protected function.
I am therefor suggesting a slight generalization of the ComputeBoundVisitor with the attached patch, which is tested.
The patch has two parts:
we add applyBBox() so that one can use that in a customized traverse-function and add a bbox to the visitor. I considered calling this function expandByBBox(), but I though applyBBox was better.
The MatrixStack is made available to the outside world. That enables a traverse-function to do whatever it wishes.
I do actually only need one of the two, as I can implement what I wish either way, but adding getMatrixStack() will make more generic expansions possible.
"
From Robert Osfield, changed the name of the new applyBBox(..) method to applyBoundingBox(..) to keep it's naming more consistent with the rest of the OSG.
2014-01-23 16:48:29 +00:00