[osg-users] svn 8134 osgprerender --image

2008-04-18 Thread J.P. Delport
Hi, with the latest SVN and osgprerender --image, I'm getting a lot of: Warning: detected OpenGL error 'invalid enumerant' after RenderBin::draw(,) lines written to the screen. Does anyone else see this? Without --image there are no errors. On another machine I have rev 8084 and have

Re: [osg-users] svn 8134 osgprerender --image

2008-04-18 Thread Robert Osfield
Hi J.P, On Fri, Apr 18, 2008 at 10:53 AM, J.P. Delport [EMAIL PROTECTED] wrote: version 8084 (that works) already has MRT included, that's why I had it on another machine. It seems like it was the moving of the MRT to FBO that might be the problem. Thanks for the clarification, gives us a

Re: [osg-users] svn 8134 osgprerender --image

2008-04-18 Thread Robert Osfield
Hi J.P, Thanks for the heads up, I just tried it on my machine (Kubuntu 7.10, 7800GT) and get the same error. My guess is that the changes to support Multiple Render Targets has broken something in RenderStage w.r.t reading imagery. Arrrgghghg two steps forward, one step back Robert.

Re: [osg-users] svn 8134 osgprerender --image

2008-04-18 Thread J.P. Delport
Hi Robert, Robert Osfield wrote: Hi J.P, On Fri, Apr 18, 2008 at 10:53 AM, J.P. Delport [EMAIL PROTECTED] wrote: version 8084 (that works) already has MRT included, that's why I had it on another machine. It seems like it was the moving of the MRT to FBO that might be the problem.

Re: [osg-users] svn 8134 osgprerender --image

2008-04-18 Thread Robert Osfield
Hi J.P, On Fri, Apr 18, 2008 at 11:20 AM, J.P. Delport [EMAIL PROTECTED] wrote: Yes, I think I know what is wrong. Remember how you modified the enum Camera::BufferComponent so that COLOR_BUFFER and COLOR_BUFFER0 were not the same? When glDrawBuffers was in RenderStage, it knew to only

Re: [osg-users] svn 8134 osgprerender --image

2008-04-18 Thread Robert Osfield
Hi J.P et. al, On Fri, Apr 18, 2008 at 12:22 PM, Robert Osfield [EMAIL PROTECTED] wrote: Change FBO so that it used osg::Camear::BufferComponent rather than GLenum would be one way, as this would allow use to differentiate properly. Changing setAttatchment(GLenum,..) to

Re: [osg-users] svn 8134 osgprerender --image

2008-04-18 Thread Robert Osfield
Hi All, With these changes the MRT and the non MRT FBO examples work for me. Could users do an svn update and these out the new codes? I have just done more testing, and found that while the follow works: osgprerender cow.osg --image --fbo Without the --image it fails - I just get a back

Re: [osg-users] svn 8134 osgprerender --image

2008-04-18 Thread Alberto Luaces
The SVN gives this error: [ 1%] Building CXX object src/osg/CMakeFiles/osg.dir/FrameBufferObject.o /home/alberto/OSGSVN2/trunk/src/osg/FrameBufferObject.cpp: In member function ‘void osg::FrameBufferObject::updateDrawBuffers()’: /home/alberto/OSGSVN2/trunk/src/osg/FrameBufferObject.cpp:619:

Re: [osg-users] svn 8134 osgprerender --image

2008-04-18 Thread Robert Osfield
Hi Alberto, Sorry, missed this check in (I was managing multiple patches at once.) The include/osg/Camera updates are now checked in. Robert. On Fri, Apr 18, 2008 at 2:44 PM, Alberto Luaces [EMAIL PROTECTED] wrote: The SVN gives this error: [ 1%] Building CXX object

Re: [osg-users] svn 8134 osgprerender --image

2008-04-18 Thread Robert Osfield
Hi All, I've tracked down the below problem and checked in a bug fix for it. So please svn udpate and test. Robert. On Fri, Apr 18, 2008 at 2:16 PM, Robert Osfield [EMAIL PROTECTED] wrote: I have just done more testing, and found that while the follow works: osgprerender cow.osg --image

Re: [osg-users] svn 8134 osgprerender --image

2008-04-18 Thread Alberto Luaces
Ok, it builds now, osgprerender --image works if what is intended is to invert the colours of a rectangle inside of the cow texture. I really never tried that example with the --image switch, but I think it's doing its work nicely. El Viernes 18 Abril 2008ES 15:55:54 Robert Osfield escribió: