Hello OpenSG users, I am still using OpenSG 1.8, wrote a small application to test some kind of texture streaming and therefor needed a way to unload images that are already applied to SimpleTexturedMaterials, FresnelMaterials or TextureChunks since all of these got a setImage() method.
What I've done so far to reach this goal is to call each of these setImage() methods with an osg::NullFC parameter. This deletes images out of OpenSG (the ImageBase destructor will be called) but I still can observe a rather huge memory consumption for them and I think that this is memory reserved by the GPU. I now changed my approach, created a static image with one pixel in size and applied that to all setImage() calls instead of NullFC. Actually, this was releasing the images and the additional memory of the GPU. My question now is: Is there a way to achieve the same effect without using such a dummy image? Cheers Till -- GRATIS! Movie-FLAT mit über 300 Videos. Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome ------------------------------------------------------------------------------ What happens now with your Lotus Notes apps - do you make another costly upgrade, or settle for being marooned without product support? Time to move off Lotus Notes and onto the cloud with Force.com, apps are easier to build, use, and manage than apps on traditional platforms. Sign up for the Lotus Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
