For a school project, I need to load a DirectX model (.x file) into my (OpenScene)graph. I have a BeeGee.x file (DirectX 3D model) and a BeeGee.dds file (texture). Here's a short sample of my code in charge of constructing the graph:
osg::ref_ptr<osg::Group> root = new osg::Group;
osg::ref_ptr<osg::MatrixTransform> t1 = new osg::MatrixTransform;
root->addChild(t1.get());
// What I want to do but not working
osg::ref_ptr<osg::Node> plane= osgDB::readNodeFile( "BeeGee.x" );
t1->addChild(plane);
...
Is it possible to use osgDB::readNodeFile with DirectX 3D model? Thanks for your help