Yes, I'd also use a viewport to render to a particular area. Also make sure
you set the clip rectangle to be the same as the viewport otherwise
operations like glClear will affect the whole texture.

On 5 May 2010 11:48, Martin Aasen <[email protected]> wrote:

> Thanks Christian,
>
> I am rendering to a texture which is attached to a FBO. The problem was
> that I only want to write to the parts of the texture that need to be
> updated. That is, if I have a 8192x8192 texture and only need to update a
> small area of 128x128, I don't want to prosess all 8192x8192 fragments.
>
> I have made some tests using a view port that matches the selected area of
> the texture. This seems to work. Sorry for not checking this well enough
> before posting.
>
> Any additional comment, pointers or suggestions are still welcome!
>
> Cheers,
> Martin
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=27561#27561
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to