Greetings,
I'm writing because I'm facing the following problem:

in my application I need to use different .obj models at runtime, so I 
pre-load them as static variables:

static osg::ref_ptr<osg::Node> model = 
osgDB::readNodeFile(containerResourcesUrl + 
"/ModelResized/CargoShip/cargoMin.osgb");

the model needs to be georeferenced in osgEarth, so I put it in a tree 
logic like

ModeNode -> PositionAttitudeTransform->osg::Node

The problem lies in the fact that, sometimes (on some models and not always 
the same ones) the vertices and materials are loaded, while the textures 
are not loaded.

The curious aspect is that, for debugging, I loaded a test model with the 
same logic and at the same position as the model, but moved along the z 
axis and after several tests I noticed that in this case the texture 
problem does not occur. It seems to me as if in this way the "transverse" 
is forced on the model...

Can you help me?

-- 
You received this message because you are subscribed to the Google Groups 
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/bdceef6b-c462-4556-becd-bbf2280de6f5n%40googlegroups.com.

Reply via email to