[osg-users] I want to move the texture to rain. Help me.

Dae Woo Ryu osgforum at tevs.eu
Tue Jul 30 00:37:01 PDT 2019


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







More information about the osg-users mailing list