HI Vincent,

Perhaps everybody else like me is a bit confused by what you are
actually after.  The OSG supports multi-texturing, and shaders, the
plugins are all orthogonal to final readering - all in all is most
likely what you are trying to do is very straightforward.  I can't
really glean exactly what the problem might be, perhaps you are just
tackling it in an awkward way that is confusing things.

Robert.

On Mon, Feb 25, 2008 at 8:26 AM, Vincent Bourdier
<[EMAIL PROTECTED]> wrote:
> Hello,
>
> I will make my own answer :
> I used osg::Image to obtain the unsigned char* data array, and i use it to
> melt the two pictures in one.
>
>     data[n] = osg::maximum(Edata[n],   (unsigned char)Cdata[i]);
>
> This is not a the solution of the problem, but it can solve it, when no
> other solution exist. (Be carefull to the depth of the Image)
>
> If someone have anther solution, I'll be interested.
>
> Thank you.
>
>
> 2008/2/21, Vincent Bourdier <[EMAIL PROTECTED]>:
>
> > Hello
> >
> > I am trying to put 2 Texture2D on the same geometry.
> >
> > The backgroud texture is a .jpg file and the foregroud texture is a .png
> file with opacity (clouds map).
> >
> > If I use them normally, the foregroud texture is in good position, but in
> place of the transparent's pixels the is only a dark (black) color, and in
> place of the clouds pixels, I can see the background picture...
> >
> > if I convert .png file in .jpg(without transparency) it does nothing at
> all.
> > and in .gif it does something strange, with a hight level of opacity (very
> transparent) and the white color of the clouds is not visible...
> >
> > Is there some picture formats recomendations ?
> > How to manage 2 textures on the same geometry ? (melting them)
> >
> > Thanks
> >
> >
>
>
> _______________________________________________
>  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