image textures not showing when loading .obj file dynamically

classic Classic list List threaded Threaded
3 messages Options
TonBrouwer TonBrouwer
Reply | Threaded
Open this post in threaded view
|

image textures not showing when loading .obj file dynamically

Hi,

When I load .obj files with point model substitution from a .earth file all loads
correctly.

When I do a similar thing from code the image textures do not show.

The model is loaded using osg::Node* model = osgDB::readNodeFile("myfile.obj")
then  placed using a positionattitudetransform and a geotransform (geo)
using mapNode->getLayerNode(_lyr)->asGroup()->addChild(geo)

The model shows in the right place, just all grey....

Regards,

Ton Brouwer
TonBrouwer TonBrouwer
Reply | Threaded
Open this post in threaded view
|

Re: image textures not showing when loading .obj file dynamically

Hi,

textures now show, I've used the ModelNode approach as given in
>Jan 04, 2013; 1:27pm How to add a obj model dynamically?

Still a lot of z-fighting going on with the textures though. Anyone ?

Regards,

Ton Brouwer
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: image textures not showing when loading .obj file dynamically