i guess i spoke too fast. I get transparency no, but it´s not exactly what i 
want

how do i know what kind of FBO i´m using???

From: [EMAIL PROTECTED]
To: osg-users@lists.openscenegraph.org
Date: Thu, 24 Jul 2008 14:00:56 +0200
Subject: Re: [osg-users] Render to texture and ClearColor








ok, i solved it with this instruction

camera->setRenderTargetImplementation(osg::Camera::FRAME_BUFFER_OBJECT);

don´t know what it exactly does, but it´s working now as i want it to.  

An explanation of what this isntruction do will be welcome

thanks



> Date: Thu, 24 Jul 2008 12:53:07 +0100
> From: [EMAIL PROTECTED]
> To: osg-users@lists.openscenegraph.org
> Subject: Re: [osg-users] Render to texture and ClearColor
> 
> Dous you FBO have an alpha channel????
> 
> On Thu, Jul 24, 2008 at 12:42 PM, David _ <[EMAIL PROTECTED]> wrote:
> > Hi
> >
> > i´m currently rendering to a texture using a slave camera
> >
> > my problem is that i can´t set the clear color to alpha. Each time the slave
> > camera renders a new frame i get a nice blue background instead of the
> > transparent background i´m looking for
> >
> > i´ve tried with values of 0.0, 0.5 add 1.0 for alpha
> >
> > camera->setClearMask( GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT);
> > camera->setClearColor(osg::Vec4(0.0f,0.0f,1.0f,0.0f));
> > camera->setColorMask(true, true, true, true);
> >
> > i´ve created the texture2d attached to the camera from and osg::image with
> > GL_RGBA and GL_UNSIGNED_BYTE formats and also i´ve tried by creating the
> > texture2d with no parameters and setting later the
> > texture->setInternalFormat(GL_RGBA)
> >
> > any idea of what i´m doing wrong???
> >
> > thanks in advance
> >
> >
> >
> >
> >
> >
> > ________________________________
> > ¿Quieres los emoticonos y guiños más divertidos? Descárgate Internet
> > Explorer 7, y consigue contenidos exclusivos cada semana. ¡Gratis! ¿Quieres
> > los emoticonos y guiños más divertidos?
> > _______________________________________________
> > 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

¡Atrévete con Abecedario, el juego del momento! Invita a tus contactos de 
Messenger y demuéstrales lo que sabes demuéstrales lo que sabes

_________________________________________________________________
Tu mejor plan para el fin de semana y toda la actualidad del mundo del corazón. 
Entra en MSN Entretenimiento
http://entretenimiento.es.msn.com/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to