Ulrich Hertlein wrote: > > I believe your pixel address calculation is wrong; try this instead: > > // i==row/y, j==column/x > unsigned char* pixel = texture->getImage(0)->data() + ((i * tex_width) + j) * > 4; > *(pixel+0) = r; > *(pixel+1) = g; > *(pixel+2) = b; > *(pixel+3) = a; >
I get the same result ... thanks for the reply! ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=33741#33741 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

