<div dir="ltr"><div><div>Robert, <br><br>are there any changes in the shader management, I mean are the shaders changed by the OSG code somehow (I am using the built-om uniforms)? Here is my shader source line:<br><br>"varying vec4 projShadow;\n"<br><br></div>that apitrace logs as (this is being compiled but differs from the original shader source):<br><br>out vec4 projShadow;<br><br></div>and then I get this warning<br><br>warning C5060: out can't be used with non-varying projShadow<br><div><br>?<br><br></div><div>Thanks a lot as always!<br><br></div><div>Nick<br><br></div><div>p.s. Chris, thanks for the apitrace hint<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 2, 2016 at 2:09 AM, Trajce Nikolov NICK <span dir="ltr"><<a href="mailto:trajce.nikolov.nick@gmail.com" target="_blank">trajce.nikolov.nick@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi Community,<br><br></div>I had some discussion and coding some sample with Wojtek's help 2010 :-). It is about a sample code that illustrates a simple lights and obstacles. It become actual for me again so I started with this archived example as a testbed to work on it and integrate it into much larger project. Here is the link of the code:<br><br><a href="http://markmail.org/message/ccscbkzyxsgmb5vl#query:+page:1+mid:c542rbpj3jdw3v5d+state:results" target="_blank">http://markmail.org/message/<wbr>ccscbkzyxsgmb5vl#query:+page:<wbr>1+mid:c542rbpj3jdw3v5d+state:<wbr>results</a><br><br></div>I know it was working till recent times. And it doesn't anymore :-/. So I went to see what might have changed in OpenGL and OSG since then (bit crazy but I had to start somewhere). It uses shadow2DProj which I found it was replaced by the texture call in GLSL after 130. Also on OSG side to use the built in uniforms I know it has to be enabled in the camera's gc state with setUseModelViewAndProjectionUn<wbr>iforms. So far these were my findings which didn't helped. <br><br></div><div>I would like to ask you for any hints and for a bit of will to see if someone can spot something - the code is simple, selfcontained, it has lighting from the red book implemented and use simple shadow mapping to make the lights to not appear behind obstacles.<br><br></div><div>As always, thanks a bunch!!!!!<br><br></div><div>Cheers,<br>Nick<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><div><div><div><br>-- <br><div>trajce nikolov nick<br></div>
</div></div></div></div></font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">trajce nikolov nick<br></div>
</div>