Thanks, setting the texture's wrap mode to CLAMP_TO_EDGE worked perfectly!
Regards, Preet On Thu, Mar 1, 2012 at 10:45 PM, Jean-Sébastien Guay <[email protected]> wrote: > Hello Preet, > > >> * The issue I've run into involves where my 2D texture wraps around >> and meets itself on the sphere: >> http://i.imgur.com/ftVH2.png > > > I don't think there's anything wrong with your geometry and texcoords. Good > work! > > The problem looks like you may be using the default texture wrap mode, which > is CLAMP. This mode can also be called "clamp to border", which when texture > coordinates run outside the range of 0-1 will give a border color, which > defaults to black. The problem is that when the texture coordinates are > exactly 0 or 1, when you have linear interpolation enabled as filter mode > (again the default), then the border color will still get sampled (since > it's trying to filter using that texel and the one next to it, which is > outside the 0-1 range). So you get those black lines around your textures. > > Try to specify the CLAMP_TO_EDGE wrap mode instead. This will simply sample > the same texel at the border and should eliminate the black line. > > Hope this helps, > > J-S > -- > ______________________________________________________ > Jean-Sebastien Guay [email protected] > http://whitestar02.dyndns-web.com/ > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

