<div dir="ltr">Hard to say without seeing your code .... I have modified shaders for the LSPSM. Can you share a sample app ?</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 29, 2015 at 6:38 PM, Werner Modenbach <span dir="ltr"><<a 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 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;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;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;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;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;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;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;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;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;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;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><div><div class="h5">
    <br>
    <br>
    <div>Am 29.05.2015 um 18:16 schrieb Trajce
      Nikolov NICK:<br>
    </div>
    <blockquote 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 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><font color="#888888"><br>
                    <br>
                    - Werner -<br>
                  </font></span></span> </div>
            <br>
            _______________________________________________<br>
            osg-users mailing list<br>
            <a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a><br>
            <a 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>trajce nikolov nick<br>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
osg-users mailing list
<a href="mailto:osg-users@lists.openscenegraph.org" target="_blank">osg-users@lists.openscenegraph.org</a>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a>
</pre>
    </blockquote>
    <br>
    </div></div><span class="HOEnZb"><font color="#888888"><div>-- <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: <a href="tel:%2B49%20241%20475757-29" value="+4924147575729" target="_blank">+49 241 475757-29</a><br>
      Web: <a href="http://texion.eu" target="_blank">http://texion.eu</a><br>
      eMail: <a href="mailto:info@texion.eu" target="_blank">info@texion.eu</a><br>
    </div>
  </font></span></div>

<br>_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a 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>