Hi Robert,

I don't know exactly what append,

I have a VS bug :

Windows a déclenché un point d'arrêt dans 3DEM.exe.
Cela peut être dû à une défaillance du tas et indique un bogue dans 3DEM.exe
ou l'une des DLL chargées.
La fenêtre Sortie peut contenir des informations de diagnostic
supplémentaires


But If I put in comment the previous lines of my code, no bug appears...

Any ideas ?

Is there any important bug which have been resolved from the last realease
(OSG 2.2) in osg::Image ?

Thanks.

Regard,
   Vincent


2008/4/10, Robert Osfield <[EMAIL PROTECTED]>:
>
> HI Vincent,
>
> What do you mean by an "error append"?
>
> In your code have both a allocateImage and a setImage, you should just use
> one or other.
>
> Robert.
>
> On Thu, Apr 10, 2008 at 5:46 PM, Vincent Bourdier <
> [EMAIL PROTECTED]> wrote:
>
> > Hi All,
> >
> > I'm making a loop which compute each pixel color for a RVB image...
> >
> > but sometimes, wen runing, an error append in :
> >
> >     osg::ref_ptr<osg::Image> image = new osg::Image;
> > >     image->allocateImage(_x, _y, 1, GL_RGB, GL_UNSIGNED_BYTE);
> > >     image->setOrigin(osg::Image::BOTTOM_LEFT);//start counting pixels
> > > on the Bottom left of the picture
> > >     image->setImage(_x, _y, 1, GL_RGB, GL_RGB, GL_UNSIGNED_BYTE, data,
> > > osg::Image::USE_NEW_DELETE);
> > >
> > >     osgDB::writeImageFile(*image, "Z:/autres/Gradient.jpg");
> > >
> >
> > note : data is a unsigned char* of _x*_y*3 size
> >
> > Is there any specification or order to create a osg::Image from an
> > unsigned char* ?
> >
> > Thanks.
> >
> > Regards,
> >   Vincent.
> >
> > _______________________________________________
> > 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
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to