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
23786604c6
From Stephan Huber, "attached you'll find a fix for Registry.cpp not using the QTKit-plugin for video-files. W/o this fix you had to preload the plugin to open movie-files."
2012-10-04 13:45:54 +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
0dbafcc316
From Leigh Stivers, "We had this problem which shows up with nVidia's latest Quadro driver, 305.93 - and older drivers when the nVidia's setting "Thread Optimization" was turned on, running Windows 7. The symptom, is that after creating a first view and using it, and then creating a second view, the first view will never render anything but black.
...
What happens is this:
A view is created, and then the viewers thread is created and runs.
The setReleaseContextAtEndOfFrameHint is true.
To create a second view, the viewer is setDone(true), and we wait for the thread exit.
At this point, inside the ViewerBase::RenderingTraversals code, there are places where it reads "if(_done) return;"
The problem, is that it won't reach the code that will releaseContext().
Apparently, this driver won't let any other thread to makeCurrent(), if another thread (dead or not) has ownership. So when the Viewers is re-started, the first view won't be able to use the gc.
The change attached (against rev 13153) corrects this."
2012-09-28 16:36:42 +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
0e8bcc9027
From Frederic Bouvier, "fix PNG write for images with bits per components different than 8 that was hard coded."
2012-09-24 10:10:28 +00:00
Robert Osfield
ea631c777d
From Aurelien Albert, "In the DXF plugin, DXF layers are decoded and each layer is added in a separate group, which is very usefull to retrieve a layer or display a list of all layers in the aplication.
...
But the layers are not always children of the "model root" node : there can be a matrix transform between "model root" and "layers parent", so I've added the name "Layers" on the node which contains all layers to easily retrieve the layers groups from application code."
2012-09-20 14:06:01 +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
d511288718
From Ulrich Hertlein, "attached is a patch to src/osgViewer/CMakeLists.txt that inverts the logic of when to use
...
Cocoa and when to use the old Carbon interface for the windowing system.
The old code had to be modified for every new OS X release to default to Cocoa.
The new code uses Carbon for <= OS X 10.4 and Cocoa on everything else."
2012-09-20 11:16:02 +00:00
Robert Osfield
b32cf216a7
Added ReadQueue::size() method to help with debugging.
2012-09-20 11:14:10 +00:00
Robert Osfield
5d5cf26138
Added osgDB::getSortedDirectoryContents and osgDB::FileNameComparator to help with sorting directory contents into alphabetic and numerical order.
2012-09-12 16:02:02 +00:00
Robert Osfield
cfe36876d4
Converted sorting of directory contents across to use the new osgDB::FileNameComparator and osgDB::getSortedDirectoryContents()
2012-09-12 11:09:41 +00:00
Robert Osfield
55d03d5b34
Added setting of the input range of the event state based on the master cameras viewport.
2012-09-07 09:31:26 +00:00
Robert Osfield
53405c118a
Added check so not intialization is down when you select the current camera manipulator
2012-09-07 08:33:24 +00:00
Robert Osfield
0b778533c8
From Piotr Domagalski, "I've added reading of node names ('DEF' element) to the VRML reading plugin. The changes were based on trunk's version of the plugin."
2012-09-06 13:53:58 +00:00
Robert Osfield
46104008c7
From Piotr Domagalski, "I've rewritten some bits of the STL plugin in order to support ASCII STL files with multiple named solids (reading and writing). The names are also used as OSG nodes names.
...
- Also, a 'dontSaveNormals' was added. It allows to ignore normals when writing an STL file. For example, it is useful for me when writing an STL file for CFD simulations.
- Some comments and code formatting were improved (to be consistent with the formatting already used in the plugin).
- With 'separateFiles' option files are now named fooX.stl instead of foo.stlX
The changes have been tested on various STL, both ASCII and binary found on the net. The change was based on the trunk branch."
From Robert Osfield, changed assert in Piotr's code to a runtime check warning report.
2012-09-06 13:48:17 +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
63444f648f
Fixed inappropriate comment
2012-09-05 13:51:34 +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
e8c4a6785c
From Andreas Ekstrand, The attached ESRIShape.cpp contains fixes for comparing calculated byte sizes with the content length from the record header. According to the ESRI Shape documentation ( http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf ), the content length is specified in 16 bit words, which is why I have multiplied it by 2 when comparing to byte sizes. Note that the comparison in line 813 is made with a fix number of 16-bit words so it hasn't been changed.
...
This fixes problems with PolygonZ records where the previous code was reading past the end of the record since it thought it had M values even if it didn't. I suspect the problem that James McGlone had back in 2006 was the same but reversed, when he tried to simply comment out the check, which was a (correctly) refused submission.""
2012-09-05 10:24:10 +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
0172bacdf4
From Brad Christiansen, changed OSG_INFO to OSG_DEBUG to quieten down volume of messages in INFO
2012-09-04 08:21:09 +00:00
Robert Osfield
568aeef975
From Brad Christiansen, "fix for the NVTTImageProcessor. When the code was updated in revision 12912 a couple of typos where made. These cause a crash when compressing transparent images and mangled colours when compressing rgb images. "
2012-09-03 15:19:00 +00:00
Robert Osfield
0ce9407c69
From Lilin Xiong, " there is a small bug in osgDB::readNodeFiles(std::vector<std::string>& fileList,const Options* options) in file ReadFile.cpp line 85:
...
osg::Node *node = osgDB::readNodeFile( *itr , Registry::instance()->getOptions() );
It should be:
osg::Node *node = osgDB::readNodeFile( *itr , options );"
2012-09-03 08:30:01 +00:00
Robert Osfield
f13dd3d75d
Added a fix for a multi-threading bug that occured when TerrainTiles were accessed via the Terrain::_updateTerrainTileSet that were being deleted at the same time by the DatabasePager thread.
2012-08-31 16:00:55 +00:00
Robert Osfield
8961d45ebf
From Wang Rui, "This patch fixes a problem of the osg::Program serializers that can't
...
save/load GeometryInputType data correctly. The bug is initially found
by John Kelso."
2012-08-29 16:48:27 +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
58b66be7b7
Added check against the Camera NodeMask to decide whether it's appropriate to test for events on that camera.
2012-08-21 09:45:24 +00:00
Robert Osfield
284f410436
Added ShadowSettings::s/getMaximumShadowMapDistance(double) property, usage of these property in ViewDependentShadowMap,
...
and setting of it with --max-shadow-distance <double> in the osgshadow example.
2012-08-15 12:40:48 +00:00
Robert Osfield
52861ecbb0
Added a mutex to protect the removal and addition of Uniform and Program to StateSet to avoid parents being invalidated when multi-threading.
2012-08-14 20:15:00 +00:00
Robert Osfield
fb83c2b061
Introduced --near-far-mode into osgshadow and ShadowSettings::setComputeNearFarModeOverride(..) to allow user control of how the cull traversal is optimized for computing the depth range of the shadow map.
2012-08-03 16:14:14 +00:00
Robert Osfield
42cb311f41
Added FireGL to prefernce list for use glGenerateMipMap
2012-07-24 09:05:04 +00:00
Robert Osfield
2e611be9c9
Fixed build
2012-07-23 08:15:57 +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
2f86ac1896
Fixed indentation
2012-07-11 14:36:14 +00:00
Robert Osfield
86db687bce
Replaced use of now deprecated methods.
2012-07-10 16:20:32 +00:00
Robert Osfield
269d360484
Enabled the use the getReceivesShadowTraversalMask().
2012-07-10 16:11:40 +00:00
Robert Osfield
b4d397cfd7
Moved mask settings into ShadowSettings
2012-07-10 15:50:46 +00:00
Robert Osfield
4b220d4fd7
Changed updateCamera(Camera*) to updateCamera(Camera&) to make it clear that a valid Camera object should be passed in.
2012-07-09 17:49:04 +00:00
Robert Osfield
65ab874143
From Riccardo Corsi, introduced CameraManipulator::updateCamera() method that allows more Camera properties to be controlled by the CameraManipulator.
2012-07-09 17:32:13 +00:00
Robert Osfield
f784884fd1
Refactored the way that the static Scene cache is managed by moving all the functionality into a SceneSingleton
2012-06-25 16:31:36 +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
fc4aeac75b
Fixed spelling of FileNameComparator
2012-06-16 09:08:05 +00:00
Robert Osfield
59133b43d3
Moved the frame() event into the event traversal after then events and their state have been accumulated.
2012-06-15 09:04:32 +00:00
Robert Osfield
1dc215a1da
Added FileNameComparator to sort the filenames in an ImageSequence into alphanumerical order so that it can handle the numerical ordering found in screenshot numbered sets of files
2012-06-12 20:15:58 +00:00
Robert Osfield
4ab8cdb746
Enabled 6 ImageThreads in the ImagePager
2012-06-12 18:29:03 +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
2faeaf553b
Added support for setting the <image> paging_mode property to PRE_LOAD_ALL_IMAGES, PAGE_AND_RETAIN_IMAGES or PAGE_AND_DICARD_IMAGE for osg::ImageStream,
...
with PAGE_AND_DICARD_IMAGE set as the default.
2012-06-11 19:54:07 +00:00
Robert Osfield
c39ee015d6
Added ImageStream support to <image> and <stereo_image> tags in .p3d
2012-06-08 10:26:23 +00:00