[osg-users] Access to osg::Image data
Paul Pocock
Paul.Pocock at dsto.defence.gov.au
Thu Apr 17 16:13:30 PDT 2008
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 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 Pocock
> <Paul.Pocock at dsto.defence.gov.au> wrote:
> > 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) = (GLubyte) (height);
> >
> >
> > ..but not getting the results I should - Is this how I should access the
> > data form osg::Image?
> >
> > Kind Regards
> >
> > Paul
> >
> >
> >
> >
> >
> > IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email.
> >
> >
> > _______________________________________________
> > osg-users mailing list
> > osg-users at lists.openscenegraph.org
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
More information about the osg-users
mailing list