Hi Aurelien,

You have to explicitly enable multisampling for FBO's when settting up
the RTT Camera, so should it be off by default.

Robert.

On 21 February 2012 08:44, Aurelien Albert <aurelien.alb...@alyotech.fr> wrote:
> Hi,
>
> In my application, I need to render 2 buffers :
> - color buffer
> - "object-code" buffer
>
> I obtain the color-buffer by normal rendering to an FBO.
>
> For some algorithms purpose (object tracking, objects statisitics, etc...) I 
> need also an "object-code" buffer with, for each pixel, an int value 
> corresponding to the object.
>
>  I can do this with a shader in another FBO, but I need this buffer to be not 
> antialiased at all.
>
> For example, if the background code is "0", and there are 2 objects in the 
> scene (codes "10" and "20") the final "object-code" buffer must be filled 
> with "0", "10" and "20" but no other value.
>
> How can I configure my rendering to do so ? Maybe using the stencil buffer as 
> a object-code buffer (I don't know if antialiasing such as MSAA affect 
> stencil buffer) ?
>
> Thank you!
>
> Cheers,
> Aurelien
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=45619#45619
>
>
>
>
>
> _______________________________________________
> 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

Reply via email to