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
Robert Osfield
7c4fb17298
Improved the LispSM computation
2011-08-19 10:43:38 +00:00
Robert Osfield
36fea2bd60
Changed the local variable near/far type
2011-08-19 10:43:15 +00:00
Robert Osfield
c71a0c72e4
Added back in control of the backface culling.
2011-08-17 17:06:55 +00:00
Robert Osfield
1d54065646
intermin check-in of work on new LispSM implementation
2011-08-17 16:09:17 +00:00
Robert Osfield
04ffdf1801
Added missing assignement of _simulationTime.
2011-08-15 14:37:16 +00:00
Robert Osfield
1625f61812
From Paul Martz, "Recent changes to osgShadow on trunk were apparently not yet tested with ref_ptr implicit casting disabled. Attached is a fix. "
2011-08-13 19:09:58 +00:00
Robert Osfield
b15317481c
Added public interface for selecting use of perspective and light space perspective shadow maps. Implementation
...
of backends not implemented yet so will follow.
2011-08-12 20:29:14 +00:00
Robert Osfield
6b7175baac
Implemented first pass at shaders for new ViewDepedentShadow map class
2011-08-12 14:53:40 +00:00
Robert Osfield
675a61ea87
Implemented ViewDependentShadowMap::setDebugDraw(bool) to allow osgshadow to enable/disable the debug display via the
...
standard --debugHUD option.
2011-08-09 15:57:37 +00:00
Robert Osfield
c14516d5f6
Changed RTT Camera to use depth.
2011-08-09 15:20:25 +00:00
Robert Osfield
4aa16bc8e3
Implemented caching of Camera, Texture and TexGen
2011-08-09 13:39:57 +00:00
Robert Osfield
e4a73d121e
Added replacement of the placeholder StateSet in the StateGraph with custom StateSet implemented just for the
...
needs of that particular frame.
2011-08-09 06:54:44 +00:00
Robert Osfield
4238629ebf
Further work on basic ViewDependentShadowMaps, adding implementation of RTT camera and texgen setup.
2011-08-08 17:00:55 +00:00
Robert Osfield
31cb490c75
From Jean-Sebestien Guay and Robert Osfield, mixture of two sets of change - one from JS that adds more controls for specifying positional and spot lights, and from RO adding support for the new ViewDepedentShadowMap
2011-08-07 15:54:21 +00:00
Robert Osfield
cbb6f1c92c
Preliminary work on new ViewDependentShadowMap base class
2011-08-07 15:51:54 +00:00
Robert Osfield
ceb8d62636
Commented out the colorAmbientEmissive += gl_FrontLightProduct[0].ambient; line from the fragment shader as it was
...
causing problems with the shadowed region being sporadically lit when using a spotlight.
2011-07-29 11:22:32 +00:00
Robert Osfield
164cd6e9b9
Fixed comment on end barrier position.
2011-07-29 07:42:55 +00:00