Robert Osfield
930f5ab620
From Jeremy Moles, "The version of GCC I use (4.4.3-4ubuntu5) gives the following warning
...
about the Observer header:
/home/cubicool/local/include/osg/Observer: In copy constructor
?osg::ObserverSet::ObserverSet(const osg::ObserverSet&)?:
/home/cubicool/local/include/osg/Observer:66: warning: base class ?class
osg::Referenced? should be explicitly initialized in the copy
constructor
I've been fixing this by hand by using the attached Observer header; it
does exactly what the warning requests. Purely cosmetic, I believe, but
other than that OSG seems to compile w/ -W -Wall just fine."
2010-07-31 10:22:37 +00:00
Robert Osfield
64b26ebeb5
Added debug State::print(std::ostream&) method and extra debug messages in ShaderComposer and ShaderAttribute.
...
Added better shader composition testing in the osgshadercomposition example.
2010-07-10 17:14:59 +00:00
Robert Osfield
46b221a832
Added compile/release and resize of GL objects to ShaderAttribute.
...
Removed the StateAttribute::compose() method.
Fixed the default type value in ShaderAttribute
2010-07-06 12:19:26 +00:00
Robert Osfield
74ae526bb5
Added support for passing on uniforms from StateAttribute
2010-07-06 10:55:54 +00:00
Robert Osfield
751b0498fe
Added basic code injection fields to osg::Shader,
...
creation of main shader to ShaderComposer and
collection of ShaderComponent to osg::State.
Also added very basic shader set up in osgshadecomposition example.
2010-07-05 16:32:58 +00:00
Robert Osfield
9f8670f50d
Implement basic cache in ShadeComposer
2010-07-02 14:18:59 +00:00
Robert Osfield
a55c4b7d70
Added basic ShaderComponent class and beginnings osgshadercomposition example
2010-07-02 12:04:20 +00:00
Robert Osfield
5cac233764
Added beginnings of shader composition with the shells of the ShaderComposer and ShaderAttribute classes. This aren't
...
functional yet, but a useful placeholders for future fucntionality.
2010-06-24 17:15:27 +00:00
Robert Osfield
4ae8eb607f
Updated version number for next dev release
2010-06-21 10:33:46 +00:00
Robert Osfield
da60a3c615
From Jan Peciva, additional comments, and standarisation of throw and handling of mouse wheel.
2010-06-14 15:20:47 +00:00
Robert Osfield
7f7f1f7d0e
Changed types from unsigned int to int's to address warnings, and changed the extension requirements so the GLES2 builds with FBO's where supported
2010-06-01 18:20:38 +00:00
Robert Osfield
656a1b6da5
From Frederic Bouvier, "here is my proposal. It is supposed to be used like this :
...
osg::Camera* c = createCamera();
c->attach( osg::Camera::COLOR_BUFFER0, texture3d, 0,
osg::Camera::FACE_CONTROLLED_BY_GEOMETRY_SHADER );
it works also for cubemap textures and 2d texture arrays
"
2010-06-01 14:12:03 +00:00
Robert Osfield
4a047f2a82
From Michael Platings, introduced osg::State::applyModelViewMaitrx(const osg::Matrix& matrix) method and associated osg::State::_modelViewCache to enable osgText::Text3D to be refactored in away that avoids creating/destroying matrices
2010-06-01 13:33:58 +00:00
Robert Osfield
054d5606fb
From Tim Moore, "This is a patch that allows a ref_ptr to be constructed using an observer_ptr argument, which is locked. This is shorthand for declaring the ref_ptr and then passing it to observer_ptr::lock().
...
"
2010-06-01 11:28:04 +00:00
Robert Osfield
6ba8341683
From Wang Rui, "The Notify header doesn't include the OSG_ALWAYS macro, which is used
...
in the quicktime plugin. The file attached is to fix that small
problem."
2010-06-01 09:23:21 +00:00
Robert Osfield
d8511fa5ca
From Tim Moore, fixed typo and removed redundent include
2010-06-01 09:21:42 +00:00
Robert Osfield
975b95dd33
From Torben Dannhauer, "I added radial fog functionality be using the OpenGL extension 'GL_NV_fog_distance'."
2010-05-31 16:53:41 +00:00
Robert Osfield
6548e4a5a8
Added OSG_DEBUG_DP macro
2010-05-28 17:17:34 +00:00
Robert Osfield
d26a8474e7
Changed the ref_ptr<T> observer_ptr<>::lock() method to be
...
bool observer_ptr<>::lock(ref_ptr<T>&) to avoid the temporary ref_ptr<>'s
being created and destroyed on the stack along with the associated ref/unref() operations
2010-05-28 08:57:48 +00:00
Robert Osfield
e826bfeb3c
Refactored osgQt so that QWebViewImage is now entirely implementated in the header, and osgQt itself no longer compiles it,
...
leaving it to only applications that require it to include the header and it's implementation and with ith the QWebKit dependency.
2010-05-22 15:45:02 +00:00
Robert Osfield
0d2723b984
From Hartwig Wiesmann, "I have added some doxygen documentation to the plane class.
...
"
2010-05-20 17:02:45 +00:00
Robert Osfield
9cf330d7ff
Introduced a alternative implementation of observer_ptr<> that uses ObserverSet rather than an local WeakReference object.
2010-05-20 13:38:28 +00:00
Robert Osfield
b979b585f2
From Tim Moore, fix for deadlock
2010-05-19 13:14:57 +00:00
Robert Osfield
62d69c686f
Fixed warning
2010-05-19 08:22:10 +00:00
Robert Osfield
b3ac6484c1
From Martin Naylor, "Please find attached the modified observer_ptr include for fixing a compiler
...
issue for Windows and VS2008."
2010-05-19 08:08:49 +00:00
Robert Osfield
7ed822fd79
From Tim Moore, typo fix.
2010-05-18 18:01:02 +00:00
Robert Osfield
61121daaab
Updated wrappers
2010-05-17 18:37:32 +00:00
Robert Osfield
65c09c8e0d
From Tim Moore, improved doxygen comments
2010-05-17 14:43:41 +00:00
Robert Osfield
ccd9f31309
Removed signalUnreffed interface
2010-05-17 14:21:53 +00:00
Robert Osfield
f832198128
From Tim Moore, refactore WeakReference/Referenced to avoid signalling the observers when do a unref_nodelete.
2010-05-17 09:03:44 +00:00
Robert Osfield
554adfc8e6
Refactored Observer/ObserverNodePath and DatabasePager to improve their robustness.
2010-05-14 12:24:13 +00:00
Robert Osfield
2b2ea4487a
From Tim Moore, new more robust observer_ptr<> implementation
2010-05-14 12:14:14 +00:00
Robert Osfield
68a1ed2dcf
Fixes for building OSG with OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION set to OFF.
...
Fixed copy and paste error in Camera::getImplicitBufferAttachmentResolveMask().
2010-05-12 11:37:27 +00:00
Robert Osfield
7ef776ec5f
Fixed warnings
2010-04-30 19:41:24 +00:00
Robert Osfield
c2a59415ce
Changed DisplaySetting::instance() to return a ref_ptr<>& rathern than a raw C pointer to enable apps to delete the singleton or assign their own.
2010-04-30 11:48:30 +00:00
Robert Osfield
a6c7fee246
From Alok Priyadarshi, "1. Replaced APIENTRY to GL_APIENTRY which is used by OpenGL ES
...
headers. For desktop GL GL_APIENTRY has been defined as APIENTRY."
2010-04-28 21:22:44 +00:00
Robert Osfield
c019e2f76d
Fixed typo
2010-04-28 21:10:29 +00:00
Robert Osfield
5435f6cf50
From Wang Rui, "Two small bugs were just found when I was writing examples for my book
...
in process: a wrong definition of the OSG_FATAL macro, and wrong logic
inside the KeySwitchMatrixManipulator::getDistance() function. I
believe both were slips."
2010-04-28 20:33:40 +00:00
Robert Osfield
117d949d1f
From Roland Smeenk and Robert Osfield, improvements to the indentation of comments.
2010-04-23 16:35:44 +00:00
Robert Osfield
5d0b84edd0
From Marcin Hajder, "This submission contains Texture2DMultisample osg implementation.
...
Texture2DMultismaple as name suggests provides means to directly access subsamples of rendered FBO target. (GLSL 1.5 texelFetch call).
Recently I was working on deferred renderer with OSG, during that I noticed there is no support for multisampled textures (GL_ARB_texture_multisample extension). After consultations with Paul Martz and Wojtek Lewandowski I added Texture2DMultisample class and made few necessary changes around osg::FrameBufferObject, osg::Texture and osgUtil::RenderStage classes."
and from follow email:
"Fixed. According to ARB_texture_multisample extension specification multisample textures don't need TexParameters since they can only be fetched with texelFetch."
2010-04-22 17:02:22 +00:00
Robert Osfield
a475da35e3
From Mourad Boufarguine, "When compiling the example on VS9, the compiler complain about undefined GL_DEPTH_COMPONENT32F and GL_DEPTH_COMPONENT32F_NV. So I added them to include/osg/FrameBufferObject. The example builds fine and is working for me without crashs unless it is ran whithout argument. I added couple of lines to check for arguments number and print the example usage when needed."
2010-04-21 16:37:28 +00:00
Robert Osfield
c0e9fcbb67
From Tim Moore, "This contains a couple of fixes to support changing FrameBufferObject configurations on the fly; the user changes the camera attachments and calls Renderer::setCameraRequiresSetUp(). The major part of this submission is a comprehensive example of setting up floating point depth buffers. The user can change the near plane value and cycle through the available combinations of depth format and multisample buffer formats."
2010-04-19 11:43:06 +00:00
Robert Osfield
c69ddd6bd5
Added BufferData::ModifiedCallback to provide a mechanism for tracking when a osg::Image::dirty() has been called to signify that an image has been modified.
2010-04-13 18:42:58 +00:00
Robert Osfield
51924431cd
Fixed warnings
2010-04-13 09:42:53 +00:00
Robert Osfield
d10ce23e62
Fixed recursive call due to missing _
2010-03-15 20:09:23 +00:00
Robert Osfield
9015ff7084
Refactored Texture::Extensions to simplify it and make it more efficient.
2010-03-15 10:32:03 +00:00
Robert Osfield
9ab856323d
Added export for PerContextShader.
2010-03-11 14:48:54 +00:00
Robert Osfield
1e1c79f257
Updated version
2010-03-10 16:31:15 +00:00
Robert Osfield
86f491e649
Replaced use of unsigned int/enum mask combinations with int/enum mask combinations to avoid the need for casting enums to unsigned ints,
...
and to avoid associated warnings.
Update wrappers to reflect these changes.
2010-03-05 12:55:08 +00:00
Robert Osfield
273420bb1c
Updated version and soversion numbers
2010-03-05 12:53:08 +00:00