Hi All,
Andreas Zieringer wrote:
> Hi Stefano,
>
> ok I added it to the cvs for the antialiasing you can do something like
> this:
>
> int vppw = vp->getPixelRight() - vp->getPixelLeft();
> int vpph = vp->getPixelTop() - vp->getPixelBottom();
>
> beginEditCP(_offsetdeco);
> _offsetdeco->setFullSize(vppw, vpph);
> _offsetdeco->setDecoratee(cam);
> endEditCP(_offsetdeco);
>
> glClear(GL_ACCUM_BUFFER_BIT);
>
> unsigned int size = samples.size();
> for(unsigned int i=0;i<size;++i)
> {
> beginEditCP(_offsetdeco);
> _offsetdeco->setOffset(samples[i].x(), samples[i].y());
> endEditCP(_offsetdeco);
>
> // render scene
>
> glAccum(GL_ACCUM, 1.0f / float(size));
> glAccum(GL_RETURN, float(size) / float(i + 1));
> }
> glAccum(GL_RETURN, 1.0f);
if somebody could turn that into a tutorial-style program I would be very happy
to add it to the CVS... ;)
Dirk
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users