> 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.buch...@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
>
>
>
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to