Re: [osg-users] Render to texture problem - resolved

2008-11-07 Thread Engvall Åsa
OK, that sounds logical. Thank you, bye for now! Åsa -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Robert Osfield Skickat: den 7 november 2008 14:22 Till: OpenSceneGraph Users Ämne: Re: [osg-users] Render to texture problem Hi Asa, On Fri, Nov 7, 2008

Re: [osg-users] Render to texture problem

2008-11-07 Thread Robert Osfield
Hi Asa, On Fri, Nov 7, 2008 at 1:16 PM, Engvall Åsa <[EMAIL PROTECTED]> wrote: > It isn't obvious to me why the RTT camera must be under the viewer. I just > thought of the viewer as a camera which looks at the scene. Is the viewer > more like something that collects the pictures from all camera

Re: [osg-users] Render to texture problem

2008-11-07 Thread Engvall Åsa
user? Trying to learn more... Åsa -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För J.P. Delport Skickat: den 7 november 2008 13:47 Till: OpenSceneGraph Users Ämne: Re: [osg-users] Render to texture problem I just read quickly, but it seems your camera is stil

Re: [osg-users] Render to texture problem

2008-11-07 Thread J.P. Delport
in Node1 instead and they will not be used when rendering with the RTTCamera. /Andreas 2008/11/7 Engvall Åsa <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> No, it isn't. Should it be? I tried to draw the scenegraph in my first message, but it's not easy ju

Re: [osg-users] Render to texture problem

2008-11-07 Thread Andreas Lindmark
; { > osgDB::writeImageFile(*textureImage, "h:/temp/textureImage2.bmp"); > } > while (!viewer.done()) > { > viewer.frame(); > } > > -------------- > *Från:* [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] *För *Andreas Lindmark > *Skickat:* den 7 nove

Re: [osg-users] Render to texture problem

2008-11-07 Thread Engvall Åsa
frame(); if (image->data()) { osgDB::writeImageFile(*image, "h:/temp/blurImage2.bmp"); } if (textureImage->data()) { osgDB::writeImageFile(*textureImage, "h:/temp/textureImage2.bmp"); } while (!viewer.done()) { viewer.frame(); } _

Re: [osg-users] Render to texture problem

2008-11-07 Thread Andreas Lindmark
e- > Från: [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] För J.P. Delport > Skickat: den 7 november 2008 09:42 > Till: OpenSceneGraph Users > Ämne: Re: [osg-users] Render to texture problem > > Hi, > > is your RTT camera the child of anything? I'm just guessing

Re: [osg-users] Render to texture problem

2008-11-07 Thread Engvall Åsa
er 2008 09:42 Till: OpenSceneGraph Users Ämne: Re: [osg-users] Render to texture problem Hi, is your RTT camera the child of anything? I'm just guessing without having an example to run. jp Engvall Åsa wrote: > I thought that the texture must be in RGBA to be used in a shader. The >

Re: [osg-users] Render to texture problem

2008-11-07 Thread J.P. Delport
PROTECTED] För J.P. Delport Skickat: den 7 november 2008 08:22 Till: OpenSceneGraph Users Ämne: Re: [osg-users] Render to texture problem Hi, any reason why you have RGBA texture, but RGB in callback? jp Engvall Åsa wrote: Hi! I want to render the scene to a texture and use the texture in a sh

Re: [osg-users] Render to texture problem

2008-11-07 Thread Engvall Åsa
Model(osgViewer::Viewer::SingleThreaded); Unfortunately, the texture is still gray. Åsa -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För J.P. Delport Skickat: den 7 november 2008 08:22 Till: OpenSceneGraph Users Ämne: Re: [osg-users] Render to texture proble

Re: [osg-users] Render to texture problem

2008-11-06 Thread J.P. Delport
Hi, any reason why you have RGBA texture, but RGB in callback? jp Engvall Åsa wrote: Hi! I want to render the scene to a texture and use the texture in a shader. The texture image is saved to file by a postdraw callback, so I can look at it. I'm doing something wrong because the texture bec

Re: [osg-users] Render to texture problem

2008-11-06 Thread J.P. Delport
Hi, can you force single threaded osgviewer and see if it still is a problem? jp Engvall Åsa wrote: Hi! I want to render the scene to a texture and use the texture in a shader. The texture image is saved to file by a postdraw callback, so I can look at it. I'm doing something wrong because

Re: [osg-users] Render to texture problem

2008-11-06 Thread Csaba Halász
On Thu, Nov 6, 2008 at 5:16 PM, Engvall Åsa <[EMAIL PROTECTED]> wrote: > > I want to render the scene to a texture and use the texture in a shader. The > texture image is saved to file by a postdraw callback, so I can look at it. > I'm doing something wrong because the texture becomes all gray. I

Re: [osg-users] Render To Texture problem in a Reflection algorithm

2007-12-02 Thread Himar Carmona
Hi, do both graphics cards support Frame_Buffer_object ? The problem could be in the renderfallback (i.e. PIXEL_BUFFER_RTT) if they do not support it? Try the different RTT methods if these seems to be the problem. Also , i think you maust set the viewport for FBO to work (i suppose it is set i