Robert Osfield
db4b7584fb
From Farshid Lashkari, "In many game engines it is common to set the W component of the tangent vector to -1 if the UVs are mirrored and 1 if not. I've updated the osgUtil::TangentSpaceGenerator class to do the same."
2013-06-24 08:18:08 +00:00
Robert Osfield
df3626be27
Fixed author name error introduced by xxdiff
2013-06-21 14:37:35 +00:00
Robert Osfield
59d53b40a1
Removed unneccessary handling of BIND_PER_PRIMITIVE on output code
2013-06-21 14:17:42 +00:00
Robert Osfield
9d9543ca0a
From Pjotr Svetachov, introduced use of osg::observer_ptr<osg::Camera> in place of osg::Camera*
2013-06-21 13:59:18 +00:00
Robert Osfield
da134aa8ed
From Stephan Huber, "attached you'll find the missing readObject-implementations for the imageio-plugin as suggested by Remo Eichenberger."
2013-06-21 13:41:03 +00:00
Robert Osfield
cb09fff797
From Laurens Voerman, build fix
2013-06-21 12:10:44 +00:00
Robert Osfield
18d6d298bf
Build fixes for new osg::Geometry
2013-06-21 10:59:03 +00:00
Robert Osfield
deb074120e
Converted osg::Geometry::ArrayData usage across to osg::Array.
2013-06-21 10:14:18 +00:00
Robert Osfield
25f0d2ccde
From Laurens Voerman, "I just tested openGL quadbuffered stereo with the osgviewer, the mouse works again, so does the keystonecorrection, but the right-eye render to texture camera appears not to clear it's color buffer.
...
I found the problem in src\osgViewer\View.cpp, fix attached."
2013-06-21 10:03:49 +00:00
Robert Osfield
6eabca211b
Converted ArrayData usage across to set*Array() usage with new binding parameter
2013-06-21 09:47:04 +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
d0f4086a57
From FrancoisTigeot, "OpenSceneGraph 3.0.1 doesn't build out of the box on DragonFly and needs
...
a few modifications to these files:
- applications/present3D/Cluster.cpp
- src/osgDB/FileUtils.cpp
The changes are needed to fix a few platform specific things such as the
absence of stat64, int/socklen_t differences, etc... and are in the same
line as Linux, Apple and FreeBSD specific checks.
I have attached the modified files; the original patches to 3.0.1 are
also visible here if you find it more convenient:
http://dl.wolfpond.org/dports/graphics.osg/dragonfly/patch-applications_present3D_Cluster.cpp
http://dl.wolfpond.org/dports/graphics.osg/dragonfly/patch-src_osgDB_FileUtils.cpp
With these changes, osg 3.0.1 is able to be built and packaged on DragonFly
whereas it previously failed to compile."
2013-06-21 09:17:28 +00:00
Robert Osfield
c3f28a52e4
From Matthias Helsing, "Here is the changed source to prefer using _NET_WM_STATE_ABOVE but fall back to XRaiseWindow should the Atoms not be supported. I'm not sure how many might be using the raiseWindow feature but I needed it for a splash on Ubuntu 12.04."
2013-06-21 08:56:24 +00:00
Robert Osfield
4738a2607b
From Farshid Lashkari, "I've updated the dds, png, and jpeg plugins to support writing images with the GL_DEPTH_COMPONENT pixel format. They will simply treat it the same as the GL_LUMINANCE pixel format."
2013-06-21 08:37:47 +00:00
Robert Osfield
715dd4e930
Fixed the handling the mouse min/max ranges of slave Cameras that have a parent Camera with a viewport.
2013-06-20 16:44:14 +00:00
Robert Osfield
a2b2ba5860
Temporarily commented out call to view.assignStereoOrKeystoneToCamera() for implementing stereo as this was causing problem in trackball manipulation
2013-06-20 15:48:14 +00:00
Robert Osfield
603c280b62
Added local namespace for util functions, and fixed the return type of checkDeprecatedData()
2013-06-20 15:18:51 +00:00
Robert Osfield
eaa3afcd21
Commented out verbose debug messages for shader composition
2013-06-20 10:59:00 +00:00
Robert Osfield
7d2f9f3a0d
From Juan Manuel Alvarez, "When handling keyboard events on osgQt, if a key is kept pressed, multiple sequences of KEYDOWN -> KEYUP events are fired.
...
This is because Qt auto repeats keyboard events, so multiple calls are made to GLWidget::keyPressEvent and GLWidget::keyReleaseEvent by Qt, and subsequently translated to OSG events.
The way to solve this is ignoring key released auto repeated events (see http://qt-project.org/doc/qt-4.8/qkeyevent.html#isAutoRepeat ), so multiple KEYDOWN events are fired, but only one KEYUP.
I attach a modified osgQt/GraphicsWindowQt.cpp with this change."
2013-06-20 10:05:56 +00:00
Robert Osfield
9b095b2936
From Laurens Voerman, build fix for VS.
2013-06-20 09:27:50 +00:00
Robert Osfield
47c4c7c389
Removed svn:executable property
2013-06-19 17:26:59 +00:00
Robert Osfield
083c0f97d2
Removed svn:executable property.
2013-06-19 17:25:55 +00:00
Robert Osfield
df075ef9bb
Cleaned up usage of BIND_PER_PRIMITIVE where possible.
2013-06-19 16:24:59 +00:00
Robert Osfield
9c127c2bca
From Magnus Kessler, typo fixes to doxygen docs and comments
2013-06-19 12:32:40 +00:00
Robert Osfield
935b4de15d
From Magnus Kessler, "gcc-4.8 flagged this:
...
src/osgUtil/tristripper/src/tri_stripper.cpp:375:40: warning: typedef
‘tri_node_iter’ locally defined but not used [-Wunused-local-typedefs]
typedef triangle_graph::node_iterator tri_node_iter;
^
---
src/osgUtil/tristripper/src/tri_stripper.cpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/osgUtil/tristripper/src/tri_stripper.cpp
b/src/osgUtil/tristripper/src/tri_stripper.cpp
index 2f5a7f3..3396881 100644
--- a/src/osgUtil/tristripper/src/tri_stripper.cpp
+++ b/src/osgUtil/tristripper/src/tri_stripper.cpp
@@ -372,7 +372,6 @@ inline tri_stripper::const_link_iterator
tri_stripper::BackLinkToNeighbour(const
void tri_stripper::MarkTriAsTaken(const size_t i)
{
- typedef triangle_graph::node_iterator tri_node_iter;
typedef triangle_graph::out_arc_iterator tri_link_iter;
// Mark the triangle node"
2013-06-19 12:28:06 +00:00
Robert Osfield
002ea7ebdd
Converted tabs to four spaces
2013-06-19 12:27:28 +00:00
Robert Osfield
744960bbf2
Build fixes for new deprecated osg::Geometry functions
2013-06-19 10:56:31 +00:00
Robert Osfield
297a8a221b
Added #define OSG_USE_DEPRECATED_GEOMETRY_METHODS usage into code to allow code to compile enen when CMake configuration has set the #define to off in include/osg/Config.
2013-06-18 19:09:33 +00:00
Robert Osfield
b2fa36f02b
Moved the assignment of the normal binding to after the setNormalArray call
2013-06-18 17:49:57 +00:00
Robert Osfield
de1eb14f8d
Moved the Geometry::set*Binding to after the set*Array() to prevent problems when using the deprecated functionality.
2013-06-18 17:48:43 +00:00
Robert Osfield
1d1cfda1d7
Removed BIND_PER_PRIMITIVE reference
2013-06-18 15:54:38 +00:00
Robert Osfield
55ae5b1c5f
Moved the set binding and normalize for VertexAttrib to after the VertexAttrib array assignment
2013-06-18 15:03:26 +00:00
Robert Osfield
f5496ea3c5
Fixed order of binding.
2013-06-18 14:22:43 +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
05b72e9b4c
Fixed TextBase::computeBound() so it take into account all corners of the text box thus ensuring proper handling of rotated text
2013-06-14 09:43:04 +00:00
Robert Osfield
b4bfc3a451
From Martin Naylor, replace osgDB::fstream with an osgDB::open() call.
2013-06-12 12:49:18 +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
b0a28a5b2c
Refactored the way the ReadResult/WriteResult lists are handled, with them now being sorted so that the Read/WriteResult with highest numerical value ReadStatus/WriteStatus is returned.
...
Changed the enum order of ReadStatus/WriteStatus to ensure that the more relevant errors are last and with the highest numerical value
2013-06-11 09:05:35 +00:00
Robert Osfield
bdfd18dc03
From Kristofer Tingdahl, with additions from Riccardo Corsi and Robert Milharcic, support for Qt5 build
2013-06-10 14:34:25 +00:00
Robert Osfield
eb556797e2
From Marcin Prus, "I don't know if you seen my second reply to your information about merging my Image and dds plugin changes. I found one problem in your latest submit. In ReaderWriterDDS::ComputeImageSizeInBytes pixelFormat and pixelType are not passed into osg::Image::computeImageSizeInBytes.
...
It's
return osg::Image::computeImageSizeInBytes(width, height, depth, packing, slice_packing, image_packing);
but I think it should be
return osg::Image::computeImageSizeInBytes(width, height, depth, pixelFormat, pixelType, packing, slice_packing, image_packing);"
2013-06-07 10:54:55 +00:00
Robert Osfield
d66ee2c698
Replaced OpenThreads::Mutex with a OpenThreads::ReentrantMutex to allow draw callbacks to use Renderer.
2013-06-06 08:23:37 +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
c0c5fc13b1
Removed geo plugin as the modelling tool it was assocaited is long defunct.
2013-06-04 13:29:44 +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
82ecbe98da
From Laurens Voerman, "Autodesk released a new version of their FBX Software Development Kit (web page http://usa.autodesk.com/adsk/servlet/pc/item?siteID=123112&id=10775847 ).
...
The API has changed quite a bit, so lots of changes had to be made in the osg readerwriter. The preious version of the FBX SDK (2013.3) already deprecated a lot of the names and functions. The code I submit now still compiles against 2013.3 (possibly needs a #define FBX_NEW_API). Not sure if that's useful, but it might ease the transition."
2013-06-03 14:27:14 +00:00
Robert Osfield
375e7c2d57
From Laurens Voerman, "while updating dependencies I found a problem with libgif 5 from http://sourceforge.net/projects/giflib/
...
a change in version 5.0.0 required a call to the fuction "DGifOpen" to pass an int ref for an error code.
My fix ignores the error, just fixes the compile."
2013-06-03 14:04:02 +00:00
Robert Osfield
05a1084e5c
From Sergey Polischuk, "this patch fixes light id in gl modes for osg::LightSource's readed from fbx (previously all lightsources were setting GL_LIGHT0 mode, while osg::Lights were using different id's), and enables GL_LIGHT# on root node for all lights contained in model
...
"
2013-06-03 14:01:13 +00:00