There is yet another problem.The texture is getting repeated a lot more than is required . The two screen shots are attached what is required and what is obtained after using the commands given below.I also tried setting
exture->setWrap(osg::Texture2
D::WRAP_S, osg::Texture2D::REPEAT);
On 6/6/06, Serge Lages <[EMAIL PROTECTED]> wrote:
Have you tried to set your texture like that :
texture->setWrap(osg::Texture2D::WRAP_S, osg::Texture2D::REPEAT);
texture->setWrap(osg::Texture2D::WRAP_T, osg::Texture2D::REPEAT);
And look at osgTexture2D example, I think you will find everything you need.
On 6/6/06, Kritika Tandon <[EMAIL PROTECTED]> wrote:
> Hi,
> I am trying o map a texture on planar surfaces(triangles).I want to repeat
> the texture so as to get a tiled effect.The texture coordinates are beyond
> 1.But this doesnt seem to work. I set the texture coordinates using
> setTexCoordArray method for the Geometry class.But the texture is not
> getting mapped.Please help.
> Thank you,
> Kritika Tandon.
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
>
--
Serge Lages
http://www.magrathea-engine.org
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
