Re: [osg-users] Access to osg::Image data

2008-04-17 Thread Paul Pocock
osgvolume is a perfect reference - Thanks Robert On Thu, 2008-04-17 at 09:15 +0100, Robert Osfield wrote: > Hi Paul, > > I'm afraid there is too little code in your excerpt to guess at what > might be wrong, what is wrong is part of the code you haven't > included. > > The osgvolume example do

Re: [osg-users] Access to osg::Image data

2008-04-17 Thread Robert Osfield
Hi Paul, I'm afraid there is too little code in your excerpt to guess at what might be wrong, what is wrong is part of the code you haven't included. The osgvolume example does various ops on a 3D osg::Image so I'd recommend review this example. Robert. On Thu, Apr 17, 2008 at 6:45 AM, Paul Poc

[osg-users] Access to osg::Image data

2008-04-16 Thread Paul Pocock
I'm trying to set the individual rgba in a 3D texture - however having problems : Ive set up the for loops and grabbed the image ptr thus: ptr = image->data(); for.. for .. for .. *(ptr++) = (GLubyte) (height); *(ptr++) = (GLubyte) (height); *(ptr) = (GLub