Robert Osfield
6a4741cf54
Moved local variable into local scope to avoid it being created when not used.
2013-03-26 17:03:22 +00:00
Robert Osfield
93e6a59c9a
From Aurelien Albert, "There is a little bug in the osg::Group::insertChild method :
...
If the index is more than the size of _children vector, the new child is pushed at the end of the vector, but the index value is unmodified, so an incorrect value is passed to the "childInserted" method."
2013-03-11 17:16:32 +00:00
Robert Osfield
68fdae5761
From Lukasz Izdebski,"added support for gl_SampleMaski."
2013-02-13 16:29:03 +00:00
Robert Osfield
8ed0780967
Added .get()'s to fix compilation when ref_ptr<> type conversion is disabled
2013-02-05 18:22:46 +00:00
Robert Osfield
6ec15736cd
Standardized use of GL_HALF_FLOAT_NV and GL_HALF_FLOAT_ARB to GL_HALF_FLOAT
2013-01-31 16:26:06 +00:00
Robert Osfield
26a8f63212
From Wang Rui, "In the attached files I've added the Compute Shader support for OSG, as well as serializer updates and a new osgcomputeshaders example. My submission also include a setComputeGroups() function in Program for setting compute-shader work groups, and a bindToImageUnit() function in Texture for binding textures as image variables in shaders.
...
All code are tested on Windows 7 + NVIDIA GFX 570 with the latest GeForce 310.70 Driver (BETA), which could support OpenGL 4.3.
Compute shader information can be found at "http://www.opengl.org/registry/specs/ARB/compute_shader.txt "
"
2013-01-25 11:54:03 +00:00
Robert Osfield
83f9d0f3e6
Added Options support to ImageSequence LOAD_* functionality
2013-01-18 17:11:49 +00:00
Robert Osfield
a0980734ac
Added LOAD_AND_RETAIN_IN_UPDATE_TRAVERSAL and LOAD_AND_DISCARD_IN_UPDATE_TRAVERSAL ImageSequence::Mode's to allow for ImageSequence usage without using background paging threads, instead loading all the images on demand in the update traversal.
2013-01-18 16:21:17 +00:00
Robert Osfield
a00c5e3a20
Fixed handling of image colour space conversion when pixel format changes
2012-12-11 17:45:20 +00:00
Robert Osfield
68c1360c96
Added automatic conversion of RGB to RGBA when doing REPLACE_ALPHA_WITH_LUMINANCE colour space conversion.
2012-12-11 17:27:22 +00:00
Robert Osfield
eed71f647d
From Stephan Huber, "* imageio: removed ReaderWriterImageIO_IOS.cpp, refactored ReaderWriterImageIO to work on OS X and IOS
...
* avfoundation: added support for IOS (CoreVideo-support is still in development, works only for SDK >= 6.0, set IPHONE_SDKVER in cMake accordingly)
* zeroconf: added ZeroConf-device-plugin (Mac/Win only, linux implementation missing) to advertise and discover services via ZeroConf/Bonjour, on windows you'll need the Bonjour SDK from Apple
* osgosc: modified the example to demonstrate the usage of the ZeroConf-plugin (start the example with the command-line-argument --zeroconf)
* SlideShowConstructor: enable/disable CoreVideo via a environment variable (P3D_ENABLE_CORE_VIDEO)
* RestHttp: mouse-motion-events get interpolated
* RestHttp: unhandled http-requests get sent as an user-event to the event-queue, all arguments get attached as user-values to the event
* modified some CMakeModules to work correctly when compiling for IOS
* fixed a compile-error for IOS in GraphicsWindowIOS
* some minor bugfixes"
2012-12-05 17:15:53 +00:00
Robert Osfield
5a88734598
Moved the expansion of the key codes into ApplicationUsage so that help is only generated for non zero keycodes.
2012-12-05 10:13:51 +00:00
Robert Osfield
a31d603f9a
From Stephan Huber, "Attached you'll find a new ImageSequence.cpp which will fix an issue I had when moving the mouse cursor over the left window-border, as the index becomes negative. And I added a UdpSocket.cpp-file with more debuggin-output via some sprinkled printf-calls. "
2012-11-22 15:13:46 +00:00
Robert Osfield
4b4327aaae
Moved static for local to global scope in Uniform.cpp and removed the local static usage in Registry.cpp
2012-11-21 14:27:54 +00:00
Robert Osfield
933baf5db4
Changed COLOUR to COLOR to be consistent with OpenGL spelling
2012-11-13 13:32:01 +00:00
Robert Osfield
92975a01fd
Moved colour space conversion of volumes from the osgvolume example into osg/ImageUtils and added support for colorSpaceConversion="MODULATE_ALPHA_BY_LUMINANCE","MODULATE_ALPHA_BY_COLOUR","REPLACE_ALPHA_WITH_LUMINANCE" and "REPLACE_RGB_WITH_LUMINANCE" to .p3d <volume> tag
2012-11-13 13:16:10 +00:00
Robert Osfield
b51bbaa406
Added check to avoid doing update when the imagesequence is empty.
2012-11-08 14:15:59 +00:00
Robert Osfield
014f13f774
Refactored ImageSequence to better handle random access usage.
2012-11-08 11:19:31 +00:00
Robert Osfield
7cb6e103f4
Quitened down debug output
2012-11-05 12:21:34 +00:00
Robert Osfield
9271b53c56
2012-11-01 14:29:26 +00:00
Robert Osfield
d879cd7715
Intial work towards support an interaction <imagesequence> tag in Present3D.
2012-10-29 15:58:02 +00:00
Robert Osfield
f9ad1e5673
Added mutex lock to Uniform::addParent()/removeParent().
2012-10-22 16:21:04 +00:00
Robert Osfield
ad926d7265
Removed the insert of requests in the ImageSequence::_filesRequested data structure so that it always requests files, leaving it up the ImagePager to decide to track duplicates
2012-10-09 16:14:21 +00:00
Robert Osfield
47c5ddbce5
Improved ImageSequence's handling of seek() and added a simply hack to ImagePager to prevent the number of requests accumulating.
2012-10-05 10:37:36 +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
4896edda56
From Thomas Hogarth, "Apple have decided in their eternal wisdom to do away with separate depth and stencil buffers on iOS from version 5 and above.
...
Attached are changes to GraphicsWindowIOS.mm to support setting up the new buffer type when compiling for iOS5,
also attached is a small change to FrameBufferObject.cpp to report support for packed depth stencil via the
GL_OES_packed_depth_stencil extension.
For anyone reading this you can attach a packed depth stencil to your FBO like so
_rttCamera->attach( osg::Camera::PACKED_DEPTH_STENCIL_BUFFER, GL_DEPTH24_STENCIL8_EXT );
Luckily GL_DEPTH24_STENCIL8_EXT happens to have the same value as iOSs GL_DEPTH24_STENCIL8_OES"
2012-09-27 08:34:56 +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
a5478cf910
From Nico Kruithof, "There is a small typo in the ShapeDrawable code for a sphere. There was a gl.Begin(GL_QUAD_STRIP) that was never closed, nor used.
...
"
2012-09-05 10:19:01 +00:00
Robert Osfield
5c9a302beb
Added GL_RGBA8 and GL_RGBA16 entries to the Image::computePixelFormat() and improved he readability of the method by inserting line spacing.
2012-09-05 09:08:25 +00:00
Robert Osfield
e489767f71
Fixed bug in GLBufferObjectSet::discardAllDeletedGLBufferObjects() and GLBufferObjectSet::flushDeletedGLBufferObjects(double currentTime, double& availableTime)
...
where the NumberActiveGLBufferObjects was errneously being incremented by numDiscarded.
M osg/BufferObject.cpp
2012-08-23 15:06:27 +00:00
Robert Osfield
42cb311f41
Added FireGL to prefernce list for use glGenerateMipMap
2012-07-24 09:05:04 +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
a821a1cbbc
Restructed the way that the global notify variables are initialized to avoid problems with multi-threaded initialization of these variables.
2012-06-22 16:21:08 +00:00
Robert Osfield
c1a3ab2a5b
Commented out the disabling of use of PBO's in ImageStream, and disabled the use ClientStoreHint in Present3D.
2012-06-12 10:31:50 +00:00
Robert Osfield
9045813aab
Added missing getUniformBlocks implmentation
2012-04-19 10:10:26 +00:00
Robert Osfield
97e4ad473b
Refactored the handling of GLES adaptations of the 1,2,3,4 internal formats and added handling of GL_RGB8_OES and GL_RGBA8_OES.
2012-04-18 10:16:09 +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
96effb3690
From Martin Naylor, "Please find attached a fix for the STD library(tested under Windowsx64
...
VS2008) when atomiccounter is found but not used."
2012-04-06 11:29:29 +00:00
Robert Osfield
95cac0b549
From Ulrich Hertlein, Fix for MatrixTemplate compile errors
2012-04-06 10:42:17 +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
c3a0a8ddc3
Added Traits::getContextVersion(uint,uint)
2012-03-21 11:36:54 +00:00
Robert Osfield
fef2628d00
From Farshid Lashkari, "I've added support for reading contents of cubemap textures to the osg::Image::readImageFromCurrentTexture method. I added a new parameter to the method for specifying which face of the cubemap to read."
2012-03-08 16:05:17 +00:00
Robert Osfield
84ca21655e
Added build problem with using float Matrix.
2012-02-28 11:37:09 +00:00
Robert Osfield
67ce0d5244
Fixed erroneous use #if !defined(OSG_GLES1_FEATURES) && !defined(OSG_GLES2_FEATURES) which should have been #if !defined(OSG_GLES1_AVAILABLE) && !defined(OSG_GLES2_AVAILABLE)
2012-02-21 10:38:12 +00:00
Robert Osfield
48b9b25805
From Johannes Baeurele, "The osg::Image class now contains a 'supportsTextureSubloading()' method that is used inside the Texture2D::apply method. For now it only checks for the etc1 format in which case it returns 'false'. All other formats lead to a return value of 'true'.
...
Without the change the application does not work properly. First I get the notification that an OpenGL error occured. After some more of this error messages I see broken textures on the screen. With the changes attached to this message my application works as intended."
Note from Robert Osfield, changed the Image::supportsTextureSubloading() to be const and to be implemented in the .cpp rather than inline.
2012-02-20 12:03:14 +00:00
Robert Osfield
4457d2a145
From Colin McDonald, "Upgrading to OpenSceneGraph 3.0.1, texture mip mapping stopped
...
working on some junk low-end graphics cards which I still have to
support. They worked ok with osg 2.8 and earlier.
The problem turned out to be with gl proxy textures, which are
unreliable on those devices. Proxy textures are used by the glu
mipmap build routines to determine if a texture size is
supported. The external glu library had a nice fallback
behaviour, so that if proxy textures didn't work then the mipmap
texture was still created. But in the work on the new embedded
glu routines that fallback behaviour has been inadvertently
lost. I have restored the fallback in
src/osg/glu/libutil/mipmap.cpp. It doesn't add any extra
complexity."
2012-02-10 17:20:43 +00:00
Robert Osfield
bd81dd5ff8
From Stephan Huber, attached you'll find a compile fix for the new introduced rowlength-feature on IOS/OpenGL ES builds
2012-02-10 15:57:51 +00:00
Robert Osfield
5743d30dc1
From Olaf Flebbe, "there are two ocurrences where pointer to bool is mixed with bool. Fixes warnings on MacOSX with llvm.
...
diff --git a/src/osg/State.cpp b/src/osg/State.cpp
index 0b88d63..2137bbd 100644
--- a/src/osg/State.cpp
+++ b/src/osg/State.cpp
@@ -109,7 +109,7 @@ State::State():
}
}
- _abortRenderingPtr = false;
+ _abortRenderingPtr = NULL;
_checkGLErrors = ONCE_PER_FRAME;
@@ -689,7 +689,7 @@ bool State::getLastAppliedTextureMode(unsigned int unit,Stat
const StateAttribute* State::getLastAppliedTextureAttribute(unsigned int unit,S
{
- if (unit>=_textureAttributeMapList.size()) return false;
+ if (unit>=_textureAttributeMapList.size()) return NULL;
return getLastAppliedAttribute(_textureAttributeMapList[unit],type,member);
}
"
2012-02-09 15:54:13 +00:00