Hi,
Thanks a lot.. all of the method suggested is working in my application.
Thank you!
Cheers,
manish
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=61980#61980
___
osg-users mailing list
osg-user
o: osg-users@lists.openscenegraph.org
Subject: [osg-users] To Convert QImage to OSG::Image
Hi,
In my application I required to convert QImage to osg::Image to use that as a
texture to wrap it on model.
What is the best way to convert QImage to Osg::Image ?
Thank you!
Cheers,
manish
--
Rea
Hi,
Here's some old code i used..
Ther Problem is that it only work for RGBA16F image..I recommend to make usage
specific code...unless you're ready to map all osg pixelformats to Qt's;
Code:
void ManagedImage::load(const QImage&im){
for( int row=0;( int )rowhttp://forum.openscenegraph
Hi Manish,
I'm just struggling with the same problem. I found on internet (maybe in this
forum) a code example and I implemented the following method:
Code:
osg::Image* convertImage(const QImage& iImage)
{
osg::Image* osgImage = new osg::Image();
if (false == iImage.isNull()) {
QImag
Hi,
In my application I required to convert QImage to osg::Image to use that as a
texture to wrap it on model.
What is the best way to convert QImage to Osg::Image ?
Thank you!
Cheers,
manish
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=61976
5 matches
Mail list logo