<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Nick,<br>
<br>
I'm using LightSpacePerspective shadow technique as well.<br>
But I set the shaders only inside the scene graph where reqired.<br>
Do I have to set them anywhere else?<br>
My graph looks like that:<br>
<span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">*</span><span
style=" color:#c0c0c0;"> </span><span style=" color:#000080;">---------------</span>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">|</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">RootNode </span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">|</span></pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">---------------</span></pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">/</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">\</span></pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">---------------</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">---------------------</span></pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">|</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">ShadowScene</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">|</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">|evtl.</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">PPU-Prozessor|</span></pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">---------------</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">---------------------</span></pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">/</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">\</span></pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">---------------</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">---------------</span></pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">|</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">Switchnode</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">|</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">|</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">LightSource</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">|</span></pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">---------------</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">---------------
</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">*</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">/</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000080;">\\\</span>
</pre>
<br>
<br>
<div class="moz-cite-prefix">Am 29.05.2015 um 18:16 schrieb Trajce
Nikolov NICK:<br>
</div>
<blockquote
cite="mid:CAO-+zi=NxThJWX71qPg=Mo=yxxsS63X9AQFLS-GnxEoCo5-omg@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Werner,
<div><br>
</div>
<div>I am doing the same and using the LightSpacePerspective
shadow techinque. In your program you have to set your vertex
and fragment shaders as well, and it will be picked up
correctly if you set the masks for receiving/cast shadows ....
So it should work. As long as they are part of the top
ShadowedScene</div>
<div><br>
</div>
<div>Nick</div>
<div><br>
</div>
<div><br>
</div>
<div>Nick</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, May 29, 2015 at 5:56 PM, Werner
Modenbach <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:Werner.Modenbach@texion.eu" target="_blank">Werner.Modenbach@texion.eu</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Hi all,<br>
<br>
My scene contains many objects, which are created by
geometry shaders.<br>
So no vertices are created outside the graphics card for
those objects.<br>
So I use <br>
state-><span style="color:#000000">setUseVertexAttributeAliasing(true)<br>
and<br>
state-></span><span style="color:#000000">setUseModelViewAndProjectionUniforms(true)<br>
<br>
Is it possible using a shadow technique in this case? If
I'm right the shadow technique installs it's own
shaders.<br>
<br>
Thanks for any hint.<span class="HOEnZb"><font
color="#888888"><br>
<br>
- Werner -<br>
</font></span></span> </div>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a moz-do-not-send="true"
href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org"
target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature">trajce nikolov nick<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
osg-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<b>TE<span style="color:red;">X</span>ION Software Solutions,
Rotter Bruch 26a, D-52068 Aachen</b><br>
Phone: +49 241 475757-0<br>
Fax: +49 241 475757-29<br>
Web: <a class="moz-txt-link-freetext" href="http://texion.eu">http://texion.eu</a><br>
eMail: <a class="moz-txt-link-abbreviated" href="mailto:info@texion.eu">info@texion.eu</a><br>
</div>
</body>
</html>