<div dir="ltr"><div><div>Hi Laurens,<br><br></div>I created a osg::StateSetCallback that took a osg::TexMat in the ctor and a delay variable. In the operator () I do a check to see if the delay has occurred and then I do a texMax->setMatrix with some incrementing variables. I then attach the callback to the geometries stateset.<br><br>Thanks, Sam<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 27, 2015 at 12:48 AM, Voerman, L. <span dir="ltr"><<a href="mailto:l.voerman@rug.nl" target="_blank">l.voerman@rug.nl</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">Hi Sam,<div>I once solved this with an sequence of textureMatices, (example attached). </div><div>Wat solution did you find?</div><div>Regards, Laurens.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 27, 2015 at 12:12 AM, sam <span dir="ltr"><<a href="mailto:brkopac@gmail.com" target="_blank">brkopac@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">Nevermind! As always, simply searching OSG popped up what I needed. Thanks!<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 26, 2015 at 3:10 PM, sam <span dir="ltr"><<a href="mailto:brkopac@gmail.com" target="_blank">brkopac@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>I can appreciate your stance on going to shaders, and I completely agree. I'd like to quickly prototype this up and swapping to shaders will, unfortunately, take me a little bit. Is there an example of modifying the texture matrix? Also would I be better of attaching an update callback to the state set itself?<br><br></div>Thanks, Sam<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 26, 2015 at 3:04 PM, Sebastian Messerschmidt <span dir="ltr"><<a href="mailto:sebastian.messerschmidt@gmx.de" target="_blank">sebastian.messerschmidt@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    As always I'd suggest shaders, as fixed function pipeline has been
    deprecated 10 years ago ;-)<br>
    You could use the osg_SimulationTime uniform to modify the
    uv-coordinates based on the time passed.<br>
    Else you will need to modify the texture matrix each frame (like in
    the suggested callback)<br>
    <br>
    Cheers<br>
    Sebastian<br>
    <blockquote type="cite"><span>
      <div dir="ltr">
        <div>
          <div>Hi All,<br>
            <br>
          </div>
          I have individual nodes that have textures on them that
          animate; That's to say the texture moves not the actual mesh.
          I've been trying to figure out how to accomplish this in OSG.
          Is there a way to define a texture matrix that does movement?
          The only other way I can think of is manipulating the UV
          coordinates in an update callback.<br>
          <br>
        </div>
        Thanks, Sam<br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </span><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>

<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" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></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" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div><br></div>
</div></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" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<br></blockquote></div><br></div>