[osg-users] [osgPlugins] Loading an image to a texture

2009-10-05 Thread Giering Joseph
Hi, I have a problem to load an image to a texture by using this code. // create drawable geometry object osg::Geometry* pGeo = new osg::Geometry; // add 4 vertices creating a quad osg::Vec3Array* pVerts = new osg::Vec3Array; pVerts->push_back( osg::Vec3( 0, 0, 0 ) ); pVerts-

[osg-users] [osgPlugins] Loading a model

2009-10-05 Thread Giering Joseph
Hi, I have a problem to load a model by using this code: // load model osg::Node* pLoadedModel = osgDB::readNodeFile( "C:\Programme\ADTF\2.1.1\lib\OpenSceneGraph-2.6.1\bin\tour.obj" ); if(!pLoadedModel) { std::cout << "Error: Couldn't find model!" << std::endl; } m_pT