On 6/7/06, Kritika Tandon <[EMAIL PROTECTED]> wrote:
I'm not using texgen. The tex coords are per vertex. For the OpenGL rendering (without OSG), I don't need to specify REPEAT for wrap_s and wrap_t.
So you are assuming OpenGL default oof GL_REPEAT. I would reccomend that you explictly set things even in straight OpenGL code otherwise state can easily overlap into areas that you don't intend it.
Tex coords greater than 1.0 automatically get repeated. However, wrap_s REPEAT and wrap_r REPEAT is required for osg.
The OSG is OpenGL so its simply the defaults are chosen differently, setting wrap mode is identical to what OpenGL as its all done throught OpenGL.
But the textures are mapped a bit to fine -- they're repeated more than the tex-coords specified. How does mipmapping work in osg? texture->setNumMipmapLevels(3) doesn't store anything in the osg file.
Texture wrapping has *nothing* to do with miip mapping. The texture coordinates you have a probably wrong, I can do nothing more to help you, you need to step through the set up of your app and your models yourself. Robert. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
