Hi,

On Tue, 2010-12-07 at 12:35 +0100, Sebastian Till wrote:
> 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.

hmm, might be, short question do you only want to remove the image mem 
from OpenSG or also destroy the OpenGL texture object ?

> 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?

IIRC we did something in this area for 2 but I have to check.

kind regards
  gerrit



------------------------------------------------------------------------------
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
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to