Robert Osfield
1e715b6877
From Sukender, "I recently pulled from the GIT mirror and found that "OSG_USE_DEPRECATED_GEOMETRY_METHODS=OFF" hides a little mistake: there is a "#include <osg/Notify>" inside the "osg" namespace, in inlude/osg/Geometry.
...
"
2013-06-24 12:27:19 +00:00
Robert Osfield
261db64a9e
From Farshid Lashkari, "I've attached a small patch that extends the Image::readImageFromCurrentTexture method to support more depth texture pixel formats (16, 24, 32, 32F). In order to compile, I moved some depth pixel format definitions from FrameBufferObject to Image.
...
"
2013-06-24 09:51:30 +00:00
Robert Osfield
0a4bf71fbb
Updated version number after dev release
2013-06-21 19:35:56 +00:00
Robert Osfield
15fea448d8
Added new osg::Array::Binding parameter to osg::Geometry::set*Array(osg::Array* array, osg::Array::Binding binding=osg::Array::BIND_UNDEFINED) methods to make it easier for the user
...
to set the binding without the need to call the deprecated osg::Geometry::set*Binding(osg::Geometry::AttributeBinding)
2013-06-21 09:43:15 +00:00
Robert Osfield
df075ef9bb
Cleaned up usage of BIND_PER_PRIMITIVE where possible.
2013-06-19 16:24:59 +00:00
Robert Osfield
c8fa3244c2
From Jan Ciger, "I have found a problem when building OSG with Qt 5 support. Qt has the
...
following in the qopengl.h header:
# include <QtGui/qopengles2ext.h>
# ifndef GL_DOUBLE
# define GL_DOUBLE GL_FLOAT
# endif
# ifndef GLdouble
typedef GLfloat GLdouble;
# endif
Unfortunately, when building for normal OpenGL (not GL/ES!) on Windows
with MSVC2012, GLdouble is not defined (it is not a macro but typedef)
and the code above produces a conflicting definition, making the
compile fail. I am attaching a bit hackish workaround for this problem
in osg/GL "
2013-06-19 12:19:28 +00:00
Robert Osfield
635993038a
Changed header guard back to original, and removed deprecated enum
2013-06-18 14:52:26 +00:00
Robert Osfield
390316e579
Removed experiment GeometryNew as it's no longer required.
2013-06-18 11:49:03 +00:00
Robert Osfield
7d40c7258f
Clean up up osg::Geometry, removing long deprecated support for array indices and BIND_PER_PRIMITIVE binding that forced OpenGL slow paths. osg::Geometry is now smaller and only supports OpenGL fasts paths.
...
New methods osg::Geometry::containsDeprecatedData() and osg::Geometry::fixDeprecatedData() provide a means for converting geometries that still use the array indices and BIND_PER_PRIMITIVE across to complient
versions.
Cleaned up the rest of the OSG where use of array indices and BIND_PER_PRIMITIVE were accessed or used.
2013-06-18 11:18:28 +00:00
Robert Osfield
1a7f2fcb3e
Introduced new osg::PatchParameter StateAttribute class to wrap up glPatchParameter associated state.
...
Note, osg::Program::setParameter(GL_PATCH_VERTICES,num); is nolonger support and should be replaced by using the new PatchParameter class.
2013-06-11 10:52:37 +00:00
Robert Osfield
8cf9600e2c
Fixed remove and add callback so they properly handle nested callbacks
2013-06-10 10:37:08 +00:00
Robert Osfield
49cfece9d4
Reorder member variables to ensure better packing in memory.
2013-06-05 07:55:05 +00:00
Robert Osfield
4f1e6b28e8
Moved the Array::AttribDivisor into the Array::Binding enum to avoid conflicts in settings between Binding and AttribDivisor.
...
Removed the vertify bindings/shared arrays handling from GeometryNew
2013-06-05 07:27:35 +00:00
Robert Osfield
eb693f6a92
Updates to GeometryNew, Array and ArraDispatchers to clean up GeometryNew so that is no longer uses ArrayData.
2013-06-04 19:04:26 +00:00
Robert Osfield
cbea97009c
Added s/getNormalize(), s/getPreserveDataType(), s/getAttribDivisor() and s/getBinding() to osg::Array base class in preperation for refactor of osg::Geometry and introduction of new features.
2013-06-04 14:55:57 +00:00
Robert Osfield
caa3a06c70
Introduced GeometryNew which is a cleaned up version of Geometry that removes support for array indices.
...
GeometryNew is only temporary and will be renamed to Geometry on the completion of refactoring work and feedback from community.
Ported osggeometry across to use GeometryNew.
2013-06-04 09:32:59 +00:00
Robert Osfield
2dc53ceabb
From Aurelien Albert, Added support for texture swizzle.
2013-06-03 15:10:53 +00:00
Robert Osfield
9b67578c47
Updated version and so_version in prep for 3.1.8 developer release
2013-06-03 14:38:23 +00:00
Robert Osfield
4697b3c68b
From Art Tevs, int and uint Vec classes
2013-06-03 11:38:20 +00:00
Robert Osfield
efe52842fa
From Aurelien Albert, "This submission is made against trunk version and add the loading of "glVertexAttribDivisor" extension."
2013-06-03 09:19:46 +00:00
Robert Osfield
47f574429a
From Marcin Prus and Robert Osfield, moved the key parts of the .dds plugins computeRowWidthInBytes implementation into the osg::Image::computeImageSizeInBytes(..) to
...
address bugs in the computation of image size.
2013-05-28 14:14:45 +00:00
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