Hi Paul

Nice observation ! I was a little bit tired yesterday evening I think... it
is better with 0 to 255 values...

Art, the code is good if at the end I just do a
result->setImage(result->s(), result->t(), result->r(),
result->getInternalTextureFormat(), result->getPixelFormat(),
result->getDataType(), data,  result->getAllocationMode());
( and no the whole allocation)

Thanks for your help, I can now save png files with alpha channel :-)

Regards,
   Vincent.


2009/2/23 Paul Speed <[email protected]>

>
>
> Vincent Bourdier wrote:
> [snip]
>
>>            data[n+3] = 1.0;
>>
>
> This isn't your problem with the image not saving but I think it will hit
> you eventually.  data is a char array and you are setting a float. I think
> you really want to be setting 0xff or 255.
>
> -Paul
>
>
> _______________________________________________
> 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