----- "Aitor Ardanza" a écrit : > 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!
There is also Image::data(i,j) See: http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00305.html#b25259a3084978232846b0f1c4aed4bd -Fred _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

