Hi Harash, Could you please send a modified example that reproduces this problem.
Robert. On 7/4/07, Harash Sharma <[EMAIL PROTECTED]> wrote:
Hi Robert, I was trying the luminance component drawing and came across a strange problem. 1. An osgViewer::View object is added to osgViewer::CompositeViewer. 2. The GraphicsContext is created using createGraphicsContext for given traits. 3. Used View::GetCamera()->setGraphicsContext Under the following three conditions, the RTT camera created, actually draws to the screen and to the texture attached: 1. Texture Internal Format set to GL_LUMINANCE 2. Texture Rendering Camera Viewport set. I modified the osgDistortion Example to incorporate the above requirements and was able to reproduce the problem -- Monochrome Scene rendered in specified viewport and Colored scene rendered at (0,0) with the size equal to the specified texture size. The moment I make the Texture Internal format GL_RGBA, everything becomes normal. The same happens if I remove the association of GraphicsContext with View (removing the createGraphicsContext statement itself). I don't know if this really is a bug or something wrong in my understanding. I am really very sorry for troubling you in your busy schedule every now and then. I really appreciate your sound support. Please bear with me. Thanks........ Regards Harash ________________________________ Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center. _______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/