[osg-users] osgTerrain and CLAMP_TO_EDGE in ImageLayers?

Christian Buchner christian.buchner at gmail.com
Tue Sep 8 04:54:23 PDT 2015


> The current CLAMP_TO_EDGE approach requires me to modify the edge
> pixels of that terrain tile to have a transparent color.

Sorry, I meant to say "edge pixels of that image". I should proof-read my
postings better.



2015-09-08 13:52 GMT+02:00 Christian Buchner <christian.buchner at gmail.com>:

> Hi all,
>
> I am questioning the hardcoded use for CLAMP_TO_EDGE texture wrapping
> modes in the osgTerrain/GeometryTechnique.cpp.
>
> Let's say that I wanted to add a high tes texture patch on some small
> location on a terrain tile. The current CLAMP_TO_EDGE approach requires me
> to modify the edge pixels of that terrain tile to have a transparent color.
> So I basically lose these pixels.
>
> I think it would be desirable to have the texture wrapping mode as a
> configurable option in the osgTerrain::Layer base class, similar to how
> currently the minLevel, maxLevel, minFilter and magFilter variables are
> configurable there.
>
> Preferable to me would be an approach using CLAMP_TO_BORDER where I can
> define my own border color, for example to be fully transparent.
>
> If this is an acceptable approach, I could submit a patch.
>
> Christian
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150908/11b70edb/attachment-0003.htm>


More information about the osg-users mailing list