Hi guys!

Today I synced with osg SVN but got errors when I compile on osg 2.0  all
works, but now I've got errors.

Lately I loaded a model with this (model is in /Models directory)

osgDB::FilePathList pathList = osgDB::getDataFilePathList();

pathList.push_back("./Models/");

osg::Node* base=osgDB::readNodeFile("desert.3ds");

but now on osgDB::FilePathList codestring  I got hangup and have to load
like this

osg::Node* base=osgDB::readNodeFile("Models/desert.3ds");

and also lately I load shaders with

luminance0prg->addShader(osg::Shader::readShaderFile(osg::Shader::VERTEX,
osgDB::findDataFile("downLumLog_vp.glsl"));

luminance0prg->addShader(osg::Shader::readShaderFile(osg::Shader::FRAGMENT,
osgDB::findDataFile("downLumLog.glsl"));

and now I have to load it like this

std::string VertexShaderFile = osgDB::findDataFile("downLumLog_vp.glsl");   

luminance0prg->addShader(osg::Shader::readShaderFile(osg::Shader::VERTEX,
VertexShaderFile));

std::string FragmentShaderFile_downLumLog =
osgDB::findDataFile("downLumLog.glsl");

luminance0prg->addShader(osg::Shader::readShaderFile(osg::Shader::FRAGMENT,
FragmentShaderFile_downLumLog ));

So What should I do?

Thanx in advance

Roman

 

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to