Hi Robert,

thank you very much for your help. Converting images from JPG do DDS
was a good idea. It solved my problem with too much of occupied
memory. Unfortunately, application still crashes but it is not
connected to textures but to the osg::Impostor instead and to a
hopeless ATI card in my computer. I am sorry but I have no time now to
study it in detail. I could return to it later.

As a side effect of my debugging I have got deep into the
SharedStateManager and DatabasePager. If I could suggest something
then there could be a simple test (a call to the SharedStateManager)
in the DatabasePager::compileGLObjects(...) before compiling a state
from _dataToCompileList. When there is a lot of states to be later
shared in SharedStateManager, there is (in my view) many of
unnecessary GL-compiling. It is the same thread, so it should not make
any problems. I think somebody has wrote about it too.

           Milan


----- Original Message ----- From: "Robert Osfield" <[EMAIL PROTECTED]>
To: "osg users" <[email protected]>
Sent: Saturday, November 11, 2006 5:20 PM
Subject: Re: [osg-users] Texture compression


Hi Milan,

I don't know the route of the problem you have, and don't have a
huge
amount to suggest as I haven't played with type of paged usage
before.
Perhaps others can help out w.r.t SharedStateManager.

On the topic of compressed textures, perhaps you could try saving
them
out to .dds.

Robert.

On 11/11/06, Milan Simunek <[EMAIL PROTECTED]> wrote:
Hi,

I have been using the CompressTextureVisitor for compressing
textures
to IVE-format. Now I am trying to use the PagedLODs, DatabasePager
and SharedStateManager. Therefore I have to save with the
"noTexturesInIVEFiles" option to avoid writing shared textures in
every PagedLOD. The DatabasePager/SharedStateManager setup
seems to right, images are cached and states/textures shared. But
used
memory is raising too much (according to non PageLOD version) and
continuously and finally application crashes. All DataVariances are
set to STATIC. How can I achieve to share textures among
PagedLODs and simultaneously have images compressed in memory?

     Thanks for help,

            Milan Simunek

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to