[osg-users] load many and big bmp image into textures

2013-07-31 Thread Nat Doublet
Hi, I cut an image in 16*16 bitmap files (12M each). I want to put one by one in an osg::texture2d, after use, I want to unload it just after (to avoid trouble with memory). My code is : [code] std::pairint, int XY = std::make_pair(ix, iy); osg::StateSet* p_stateSet =

Re: [osg-users] load many and big bmp image into textures

2013-07-31 Thread Preet
1. If you use osg::ref_ptr for your Texture2D objects, they should be cleaned up when you remove any references to them (ie just remove the geode(s) the texture is attached to or any other references to the texture) 2. bad_alloc usually means you're running out of memory. On Fri, Jul 26, 2013