Robert Osfield
64fa6aec43
From Robert Milharcic, "This will hopefully fix some issues with osgQt, more precisely with GLWidget event handling. There are at least two current GL context braking events, QEvent::Hide and QEvent::ParentChange. When running in a multithreaded mode they both try to change current GL context in a wrong thread (main GUI thread). The QEvent::ParentChange is also problematic when running in a single threaded model because Qt is going to release current contex then delete it, and then it will create new one, and as a result the osg will continue to render to an invalid deleted context. This changes workaround above problems by deferring execution of the problematic evens. These events has to be enqueued and executed later. The enqueued event processing is currently done right after swap in a swapBuffersImplementation of GraphicsWindowQt while code is running in a render thread by calling QGLWidget handler directly. In principle the deferred events queue should be executed while in GUI thread but I couldn't find any reliable way to do this, that is without risking a deadlock. For now it is assumed, Qt is not going to execute any GUI thread only operations inside the QGLWidget handler."
2011-09-13 11:09:39 +00:00
Robert Osfield
098bc6df5e
From Farshid Lashkari, "
...
The osgUtil::CullVisitor class will display an OSG_INFO notification when attempting to clamp the projection matrix with invalid near/var values. This usually appears when the scene graph is empty or all objects are culled. I don't think this scenario warrants having this message appear every frame. It makes it very difficult to debug other issues when this notification floods the output window.
I'd prefer to have the notification removed, but there might be legitimate cases where you want this displayed. Instead, I just disabled the output if the near/far values are equal to FLT_MAX (their initial values). This should at least prevent the notification for the common case where everything was culled."
2011-09-13 10:15:07 +00:00
Robert Osfield
408c2a2267
From Paul Martz, "Here's my proposed change regarding the osg-users post "small feature culling threshold". I've updated the comments and brought the default values into agreement, but didn't bother to add the environment variable support."
2011-09-13 09:59:21 +00:00
Robert Osfield
c35fdf7333
From Jean-Sebastien Guay, "I added a simple setting in OSG's CMakeLists.txt to be able to disable building anything related to Qt. It just skips the FindPackage(...) for Qt3 and Qt4, so since they are not found nothing related to Qt will be generated by CMake. The default is to build the Qt related stuff, so current behavior is unchanged."
2011-09-13 09:53:34 +00:00
Robert Osfield
698a284da8
From Sukender, "I added a tiny check to avoid an integer divide-by-zero, when image is invalid (ie. all values are 0)."
2011-09-13 09:46:22 +00:00
Robert Osfield
abb7228d56
From Sukender, "I added a crash-guard against corrupted 3DS files, having faces indexes out of the range of existing vertices."
2011-09-13 09:43:45 +00:00
Robert Osfield
6d1ba5b06d
From Farshild Lashkari, "Attached is a simple patch that avoids the depth write pass in Text::renderWithDelayedDepthWrites if the current osg::State object has GL_DEPTH_TEST disabled."
2011-09-13 09:21:07 +00:00
Robert Osfield
43483408f3
Reverted Paul Idstein warning fix as this was breaking the build
2011-09-13 09:17:21 +00:00
Robert Osfield
757d00c3c8
From Ulrich Hertlein, Added some error checks and memory cleanup.
2011-09-12 16:24:08 +00:00
Robert Osfield
cd6e174a5c
From Stephan Huber, fixed build for OSX 10.6 and earlier
2011-09-12 16:20:45 +00:00
Robert Osfield
cc37579392
From Johannes Baeuerle, opptimization of ES support of osg/BufferObject
2011-09-12 16:17:33 +00:00
Robert Osfield
140a04aebc
From Bjorn Blissing, "Found a minor (probably a copy & paste) bug in ViewerEventHandlers.
...
Line 251:
int getKeyEventWindowedResolutionDown() const { return _keyEventWindowedResolutionUp; }
Should be replaced with:
int getKeyEventWindowedResolutionDown() const { return _keyEventWindowedResolutionDown; }"
2011-09-12 12:38:41 +00:00
Robert Osfield
6e6dafcd3e
From Luc Frauciel, "When osgUtil::DelaunayTriangulator triangulate() function ends with no triangle generated, it crashes.
...
This patch fixes that"
2011-09-12 12:26:55 +00:00
Robert Osfield
ca51a1113b
From Magnus Kessler, documentation fixes
2011-09-12 12:14:17 +00:00
Robert Osfield
22dd9df78b
Improved the clarity of doxygen comments
2011-09-12 12:04:46 +00:00
Robert Osfield
4b6593b211
Fixed typos in the documentation
2011-09-12 11:51:14 +00:00
Robert Osfield
796ccd14c8
From Cedric Pinson, from three submissions:
...
"Here a patch that correct like the previous assign collada material name
to stateset."
and
"I changed how the collada reader set object name in osg. Current
implementation use collada ID to setup name. with this patch I use
collada name to setup name in osg object and if collada provide no name
I use as fallback ID. I am not sure we want this fallback.
The motivation of this change is that when an artist set names to its
objects and export to collada, I am not able to use those names in osg
to retrieve the node."
and
"Here the update of the file that fix the light id stuff"
2011-09-12 11:28:14 +00:00
Robert Osfield
19b8b1f474
From Bob Kuehne, build fix for OSX 10.7 SDK.
2011-09-12 11:24:52 +00:00
Robert Osfield
edd83a03fe
From Paul Idstein, warning fixes for OSX 10.7
2011-09-12 11:24:24 +00:00
Robert Osfield
9be4a1a1c8
From Magnus Kessler, typo fixes
2011-09-12 10:52:16 +00:00
Robert Osfield
5162fcc108
From Wang Rui, "I've encountered a strange problem that osgviewerMFC doesn't work well
...
with the StatsHandler. When the 's' key is pressed, the rendering
window will be halted. I tried solving the problem by commenting a
line in CMFC_OSG_MDIView::OnKeyDown() and it seems to work now.
Another improvement here is to use a thread class derived from
OpenThreads to replace the old _beginthread(). It helps a lot in
keeping a high frame rate when you open more than one MDI child
windows. And the application using OpenThreads in my opinion will be
more compatible and portable."
2011-09-12 10:47:59 +00:00
Robert Osfield
c8de3b70ca
Updated SO version number to 90 to allow for recent changes to the ABI, and to set the base for the 3.1.0 series.
2011-09-12 10:46:42 +00:00
Robert Osfield
94777c4ef5
From Sukender, "I added private constructors to osg::ValueObject & TemplatedValueObject, to avoid allocation on the stack and ugly things like:
...
TemplatedValueObject<int> value(....);
container->addUserObject(value);"
2011-09-12 10:43:24 +00:00
Robert Osfield
83524f958e
Added handling the ShadowSettings::LightNum for selecting which light to use.
2011-09-07 20:05:25 +00:00
Robert Osfield
b2fd8f4059
Added handling of the case when RenderLeaf::_modelview matrix is NULL, such as when LightPointNode is used in the scene graph.
2011-09-07 16:26:57 +00:00
Robert Osfield
3a79bc343d
Moved ViewDependetShadowMap parameter settings into a dedicated ShadowSettings object in prep for making it possible to scale the API to handle multiple lights and multiple shadow maps per light.
2011-09-07 15:55:54 +00:00
Robert Osfield
772c7d75c5
Added setting of the shadow map Camera's name to "ShadowCamera" to improve integration with osgOcean.
2011-09-06 17:26:27 +00:00
Robert Osfield
f26ef2d9e0
Added optimization of the mutliple cessna shadow model to address peformance issues when rendering 100 cessna's.
2011-09-06 14:13:13 +00:00
Robert Osfield
f95f43dbc6
Added -5 model option using Wang Rui's test demo as a base
2011-09-06 11:42:54 +00:00
Robert Osfield
ecbca83c01
Fixed the heights of the trees and houses
2011-09-06 11:11:38 +00:00
Robert Osfield
f83722d62b
Added s/getPerspectiveShadowMapCutOffAngle() and use of this when setting up light space to avoid sigularaties when
...
the light and view directions are co-incident.
2011-09-06 10:12:45 +00:00
Robert Osfield
15ad6eda63
Added support for setting whether ViewDependentShadowMap should provide it's own vertex and fragment shaders.
2011-09-05 12:36:47 +00:00
Robert Osfield
454ccad3b9
Replaced use of ShapeDrawable with osgTerrain for the terrain tile
2011-09-05 12:27:20 +00:00
Robert Osfield
52c2bc3ff5
Added s/getTextureSize() method for setting the shadow map texture size.
2011-09-02 10:16:16 +00:00
Robert Osfield
f476406ae1
Disabled the use of the ReceivesShadowTraversalMask() mask
2011-09-02 07:46:08 +00:00
Robert Osfield
ec3b2ba2d3
Added test line for COMPUTE_NEAR_USING_PRIMITIVES
2011-09-01 18:49:33 +00:00
Robert Osfield
1fd3c84287
Added fine grained computation of the far plane when using the COMPUTE_NEAR_FAR_USING_PRIMITIVES ComputeNearFarMode.
...
Added COMPUTE_NEAR_FAR_USING_PRIMITIVES option that provides the original functionality where only the near plane
is computed in a fine grained way, with the far plane being computed simply from bound volumes.
2011-09-01 18:48:21 +00:00
Robert Osfield
b21d206d3a
From Tony Horrobin, build fix
2011-08-29 16:01:02 +00:00
Robert Osfield
47db350da1
Added fallback base texture
2011-08-29 10:26:05 +00:00
Robert Osfield
2d71a390d3
Added support for setting the MinimumShadowMapNearFarRatio.
2011-08-29 09:59:47 +00:00
Robert Osfield
771075084b
Fixed bug in computaton of the min/max x/z ratios.
2011-08-26 15:40:09 +00:00
Robert Osfield
ef91a87e23
Added names to models to help with debugging.
2011-08-26 15:36:33 +00:00
Robert Osfield
0f14f53698
Added releaseGLObjects/resizeGLObjectBuffers support
2011-08-26 10:52:25 +00:00
Robert Osfield
966981f100
Improved the handling of depth partitioning and orthographic datasets
2011-08-25 17:21:38 +00:00
Robert Osfield
1ad9979cea
Added event handling for toggling on/off the light source animation.
2011-08-25 15:39:09 +00:00
Robert Osfield
0d3169f645
Added support for user defined setting of the shadow texture unit
2011-08-24 19:38:58 +00:00
Robert Osfield
26e2106636
Changed new ViewDependentShadowMap to default to a perspective shadow map with automatic detection of a spot light/perspetive light projection
...
matrix to prevent inappropriate usage of perspective shadow map.
2011-08-24 13:57:15 +00:00
Robert Osfield
622cfb524c
Imorovements to the new perspective/lispsm style shadow implementation.
2011-08-24 12:32:03 +00:00
Robert Osfield
3db0557ed5
Quitened down and fixed warning
2011-08-24 12:31:35 +00:00
Robert Osfield
3a70830e89
Quitended down debug messages and added passing of RenderStage to LispSM code
2011-08-19 12:42:51 +00:00