Re: [osg-users] Texture subloads

2010-12-15 Thread Yurii Monakov
Hi All!

Searching the answers on my question I've discovered some posts about
osg::Texture2D::SubloadCallback and I think that this feature fits my
purposes. The only question I have is about osg::Texture2D::apply()
function - when is it called? Does it depend on parent node visibility
or not? I need this callback to be called every frame regardless of
parent node's spatial orientation.

Thank you!

Best regards,
Yurii Monakov
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Texture subloads

2010-12-13 Thread Yurii Monakov
Hi All!

I have very specific problem which I don't know how to solve with OSG.

I want to create very large texture atlas (4096x2048) which consists
of small subtextures (128x64, so there are 32x32=1024 subtextures).
Each of small textures should contain some textual/symbol information
which is supposed to be frequently updated in the runtime. I use Qt to
compose QImage with rendered text/symbols and I want to update some
subtexture (given by offsets in x and y with constant size) of the the
texture atlas with prerendered data.

I know how to achieve this with pure OpenGL (using PBO and
glTexSubImage2D), but I can't figure out if there is a way do this
with OSG? Maybe subclassing osg::Texture2D or something?

Thank you!

Best regards,
Yurii Monakov
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org