Hi Robert, In the ReaderWriterOBJ.cpp file, I think the following line ... osg::Texture2D* texture = new osg::Texture2D(image); stateset->setTextureAttributeAndModes(0,texture,osg::StateAttribute::ON); ...
has to be changed with ... osg::Texture2D* texture = new osg::Texture2D(image); texture->setWrap(osg::Texture2D::WRAP_R, osg::Texture::REPEAT); texture->setWrap(osg::Texture2D::WRAP_S, osg::Texture::REPEAT); texture->setWrap(osg::Texture2D::WRAP_T, osg::Texture::REPEAT); stateset->setTextureAttributeAndModes(0,texture,osg::StateAttribute::ON); ... Because if we dont set the Wrap mode, it will use the 0 = CLAMP as the default wrapping mode. So it couse wrong textreu mapping in the OBJ files. BR Send instant messages to your online friends http://uk.messenger.yahoo.com _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
