I already searched in the forum, if there is any solution for my problem. But did not find any.
I've been trying to load a dae-File with
"osg::ref_ptr<osg::Node> building = new osg::Node();
building = osgDB::readNodeFile("D:/StraßenSzene/Modelle/House/House.dae");" .
When I compile my project it shows the house without a texture.
When I drag the dae-File in the osgviewer.exe or open it over the console "osgviewer house.dae" it shows the model with its textures.
I hope anyone can show me what i am doing wrong, or give me an example code where a dae-file is loaded.
When I set the exact path of each object in the OSG_FILE_PATH it works...
At the moment i try to debug with the debug level of osg. Hope I get a few information out of it.
I am using osg version 3.3.3. If you need any other information, just ask me