Robert Osfield
18c37d14cd
Moved quad buffer definitions into include/osg/Camera
2013-05-27 08:10:42 +00:00
Robert Osfield
1284a0dd40
From Pawel Ksiezopolski, first email: "This submission adds texture buffer object ( defined in GL_ARB_texture_buffer_object extension ) to the osg::Texture* family.
...
TextureBuffer objects may use osg::Texture::bindToImageUnit(), so GLSL shaders are able to use not only texelFetch() function , but also functions defined in GL_ARB_shader_image_load_store extension : imageLoad(), imageStore(), imageAtomicAdd() etc."
second email: "After a while I found that osg::Texture::applyTexParameters() used with TextureBuffer may cause some OpenGL errors ( applying texture filters and wraps to TextureBuffer makes no sense ) so I fixed it."
2013-05-22 12:49:46 +00:00
Robert Osfield
c238a7cca2
From Michael Kapelko, "The provided patch (against SVN revision 13380) adds missing constness to returning calls (without it the user code does not compile)."
2013-05-14 16:18:41 +00:00
Robert Osfield
1a683e2f83
From Ulrich Hertlein, "Attached is a patch that introduces 'static_cast<unsigned int>' on some instances where
...
the code returns '.size()' of a std::vector. This caused some warnings when using clang++
on OS X."
2013-05-14 16:12:21 +00:00
Robert Osfield
f1d5ba4278
Updated version after dev release
2013-05-14 13:34:54 +00:00
Robert Osfield
9402efe38e
Added DisplaySettings::KeystoneHint flag that can be set via --keystone-on and --keystone-off command line parameters, and the OSG_KEYSTONE env var
2013-05-10 17:59:07 +00:00
Robert Osfield
e545627571
Moved Keystone class into osgViewer library.
2013-05-09 15:18:14 +00:00
Robert Osfield
34a6b38983
Preperation for adding stereo support direclty into osgViewer.
2013-04-15 14:21:32 +00:00
Robert Osfield
dd8d7c2839
Updated developer release number
2013-03-21 16:42:09 +00:00
Robert Osfield
ed35a0a07a
Added check against isVertexBufferObjectSupported() in set*Pointer() methods
2013-03-21 16:22:30 +00:00
Robert Osfield
68fdae5761
From Lukasz Izdebski,"added support for gl_SampleMaski."
2013-02-13 16:29:03 +00:00
Robert Osfield
63cd217c77
From Jordi Torres, Android build fix
2013-02-12 15:44:52 +00:00
Robert Osfield
2700c9d5e5
Updated SO version in prep for serialization foramt change
2013-02-07 11:08:34 +00:00
Robert Osfield
00c7e5e552
From Aurelien Albert, "This line,I use the "useVertexAttributeAliasing" mode in my application, and color arrays are not normalized, so shaders get [0.0-255.0] values instead of [0.0-1.0] values.
...
This patch fix this."
and those below, will be ignored
----
M include/osg/State
2013-02-06 14:50:37 +00:00
Robert Osfield
19bfa92c91
Simplified include/osg/Math to use Standard C++ maths headers - <cmath> and <cfloat>
2013-02-06 12:02:05 +00:00
Robert Osfield
5297502a38
Updated version number after 3.1.4 developer release
2013-02-04 14:42:44 +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
45585b78fb
From Laurens Voerman, "I have implemented and tested (on windows only) your suggestion for resetCullingMask(), it's far less intrusive than my previous submission.
...
attached are the changes to current svn (28 Jan 2013 / rev :13312).
"
2013-01-28 14:30:21 +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
f6450a1123
From Lukasz Izdebski, "Adding this GL mode makes possibly to use this GL Modes (added in core OpenGL 3.2) in Windows."
2013-01-25 11:08:32 +00:00
Robert Osfield
5aa1234fa4
Fixed usage of META_NodeVisitor so it doesn't include ""
2013-01-24 18:48:34 +00:00
Robert Osfield
0b1605ed08
From Wang Rui with edits from Robert Osfield, additional GLenums for cross platform build
2013-01-23 16:22:45 +00:00
Robert Osfield
83f9d0f3e6
Added Options support to ImageSequence LOAD_* functionality
2013-01-18 17:11:49 +00:00
Robert Osfield
5fb8cd6a9c
Update SO_VERSION to reflect new API changes
2013-01-18 16:30:55 +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
4a0ce866c0
Updated SO version
2012-12-14 16:30:28 +00:00
Robert Osfield
32c0bc3b39
From Lionel Lagarde, "Here is a correction on the PixelBufferObject getter methods of Image.
...
The set method modify the buffer object of the BufferData while the get method returned the buffer object of the Image.
I've also removed the _bufferObject member of Image (not used anymore)."
--This line, Lionel Lagardeand those below, will be ignored--
M include/osg/Image
2012-12-13 17:35:27 +00:00
Robert Osfield
e64d5e5eca
Added template swapBytes method
2012-12-07 19:04:49 +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
e4a42fa65c
Fixed error in Unfiform set method
2012-12-03 09:50:41 +00:00
Robert Osfield
8b30807ef1
From Paul Martz, build fixes
2012-11-19 11:25:52 +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
014f13f774
Refactored ImageSequence to better handle random access usage.
2012-11-08 11:19:31 +00:00
Robert Osfield
f9fd4342ba
From Stephan Huber, "attached you'll find the latest versions of the QTKit + the AVFoundation-plugin, some changes to osgPresentation and a small enhancement für ImageIO.
...
I fixed some bugs and did some more tests with both of the video-plugins. I integrated CoreVideo with osgPresentation, ImageStream has a new virtual method called createSuitableTexture which returns NULL for default implementations. Specialized implementations like the QTKit-plugin return a CoreVideo-texture. I refactored the code in SlideShowConstructor::createTexturedQuad to use a texture returned from ImageStream::createSuitableTexture.
I did not use osgDB::readObjectFile to get the texture-object, as a lot of image-related code in SlideShowConstructor had to be refactored to use a texture. My changes are minimal and should not break existing code.
There's one minor issue with CoreVideo in general: As the implementation is asynchronous, there might be no texture available, when first showing the video the first frame. I am a bit unsure how to tackle this problem, any input on this is appreciated.
Back to the AVFoundation-plugin: the current implementation does not support CoreVideo as the QTKit-plugin supports it. There's no way to get decoded frames from AVFoundation stored on the GPU, which is kind of sad. I added some support for CoreVideo to transfer decoded frames back to the GPU, but in my testings the performance was worse than using the normal approach using glTexSubImage. This is why I disabled CoreVideo for AVFoundation. You can still request a CoreVideoTexture via readObjectFile, though.
"
2012-10-24 10:43:01 +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
b3f8679b69
From Luc Frauciel, Added sRGB FrameBuffer string
2012-09-20 14:03:47 +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
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
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
583401970a
Fixed typo
2012-08-22 16:39:47 +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
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