Hi,

I found a solution :


Code:
const uchar *qImageBuffer = (const uchar*)myOsgImage->data();

 QImage img(qImageBuffer, myOsgImage->s(), myOsgImage->t(), 
                                                                                
          myOsgImage->getRowSizeInBytes(), 
                                                                                
          QImage::Format_RGB888);

QPixmap pixmapObject;
pixmapObject.fromImage(img);

labelSelectedImage->setPixmap(QPixmap::fromImage(img)); // labelSelectedImage 
is a qt widget



It works, but i continue to get some problem with textures which contain alpha 
channel.



Thank you!

Cheers,
Andrea

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=65361#65361





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to