Sorry guys ! My mistake. I use includes from 2.0 version and libs from 2.3 

Thanx for your help 

Bye

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Osfield
Sent: Wednesday, April 09, 2008 3:57 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Problem with filepaths

 

Hi Roman,

I can't work out what is going on from your email, I'm just plain confused.
What errors are you getting?  Compile errors?  Link errors?  Runtime errors?
Hows about providing an example of the error so we don't have to guess.

Robert.

On Wed, Apr 9, 2008 at 12:42 PM, Roman Grigoriev <[EMAIL PROTECTED]>
wrote:

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
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

 

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to