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
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org