Hi Ulrich.
I save the osg format and the Texture2D record is inserted correctly but the
file path disappears (I load objects that already have the textures, I don't
apply the textures in my tool).
I'm going to try to use setUnRefImageDataAfterApply before using setSceneData.
I'll tell you if
Hi,
Hi Ulrich.
Yes, I've made a Visitor to setUnRefImageDataAfterApply(false) for all textures
properties and now works like charm.
Thank you!
Cheers,
Dario
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=31050#31050
Hello Dario,
Yes, I've made a Visitor to setUnRefImageDataAfterApply(false) for all textures
properties and now works like charm.
If you want to have less code to maintain, you could just use the
osgUtil::Optimizer::TextureVisitor like this:
osgUtil::Optimizer::TextureVisitor
Hi Dario,
On 25/08/10 19:08 , Dario Minieri wrote:
I save the osg format and the Texture2D record is inserted correctly but the
file
path disappears (I load objects that already have the textures, I don't apply
the
textures in my tool).
My bad - it's not only the image data that's
Hi,
I have a very strange problem. I've written an FLTK application, which use the
viewer (pretty similar to the FLTKViewer in the OSG examples), that compose and
show LOD models. I can load multiples models and I inserted these models as
childs of an osg::LOD node. Then, I've tried to write
Hi Dario,
On 25/08/10 4:26 , Dario Minieri wrote:
Now, I've a strange behaviour. In the viewer ALL WORKS FINE, I can see the
models
switch and all relatives textures correctly. The written LOD model is correct
in terms
of meshes (I see the correct models transition when the bound is
6 matches
Mail list logo