Hi ,robertosfield

Thank you for reply.


I want to continue moving the Texture like the code below.

But the coordinates of the texture do not seem to update continuously.
 
I want the Texture to be updated continuously.


Code:
        virtual void operator()(osg::Node*, osg::NodeVisitor* nv)
        {
                if (nv->getFrameStamp())
                {       
                        _texcoords2 = 
dynamic_cast<osg::Vec2Array*>(_geom->getTexCoordArray(0));

                        for (unsigned int u = 0; u < _texcoords2->size(); u++)
                        {
                                _texcoords2->at(u).x() += 0.001f;
                                _texcoords2->at(u).y() += 0.001f;               
        
                        }



                           ....




Thank you!

Cheers,
Dae Woo Ryu[/code]

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76538#76538





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to