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
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
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
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
d18250da59
Replaced .osg with .osgt file usage
2011-06-14 16:54:20 +00:00
Robert Osfield
91b35436ac
Added comments
2011-03-07 14:42:47 +00:00
Robert Osfield
afecdbb46b
Moved intial cut of depth partition support into osgViewer::View via two new methods:
...
/** Convenience method for setting up multiple slave cameras that depth partition the specified camera.*/
bool setUpDepthPartitionForCamera(osg::Camera* cameraToPartition, DepthPartitionSettings* dps=0);
/** Convenience method for setting up multiple slave cameras that depth partition each of the view's active cameras.*/
bool setUpDepthPartition(DepthPartitionSettings* dsp=0);
2011-03-03 15:52:19 +00:00
Robert Osfield
be31cdb328
Introduced a new more generic function for settings up the depth partitioning of viewer cameras.
2011-03-03 12:33:57 +00:00
Robert Osfield
832a779d63
Build fix
2011-03-02 16:40:36 +00:00
Robert Osfield
3d8cf5695d
Implemented first cut of more flexible depth partitioning code.
2011-03-02 16:09:50 +00:00
Robert Osfield
388836f2b6
Fixed typo
2011-03-01 16:21:38 +00:00
Robert Osfield
eaca6f9e09
Added support for passing the --depth-partition distance, throw to the depth partition slave camera setup.
2011-03-01 15:04:56 +00:00
Robert Osfield
a471d8ac30
Added experiment depth partioning support in the form of an slave camera configuration.
2011-03-01 14:50:25 +00:00
Robert Osfield
a7fd352b40
Removed TrapezoidalShadowMap due to discovery of patent on algorithm.
2011-02-24 11:54:44 +00:00
Robert Osfield
a25c4e4ab2
From Wojciech Lewandowski, intial cut at new TrapezoidalShadowMap ShadowTechnique
2011-02-23 16:46:34 +00:00
Robert Osfield
323cdab7b8
Added --fov and --light-pos and --light-dir command line parameters
2011-02-20 09:55:20 +00:00
Robert Osfield
df0fdadb59
From Jean-Sebastien Guay, event handler for controlling the field of view of the viewer's camera using 0, - and = keys.
2011-02-11 12:11:17 +00:00
Robert Osfield
74d090845f
Added StandardShadowMap to list to test cases
2008-12-19 12:28:53 +00:00
Robert Osfield
9b1445d5b9
Fixed warnings
2008-12-18 13:56:30 +00:00
Robert Osfield
90ccb05fb1
From Mathias Froehlich, "for the rand functions stdlib.h is required ..."
2008-09-26 11:19:59 +00:00
Robert Osfield
b1c93f05f6
From Wojciech Lweandowski, added support for noew LispSM shadow technique (use --lispsm on CmdLine) and added IslandScene database (use -4 on CmdLine).
2008-09-23 09:59:23 +00:00
Robert Osfield
1047f970bb
From Adrian Egli, improvements to ParallelSplitShadowMap implementation
2008-05-28 14:11:22 +00:00
Robert Osfield
920554c4f7
From Wojciech Leandowski, "I removed few lines of code that were setting Threading mode and Screen mode. I believe they are now not neccessary because the same does osgViewer::Viewer argument parser. In fact argument list does not contain these args after they were parsed by osgViewer::Viewer constructor.
...
I also allowed myself to add ThreadingHandler to the example."
2008-03-25 11:50:28 +00:00
Robert Osfield
cf8cbc5af4
From Paul Melis, "typo fix : NVidea -> NVidia (including option --Nvidea)"
2008-03-14 16:51:39 +00:00
Robert Osfield
b3ecb8f38f
From Mahai Radu, improvements to handling of spotlights
2007-10-03 12:48:23 +00:00
Robert Osfield
1dc06b4553
From Mihair Radu, "Most of the additions are small utility methods:
...
- set the resolution of the shadow map; it calls dirty() to
re-initialize at next update
- keep a list of Shader objects to use instead of the default ones, if
the list is empty, the default shaders are used
- explicitly create the Uniform variables, so that subsequent additions
that require more Uniforms can put them in a central place
- set a Light or LightSource to use explicitly for shadow casting,
allows multiple lights in the scene, with one casting shadows
There are two additions that do not ( yet ) function correctly, but in
the present usage they do not interfere with the regular usage of the
techique:
- support for using spotlights, it's using Light.spotCutoff to determine
if it's a spot-light and not point-light,
there is an error in the setup of either the shadow camera or the
texgen, most likely due to the direction of the spotlight, since the
position is being used just like in point or directional lights.
- creation of a debugHUD
the hud is created properly, ( the example included shows it ), but
it displays only white, there has been some discussion of displaying the
shadow map, but I could not find it, the addition of a simple fragment
shader with the appropriate color transform should get this going."
2007-10-02 21:45:09 +00:00
Robert Osfield
5b263f583f
Added record path manipulator
2007-09-28 08:52:00 +00:00
Robert Osfield
6df0110d0c
From Adrian Egli, "update the PSSM, i did some bug fixes and added new features to move the camera virtual against the view direction by applaying a simple distance factor (a), which is calculated camera eye - camera center distance. and we can move the "light camera" against the light direction (b).
...
(a) some objects behind the camera can cast shadow
(b) object aboive the camera can cast shadow
then i fixed the shadow map orientation, now screen x coordinate alinged which improve the quality"
2007-09-27 12:47:34 +00:00
Robert Osfield
d11d5b819a
From Adrian Egli, further work on PSSM implementation.
2007-09-24 15:24:23 +00:00
Robert Osfield
82b0f004e9
From Adrian Egli, update to ParallelSplitShadowMap.
2007-09-22 16:46:38 +00:00
Robert Osfield
cf69352873
From Adrian Egli, ParallelSplitShadowMap implmentation.
...
Changes by Robert Osfield - CMakeLists.txt and name change to ParallelSplitShadowMap.
2007-09-19 11:56:44 +00:00
Robert Osfield
2861ca6d1a
Added support for SoftShadowMap into osgshadow example
2007-08-12 12:15:21 +00:00
Robert Osfield
7016db5f26
Removed ParallelSplitShadowMap as its currently a non op.
2007-06-13 09:56:12 +00:00
Robert Osfield
cc0f1cb0fe
From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License
2007-06-12 14:20:16 +00:00
Robert Osfield
8500995ffd
Added #include<osg/Geometry>
2007-06-06 16:27:00 +00:00
Robert Osfield
00df23b781
Fixed includes
2007-06-06 16:23:20 +00:00
Robert Osfield
a9d9d387df
Fixed spelling of Receives
2007-06-04 08:38:11 +00:00
Robert Osfield
5be86601bb
Removed old GNUmakefile.inst files
2007-04-10 13:58:18 +00:00
Robert Osfield
2e6ee4bb39
Removed old gmake and VisualStudio build files
2007-04-10 13:10:25 +00:00
Robert Osfield
d9a94f7890
Moved the TARGET_NAME setting into the SETUP_APPLICATION/EXAMPLE macro
2007-03-19 17:18:59 +00:00
Robert Osfield
da64127539
Ran dos2unix on CMakeLists.txt files.
2007-03-19 13:26:34 +00:00
Robert Osfield
be3f61c49f
From Luigi Calori, move to using local CMakeLists.txt files and explicit file lists.
...
From Robert Osfield, small ammendments of the above to seperate example and application installs, and fix the osgPlugins install directory.
2007-03-19 12:30:26 +00:00
Robert Osfield
0414332390
Fixed command line parameter reporting
2007-03-04 13:04:12 +00:00
Robert Osfield
fa9456f0b9
Added command line arguments descriptions
2007-02-19 16:59:52 +00:00
Robert Osfield
b348f4a815
Added -1, -2 and -3 model creation options to osgshadow example.
2007-02-19 16:45:42 +00:00
Robert Osfield
65ad3094a9
Added support for ShadowTexture and ShadowMap to osgshadow example
2007-02-19 15:26:14 +00:00
Robert Osfield
dbb7c3c74c
Added support for using the new osgShadow plugin as a psuedo loader such that:
...
osgviewer cow.osg.shadow
Or to ShadowVolume rechnique specifically:
osgviewer cow.osg.sv.shadow
2007-02-15 22:28:32 +00:00
Robert Osfield
760cfeaadb
Cleaned up osgshadow example so that it now relies upon osgShadow for its
...
shadow implementation
2007-02-09 21:31:29 +00:00
Robert Osfield
9aae37e357
Moved the basic ShadowVolume code into osgShadow
2007-02-09 16:03:29 +00:00