Hi, Aurelien This can be done with viewport modification. Viewport matrix is one that transform -1...1 postperspective coords to window coords. You should attach 9x9 image\texture to camera, and set camera viewport with x,y = (window mouse coords center transformed to screen coords in pixels - vec2(4,4)), and width, height = 9. This way you'll get covered 9x9 area around mouse cursor. Dont forget to clip viewport values so they dont go out of window.
Cheers, Sergey. 18.05.2012, 14:41, "Aurelien Albert" <aurelien.alb...@alyotech.fr>: > Hi, > > Thanks for your guidelines, this is exactly what I try to do... no sucess for > the moment but it's probably just a math issue with the projection matrix > modification. > > Another question : how can I render only this camera ? (not the main one) > > I tried to modify cameras node masks so when I call the "frame()" method, > only the "fragment info" is rendered but I always get : > - no camera render at all > or > - main and "fragment info" camera are rendered > > Thank you! > > Aurelien > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=47757#47757 > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org