Robert Osfield
391ab02573
From Jan Peciva, "I am sending four fixes to obj plugin:
...
- materialName used to be not stripped of whitespace, making number of models
fail to load materials; now fixed
- stripping was considering spaces only, thus models using tabs had problems
to load correctly; fixed
- fixed references to textures; they did not performed conversion to native
directory separators
- make d (dissolve) takes precedence over Tr (transparency); there seems to be
a confusion about the Tr item - some claiming 1 to be opaque and 0
transparent, while number of models uses exactly the opposite. d (dissolve),
if present in the model, does not suffer from this confusion, thus using it
instead fixes the problem for many many models.
I put many comments to the file concerning d and Tr item as others may further
investigate. Let me know in the case of any problems."
2014-04-07 14:17:57 +00:00
Robert Osfield
64979a0c1a
From Marcel Pursche, "The problem is that when OpenThreads is build with the Linux pthreads implementation all threads inherit the processor affinity from their parent thread.
...
This behavior is also described in the pthreads man page (http://man7.org/linux/man-pages/man3/pthread_create.3.html ):
>
> Linux-specific details
> The new thread inherits copies of the calling thread's capability
> sets (see capabilities(7)) and CPU affinity mask (see
> sched_setaffinity(2)).
>
To prevent this behaviour I wrote a patch that explicitly sets the affinity mask to all cores of the system, if no specific affinity was defined with PThread::setProcessorAffinity(unsigned int) .
Thank you!
"
2014-04-07 14:11:14 +00:00
Robert Osfield
20c0292e97
From Bjorn Blessing, "I got bored of the constant reports of “missing chunk 0xA08A” when reading 3ds-files. After a bit of research I discovered that this property is related to the advanced transparency settings for the material in 3D studio. In this case the falloff parameter. These controls affect the opacity falloff of a transparent material. And the property chooses whether falloff is in or out. I have added the property to the file reader BUT no changes are made to make this property propagate into the osgMaterial. But at least we get rid of this annoying error message."
2014-04-07 14:03:40 +00:00
Robert Osfield
88aa9ac5de
From Bjorn Hein, "please find attached a small fix for RayIntersector.cpp.
...
* Changes are made against trunk
* Reason: crashes when using specific constructor from RayIntersector
* Info: Line 42: added in constructor
RayIntersector::RayIntersector(const Vec3d& start, const Vec3d&
direction) missing initialisation of _parent
"
2014-04-07 13:52:01 +00:00
Robert Osfield
67b4d5412b
Fixed iso surface shaders
2014-04-04 11:25:51 +00:00
Robert Osfield
d773d358c4
Improved the setting of sample density/ratio so that they are consistent
2014-04-01 18:56:57 +00:00
Robert Osfield
e5fe59799d
Fixed handling of volume tiles with a region.
2014-04-01 18:33:02 +00:00
Robert Osfield
27b71e3927
Added cube and hull rendering support
2014-03-27 12:47:44 +00:00
Robert Osfield
2f8b0f7a70
Restructured the handling of TileData to make it more extensible and flexible.
2014-03-19 17:56:40 +00:00
Robert Osfield
d7944b6ca9
Addd ExteriorTransparencyFactorProperty for support of upcomming functionality of rendering a cube volume with a hull volume inside it.
2014-03-18 18:14:15 +00:00
Robert Osfield
ed724a730e
Added support for animating volume hulls.
2014-03-17 15:54:52 +00:00
Robert Osfield
d703a2df44
From Stephan Huber, "attached is a fix for the rest-http-plugin which should fix the font-issue reported by Phil. The old implementation did forward all requests to the internal http-server via user-events. This prevented error-reporting for missing files, as the request was accidentally handled by the plugin. As a request for missing font-file succeeds and returned an empty file, the curl-plugin hands the data happily to the freetype-plugin which failed trying to load an empty font-file, obviously.
...
My fix was to rename the standard request handler to a specialized user-event-handler which handles only requests for "/user-event“
So fonts should work on iOS when loaded remotely, even when a local file is available and with the resthttp-plugin serving the presentation.
"
2014-03-13 14:02:50 +00:00
Robert Osfield
7f206fbf80
From Stephan Huber, fix for building lua plugin from local source
2014-03-13 13:59:34 +00:00
Robert Osfield
ea865d0ff9
Added support for directly invoking scripts using <run-script> and <run-script-file> to enable scripts to interact with each other.
2014-03-13 10:28:18 +00:00
Robert Osfield
75982f3379
Improved support for passing events between scripts and Present3D application
2014-03-12 11:01:09 +00:00
Robert Osfield
8f30a262f4
Added PresentationInterface class to make it more convinient to access the current presentation from scripting languages
2014-03-11 10:52:10 +00:00
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