Hi, Firstly, thanks Paul, it's a good idea, I'll seriously look at it when my projective texture mapping will run correctly.
I've got a few questions for you: 1)When I activate the ptm, light of the scene seems to be changed, the only responsible instruction seems to be: Code: texgen->setPlanesFromMatrix(MVPT); Does anyone know why? Can I desactivate it? 2)I'm still working on my ptm but I've some results. Here's a screenshot: [Image: http://img5.hostingpics.net/pics/487500ptm.png ] My question is: Why is the texture stretched? Again, can I desactivate it? 3)It seems I can't do the PTM using osg::TextureRectangle but osg::Texture2D works. I'm running OpenSceneGraph 2.6 maybe this have been fixed since that version. Thus I need to know the new width and height of my resized image (which is done in order to match to Texture2D). But when I execute: Code: ref_ptr<Image> img = osgDB::readImageFile("../Data_Calibrage/Image/IMG_5316_small.jpg"); //TextureRectangle doesn't seem to be supported for projective texture mapping ref_ptr<Texture2D> tex = new Texture2D(img.get()); std::cout<<"Width of the texture: "<<tex->getTextureWidth()<<std::endl; std::cout<<"Height of the texture: "<<tex->getTextureHeight()<<std::endl; std::cout<<"Width of the image of the texture: "<<tex->getImage()->s()<<std::endl; std::cout<<"Height of the image of the texture: "<<tex->getImage()->t()<<std::endl; I've got: Code: 0 0 640 480 How can I know these new width and height ? 4) Is there any tensor product in osg? Thanks a lot to all of you, Max ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=10783#10783 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

