Robert Osfield
740f660ef1
Made TouchData and osg::Object to aid with serialization.
2012-10-05 16:31:23 +00:00
Robert Osfield
2e79a0e2d4
Added set methods to assist with serialization support
2012-10-05 10:07:09 +00:00
Robert Osfield
1796d55bea
From Stephan Huber, OSX and iOS Video support via a QTKit plugin from OSX 10.7 and before, and an AVFoundation plugin for iOS and OSX10.8 and later.
2012-10-02 14:07:12 +00:00
Robert Osfield
03047f3e7f
From Paul Martz, "This change to include/osg/GL correctly includes the OpenGL header on OSX 10.7 when building OSG trunk for GL3. It also adds some CPP defines for compatibility."
2012-09-26 08:42:04 +00:00
Robert Osfield
86a37616f7
Changed dispatch to virtual
2012-09-25 11:04:11 +00:00
Robert Osfield
b3f8679b69
From Luc Frauciel, Added sRGB FrameBuffer string
2012-09-20 14:03:47 +00:00
Robert Osfield
f804d7dd81
From Vladimir Cheaev, "
...
I worked with a osg::Constraint and found strange part of code:
class OSGMANIPULATOR_EXPORT Constraint : public osg::Referenced
{
public:
...
virtual bool constrain(ScaleUniformCommand& command) const { return constrain((MotionCommand&)command); }
virtual bool constrain(const Rotate3DCommand& command) { return constrain((MotionCommand&)command); }
...
If i use osgManipulator::Rotate3DCommand then method Rotate3DCommand::accept(const Constraint& constraint) calls Constraint::constrain(MotionCommand&) instead Constraint:: constrain(const Rotate3DCommand&).
If you replace
virtual bool constrain(const Rotate3DCommand& command) { return constrain((MotionCommand&)command); }
on to
virtual bool constrain(Rotate3DCommand& command) const { return constrain((MotionCommand&)command); }
then all works correctly.
"
2012-09-20 11:27:57 +00:00
Robert Osfield
01c7d87b1a
From Farshid Lashkari, Added GLBeginEndAdapter::reset(), and _overallNormalAssigned, _overallColorAssigned flags to avoid the GLBeginEndAdapter adapter setting colour and normals when none has been assigned.
2012-09-20 11:18:19 +00:00
Robert Osfield
b32cf216a7
Added ReadQueue::size() method to help with debugging.
2012-09-20 11:14:10 +00:00
Robert Osfield
5d5cf26138
Added osgDB::getSortedDirectoryContents and osgDB::FileNameComparator to help with sorting directory contents into alphabetic and numerical order.
2012-09-12 16:02:02 +00:00
Robert Osfield
7fe5db073b
Updated version after 3.1.3 dev release
2012-09-10 08:24:49 +00:00
Robert Osfield
f288f9e996
From Wojciech Lewandowski, "With current trunk I had an error while compiling osg/Image.cpp for IOS simulator / GLES2. Symbol GL_RGBA16 was missing. Adding #define GL_RGBA16 0x805B to Image header solves the problem. "
2012-09-07 14:55:09 +00:00
Robert Osfield
3b8802c5aa
From Piotr Domagalski, "Currently, code using OpenSceneGraph doesn't build with clang due to the way __sync_bool_compare_and_swap() is used in OpenThreads/Atomic header file.
...
I tested it with clang 3.1 and it seems that clang is enforcing the use of the same type for all parameters in this builtin. Looking at the function declaration [1]
bool __sync_bool_compare_and_swap (type *ptr, type oldval type newval, ...)
it seems to be doing the right thing: here the same type is used for *ptr, oldval and newval.
[1] http://gcc.gnu.org/onlinedocs/gcc/_005f_005fsync-Builtins.html#g_t_005f_005fsync-Builtins
"
2012-09-06 10:52:28 +00:00
Robert Osfield
39dcea9ebb
From Colin McDonald and Robert Osfield, converted Traits::sharedContext from GraphicsContext* to osg:observer_ptr<GraphicsContext> to prevent dangling pointer issues.
2012-09-05 21:03:41 +00:00
Robert Osfield
f5a3c40934
Moved the OSG_INIT_SINGLETON_PROXY macro into include/osg/Object to make it more generally useful and added it's usage into the RenderBinPrototypeList initialization.
2012-09-05 13:48:23 +00:00
Robert Osfield
fd2ee19b62
Updated SO version number to avoid collision with new additions to serializers
2012-09-05 09:30:33 +00:00
Robert Osfield
bc533022ae
Added deprecated note to indices entry.
2012-09-05 08:42:14 +00:00
Robert Osfield
30c35cb407
Adjusted the #define's to help GLES2 build
2012-09-03 09:08:16 +00:00
Robert Osfield
794e0e71f4
From Johannes Scholz, fix for writing out of hexidecimal numbers
2012-08-24 15:05:03 +00:00
Robert Osfield
583401970a
Fixed typo
2012-08-22 16:39:47 +00:00
Robert Osfield
284f410436
Added ShadowSettings::s/getMaximumShadowMapDistance(double) property, usage of these property in ViewDependentShadowMap,
...
and setting of it with --max-shadow-distance <double> in the osgshadow example.
2012-08-15 12:40:48 +00:00
Robert Osfield
52861ecbb0
Added a mutex to protect the removal and addition of Uniform and Program to StateSet to avoid parents being invalidated when multi-threading.
2012-08-14 20:15:00 +00:00
Robert Osfield
fb83c2b061
Introduced --near-far-mode into osgshadow and ShadowSettings::setComputeNearFarModeOverride(..) to allow user control of how the cull traversal is optimized for computing the depth range of the shadow map.
2012-08-03 16:14:14 +00:00
Robert Osfield
0a746faa2d
Introduced Texture::Extensions::s/getPreferGenerateMipmapSGISForPowerOfTwo() flag that defaults to false for Radeon, true elsewhere.
...
This is used to workaround mipmapping bugs with ATI/AMD cards.
2012-07-12 16:41:53 +00:00
Robert Osfield
283c2d3ed0
Fixed parameter default value to avoid warning
2012-07-11 08:39:11 +00:00
Robert Osfield
b4d397cfd7
Moved mask settings into ShadowSettings
2012-07-10 15:50:46 +00:00
Robert Osfield
4b220d4fd7
Changed updateCamera(Camera*) to updateCamera(Camera&) to make it clear that a valid Camera object should be passed in.
2012-07-09 17:49:04 +00:00
Robert Osfield
65ab874143
From Riccardo Corsi, introduced CameraManipulator::updateCamera() method that allows more Camera properties to be controlled by the CameraManipulator.
2012-07-09 17:32:13 +00:00
Robert Osfield
2faeaf553b
Added support for setting the <image> paging_mode property to PRE_LOAD_ALL_IMAGES, PAGE_AND_RETAIN_IMAGES or PAGE_AND_DICARD_IMAGE for osg::ImageStream,
...
with PAGE_AND_DICARD_IMAGE set as the default.
2012-06-11 19:54:07 +00:00
Robert Osfield
c39ee015d6
Added ImageStream support to <image> and <stereo_image> tags in .p3d
2012-06-08 10:26:23 +00:00
Robert Osfield
5d3cb4f754
Added osg::ImageSequence support into osgPresentation::SlideShowConstructor and the associated <image> tag in .p3d.
2012-06-08 04:18:28 +00:00
Robert Osfield
1dbb0a7a82
Added Dragger::get/setActivationMouseButtonMask(uint).
2012-05-25 15:32:51 +00:00
Robert Osfield
c21f1f488f
From Jaap Glas, "Added a default parameter to the following constructor in TabPlaneDragger
...
and TabPlaneDragger.cpp:
TabPlaneDragger(float handleScaleFactor=20.0f);
The reason for this is that the default OSG tab sizes are way bigger than
those we used in our application so far. And since handleScaleFactor_
is already a (constant) class member, I see no objection against making
it user defined."
2012-05-25 08:56:25 +00:00
Robert Osfield
476dbf1c33
Fixed for including cmath before osg/Math.
2012-05-02 13:58:34 +00:00
Robert Osfield
d32160abde
Added using base_class::set to the Matrix*Template class to enable the set() method from the base class to be used.
2012-04-27 09:43:25 +00:00
Robert Osfield
de05dd22a8
Restructed how the GL_SAMPLER_* #define's are placed to avoid build problems under GLES.
2012-04-19 14:58:35 +00:00
Robert Osfield
9f93b005cc
From David Callu, "Here the fix for Matrix{2,3,4}x{2,3,4}{fd} defined in Uniform header.
...
My previous patch for Atomic Counter Uniform provide new template implementation
of Matrix{2,3,4}x{2,3,4}{fd}. This new implementation use Column-Major Matrix.
Original code define matrix as Row-Major matrix like other Matrix in OSG, and
my matrix implementation break compatibility with previous code.
For example osg_normalMatrix define in osg::State report by Roland Hill.
Thanks to Paul Martz to spot me when the bug appear."
2012-04-19 10:27:58 +00:00
Robert Osfield
01beb82041
From Mathias Froehlich, "Attached is a change to the slow path geometry dispatch tables that allows the
...
use of 3 component float color vectors."
2012-04-18 09:56:00 +00:00
Robert Osfield
b882467217
Updated version number
2012-04-18 09:50:23 +00:00
Robert Osfield
95cac0b549
From Ulrich Hertlein, Fix for MatrixTemplate compile errors
2012-04-06 10:42:17 +00:00
Robert Osfield
5e315d5fab
From Wang Rui, "I'd like to submit the changes that will put ObjectProperty and ObjectMark variables into the InputStream/OutputStream class instead of static ones. This should avoid the threading problem and won't repeatedly reallocate memory for the properties. Some of the wrappers will be slightly modified to use the property variable stored in the InputStream/OutputStream as well."
2012-04-05 13:53:47 +00:00
Robert Osfield
c0bd5cda99
From Magnus Kessler, typo and documentation fixes
2012-03-29 15:08:15 +00:00
Robert Osfield
68412a1784
From Magnus Kessler, "remove unecessary conversion from float in double precision method"
2012-03-29 09:57:47 +00:00
Robert Osfield
aab27e106c
From David Callu, "Here an update of osg::Uniform :
...
- add non square matrix
- add double
- add all uniform type available in OpenGL 4.2
- backward compatibility for Matrixd to set/get an float uniform matrix
- update of IVE / Wrapper ReadWriter
implementation of AtomicCounterBuffer based on BufferIndexBinding
add example that use AtomicCounterBuffer and show rendering order of fragments,
original idea from geeks3d.com."
2012-03-29 09:43:12 +00:00
Robert Osfield
59d6931b59
Added int packing parameter to Image::readPixels(..)
2012-03-29 08:27:21 +00:00
Robert Osfield
14a563dc9f
Ran script to remove trailing spaces and tabs
2012-03-21 17:36:20 +00:00
Robert Osfield
1e35f8975d
For all OSG_GL*_FEATURE #defines changed 1's to true and 0's to false.
2012-03-21 16:02:32 +00:00
Robert Osfield
c3a0a8ddc3
Added Traits::getContextVersion(uint,uint)
2012-03-21 11:36:54 +00:00
Robert Osfield
cee53f6adc
Updated version number
2012-03-21 11:26:09 +00:00
Cedric Pinson
df82754203
Changed osgAnimation::StackedTransform::update(t). It can now be used for custom usage
2012-03-11 22:05:29 +00:00