[osg-users] 3D osg::Image allocation size problem

2016-07-22 Thread Josiah Jideani
Hi, I am developing a scientific visualization application using Qt and Openscenegraph. I am trying to create a 3D osg::Image to add to an osgVolume. I am having problems allocating the image data when I call the allocateImage member function (see the code snippet below). The allocation work

Re: [osg-users] 3D osg::Image allocation size problem

2016-07-22 Thread Robert Osfield
Hi Josiah, Without a stack trace it's very hard to know exactly what is amiss. My best guess is memory allocation error that isn't being handling elegantly. Have a look into the Image::allocateImage() implementation to see what is happening during the allocation. As check on paper how much memor

Re: [osg-users] 3D osg::Image allocation size problem

2016-07-22 Thread Sebastian Messerschmidt
Hi Josiah Am 22.07.2016 um 13:00 schrieb Josiah Jideani: Hi, I am developing a scientific visualization application using Qt and Openscenegraph. I am trying to create a 3D osg::Image to add to an osgVolume. I am having problems allocating the image data when I call the allocateImage mem

Re: [osg-users] 3D osg::Image allocation size problem

2016-07-25 Thread Josiah Jideani
Hi SMesserschmidt I think you are right about the size issue. With sizes less than 640, the getTotalImageSizeIncludingMipmap() function returns the correct size that is 640 x 640 x 640 x 4 x 4. With sizes between 640 and 1024 it returns the wrong size that is even less than the maximum size of

Re: [osg-users] 3D osg::Image allocation size problem

2016-07-25 Thread Sebastian Messerschmidt
Am 25.07.2016 um 09:13 schrieb Josiah Jideani: Hi SMesserschmidt I think you are right about the size issue. With sizes less than 640, the getTotalImageSizeIncludingMipmap() function returns the correct size that is 640 x 640 x 640 x 4 x 4. With sizes between 640 and 1024 it returns the wrong