Hi Bob,
first thank you for your answer! So when I have understood you
correctly, it is not that simply like just adding a second lightsources
to my shadowedScene? Or do I have to create two shadowedScenes, every
with one lightsource and then computing them together with a new shader?
Btw I am using my notebook atm ;) it is a samsung P35 with an ATI
mobility radeon 9700 and 64 MB RAM.
Bob Kuehne schrieb:
On Jun 19, 2007, at 8:51 AM, Marcus Fritzen wrote:
I am trying shadowing my scene with more than one lightsoure.
Therefore I create just another lightsource and addchild these also
to my shadowedScene. The result is, that only the last lightsources
is used. Is it possible to use more than one lightsource at the same
time?
hi marcus,
yes, you can have as many shadows generated as you like, assuming you
have card memory and performance available to generate and render with
these. here's what happens:
1) generating each shadow map requires a rendering of the
scene and storage of depth info
2) generating the shadowed scene involves using each of these
shadow maps and blending of their results. it's simplest
to do this via a shader.
so, depending on what code you're using to render the final scene,
you'll need
to adjust both the shadow generators (to bind to alternate texture
units), and
also the shader/blend state (to use these multiple shadow textures.)
bob
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
--
----------------------------------------------------------------
Marcus Fritzen E-mail: [EMAIL PROTECTED]
University Koblenz Mobil: +491786867360
Triererstr. 105, 56072 Koblenz,
HIWI FB4 Herr Jackel
----------------------------------------------------------------
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/