Hi Michael, Nice looking simulator you've got there, it's great to see osgOcean in the wild.
K. On 28 September 2011 01:28, Jean-Sébastien Guay < jean-sebastien.g...@cm-labs.com> wrote: > Hi Michael, > > > This process would be made much easier if ocean surface only created a new >> stateset if a previous one didn't exist. Is there a reason for recreating >> it? >> > > No reason other than laziness. If any attribute that's being stored in the > stateset gets changed, rather than just changing that attribute (and > potentially others that depend on it, and so on) and thus scattering the > code that creates the state set in many different methods, we just dirty the > state set which causes it to be recreated and repopulated in the next frame. > > You're welcome to do it differently if you want and submit the change. In > fact it would really be nice if you could merge your technique into > osgOcean's own code and submit the change. I'm sure many people would > appreciate such functionality, if you have the time to do it. > > J-S > -- > ______________________________**________________________ > Jean-Sebastien Guay > jean-sebastien.guay@cm-labs.**com<jean-sebastien.g...@cm-labs.com> > http://www.cm-labs.com/ > > http://whitestar02.dyndns-web.**com/<http://whitestar02.dyndns-web.com/> > > ______________________________**_________________ > osg-users mailing list > osg-users@lists.**openscenegraph.org <osg-users@lists.openscenegraph.org> > http://lists.openscenegraph.**org/listinfo.cgi/osg-users-** > openscenegraph.org<http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org> >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org