Robert Osfield
22dd032faa
From Farshid Lashkari, "Attached is a small patch that adds support for writing BGR images to the DDS plugin."
2011-06-16 16:02:27 +00:00
Robert Osfield
27d4d5e4b9
From John Cummings, "While testing recent OSG developer releases and the subversion trunk, I
...
have noticed that on my 64-bit Linux machines, all of the OSG libraries
get installed into the "lib64" directory as I would expect. However, the
OpenThreads library gets installed into the "lib" directory when
selecting "Build OpenThreads with Qt threading support." That is, with
the BUILD_OPENTHREADS_WITH_QT set to ON.
I am attaching the a fix for this issue in the file:
src/OpenThreads/qt/CMakeLists.txt
It simply adds ${LIB_POSTFIX} to the destination as in done with all
other CMakeLists.txt with libraries in OSG. I have tested it on both
32-bit and 64-bit Linux."
2011-06-16 16:00:33 +00:00
Robert Osfield
38a807ae6e
Windows warning fixes
2011-06-16 15:57:40 +00:00
Robert Osfield
93d1fedd0b
Fixed indentation issues
2011-06-16 13:00:28 +00:00
Robert Osfield
375c1456f6
Improved indentation.
2011-06-16 10:05:49 +00:00
Robert Osfield
d0ccbf8219
Replaced tabs with four spaces
2011-06-16 08:59:48 +00:00
Robert Osfield
17b9cfad02
Improved the handling of compiling vs flushing deleted objects
2011-06-15 18:31:11 +00:00
Robert Osfield
e36f239917
Changed the key handling code to use EventQueue::getTime() rather then the theEvent timestamp.
2011-06-15 17:00:44 +00:00
Robert Osfield
f1c7e81eb3
Fixed blitting of FBO's with multiple render targets.
2011-06-15 09:36:34 +00:00
Robert Osfield
b6a15b2ef8
Added support osg::State::drawQuad(..) for number of vertices in quads to uint range rather than just ushort range.
2011-06-14 15:48:27 +00:00
Robert Osfield
5b3eed5dce
Fixed issue with events having a negative delta of time between them.
2011-06-14 12:44:44 +00:00
Robert Osfield
6a6c5bccda
Added GLBufferObject::computeBufferAlignment(..) method to enable buffer entries to be aligned along specified buffer alignment boundaries, currently defaulting to 4.
2011-06-14 10:15:12 +00:00
Robert Osfield
529ea4c94f
From Stephan Huber, "attached you'll find a fix for the non-working useCursor()-method for
...
Windows. With the old code you can switch off the cursor, but not back on."
2011-06-14 09:16:44 +00:00
Robert Osfield
e1f5597167
Removed executable permission.
2011-06-14 09:11:58 +00:00
Robert Osfield
7f05605c16
Fixed wild card search when wild card filename includes a path.
2011-06-13 15:20:48 +00:00
Robert Osfield
c034333400
From Jeremy Moles, fixed style == operator.
2011-06-13 08:52:11 +00:00
Robert Osfield
0dbb4004d7
From Stephan Huber, build fix for IOS
2011-06-13 08:45:25 +00:00
Robert Osfield
22bc0391c7
Refactored the UserDataContainer so that the osg::UserDataContainer is now a pure virtual base class,
...
with a osg::DefaultUserDataContainer subclassed from this. The user object access methods have now all
been moved from osg::Object into the UserDataContainer class, except for the set/getUserData() methods
that are left in osg::Object for backwards compatibility, and the description list access methods have
been moved back into osg::Node.
main UserObject access methods are now all def
2011-06-09 12:57:14 +00:00
Robert Osfield
1016092720
From Mathias Froehlich, "the attached patch adds an additional null pointer check"
2011-06-09 11:07:27 +00:00
Robert Osfield
2ddd53730e
From Mathias Froehlich, "The attached patch adds the polygon primitive to the TangentSpace computation.
...
As far as I understand, this should just work for the polygon as well as with
the tristrip primitive.
"
2011-06-09 11:05:36 +00:00
Robert Osfield
86439123b4
Added support for creating a 3D Image from an image list.
...
Added support for reading a list of images in the Present3D <volume> tag.
2011-06-08 16:10:46 +00:00
Robert Osfield
973a9dee09
Introduced a less conservative near ratio.
2011-06-08 09:24:50 +00:00
Robert Osfield
9aa7010ded
Added support for reading .osg, .osgb, .osgx, .osgt and .ive models that contain volumes from within the volume tag.
2011-06-07 20:24:49 +00:00
Robert Osfield
537272b98f
Added support for .osgt, .osgb and .osgx plugins to osgvolume example
2011-06-07 16:17:35 +00:00
Robert Osfield
1f33e65c2a
From Sukender, "Lastest change (update to FBX 2012.1) introduced a regression. It didn't take materials' order into consideration. The line
...
lMaterialLayer->GetDirectArray().SetAt(it->second.getIndex(), lMaterial);
has been replaced by
_curFbxNode->AddMaterial(lMaterial);
because KFbxLayerElementMaterial::GetDirectArray() is now private and we can't access to it.
However, pushing back the material at the end of the vector is wrong.
We can use the (now) public attribute KFbxLayerElementMaterial::mDirectArray, as in this submission.
"
2011-06-07 14:28:58 +00:00
Robert Osfield
4f7903f732
From Mathias Froehlich, build fixes for legacy unix systems
2011-06-07 14:26:13 +00:00
Robert Osfield
7f9a6aa49d
Added ability to subclass from osg::Object to provide custom user data functionality. A new UserDataContainer provides the
...
default implementation of the user data functionality.
2011-06-07 13:02:20 +00:00
Robert Osfield
848ec5e770
Added the return of the index position of the added UserObject
2011-06-07 09:28:38 +00:00
Robert Osfield
71a961ccc3
Added support for searching for user objects from a given startPosition in the UserDataContainer object.
2011-06-07 08:53:03 +00:00
Robert Osfield
3a5ef17ca7
From Frida Schlaug, "Imageio for ios had a poorly implemented function for reading from streams (always returning null). In this patch I copied some code from the non-ios imageio file and adjusted it to work on ios. "
2011-06-06 11:48:32 +00:00
Robert Osfield
985fdc8965
Added support for using the sampleDensityWhenMoving tag with all techniques
2011-06-03 13:47:59 +00:00
Robert Osfield
deed0a89fe
Added extra check to make sure that _userDataContainer was available before copying it
2011-06-02 22:49:29 +00:00
Robert Osfield
b5d00a1450
Added support for new osg::Object user objects.
2011-06-02 22:05:10 +00:00
Robert Osfield
c703f39459
Introduced new user object support into osg::Object that allows assignment of a list of user objects to an osg::Object.
...
Refactored original UserData and Descriptions strings to be managed alongside the new user object suppport within
a single osg::Object::UserDataContainer.
2011-06-02 22:04:08 +00:00
Robert Osfield
2e03f53778
Added ref_ptr<> usage to avoid possible memory leak.
2011-06-02 20:38:13 +00:00
Robert Osfield
594b4bf873
From Dimi Christop, build fix for RHEL 4.
2011-05-30 13:02:13 +00:00
Robert Osfield
0201480582
Added closing of the _eventDisplay on failure of initializing the context properly.
2011-05-30 09:26:24 +00:00
Robert Osfield
4d09574ccd
Fixed X11 related crash that occured when GraphicsWindow::setCursor was called right after viewer.realize();
...
The fix was to simply move the setting of the thread that has done the makeCurrent to right before the makeCurrent()
rather than right after.
2011-05-30 09:25:11 +00:00
Robert Osfield
60eaa68122
From Terry Welsh, "I was having a small culling problem with osgText... new TextBase.cpp that fixes it."
2011-05-30 08:24:34 +00:00
Robert Osfield
40fd093fb1
Reverted part of revision r12294 that introduced threading related problems under X11 due to checking the _display
...
Display member variable assigned to the graphics thread from the main thread.
2011-05-27 16:04:18 +00:00
Robert Osfield
0820be93d2
From Eric Sokolowsky, "Attached is an updated PNM plugin for inclusion in both the trunk and for release version 2.8.5. The attached file fixes numerous bugs in reading 8-bit and 16-bit images, including loading the images upside-down. This file also incorporates trunk patch r12220 which updated the plugin for reading and writing images through streams instead of C-style FILE I/O."
...
Note from Robert Osfield, previous revision was in error due to an incomplete merge, this revision completes the job.
2011-05-27 09:05:20 +00:00
Robert Osfield
fcd3150b12
From Laurens Voerman, "While working on the osg exporter for 3dsmax I found a bug in the TriStripVisitor. I created a small example (attached), and a modified version of
...
src\osgUtil\TriStripVisitor.cpp where the problem is removed."
2011-05-27 09:00:53 +00:00
Robert Osfield
ba2fd0316b
From Eric Sokolowsky, "Attached is an updated PNM plugin for inclusion in both the trunk and for release version 2.8.5. The attached file fixes numerous bugs in reading 8-bit and 16-bit images, including loading the images upside-down. This file also incorporates trunk patch r12220 which updated the plugin for reading and writing images through streams instead of C-style FILE I/O."
2011-05-27 08:55:37 +00:00
Robert Osfield
0acce47d97
Reverted Bryce Eldrige submission.
2011-05-27 08:22:16 +00:00
Robert Osfield
e3f7d802e4
Form Jorge Ciges, improved GL version detection code.
2011-05-26 16:52:08 +00:00
Robert Osfield
3fa1f2ed5a
From Dietmar Funck, "I've noticed an issue when writing arrays of type Vec2D and Vec3D to a .osgb file. A number is written to the output stream to identify the array type. In case of Vec2D and Vec3D arrays Vec4D is written as array type - I guess this is a copy and paste mistake.
...
Writing the correct array types fixes the issue - in my case it fixes writing and afterwards reading geometry instances."
2011-05-26 16:34:33 +00:00
Robert Osfield
b8b368dc7c
From Bryce Eldridge, "Here is an update for the TIFF plugin that includes the following features when writing out TIFF files:
...
- Support for writing unsigned 16-bit images (GL_UNSIGNED_SHORT)
- Code to parse the options string for the following options:
-- Flag to turn off the compression. The PACKBITS compression type causes issues for me with some programs on Windows (Picasa for example).
-- Options to set the XRESOLUTION and YRESOLUTION tags (DPI) in the TIFF file.
Existing behavior (PACKBITS compression, DPI tags left at default) is preserved if the options string is not set.
"
2011-05-26 16:26:50 +00:00
Robert Osfield
909a4d1603
Fixed default setting of texture_no_tile to match the flags seet in lib3ds_material.cpp initialize_texture_map(..).
2011-05-26 16:19:54 +00:00
Robert Osfield
0a1ecd3272
From Oliver Neumann,
...
"I checked your solution and found one missing point which makes it still produce the tif error:
The very first seek_set on the empty stream with zero offset."
"This means that the empty stream is seeked again resulting in the fail bit to be set. Your code does not check this case, furthermore you use t_off instead of std::ostream::streampos for the tellp() calls. In this special case (empty stream) tellp() returns -1 which is cast to 0xFFFFFFFFFF as t_off is unsigned. I suggest this addition to your code (within the switch statement)"
2011-05-26 16:16:11 +00:00
Robert Osfield
52146aa1b6
Fixed handling of changes in gl buffer object size so that when a gl buffer object is resized all the buffer data
...
is recompiled.
2011-05-26 15:47:20 +00:00