Hi J-S, Thanks for your explicit response! Yes, I've solved this problem and the cow could appear. But another question now: The command line shows an error after "osgviewerd cow.osg": Error: [Screen #0] ChooseMatchingPixelFormat<> -Unable to choose the requested pixel format Any suggestion? Thanks again!
Best regards, Randy -----Original Message----- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Jean-Sébastien Guay Sent: Wednesday, July 07, 2010 12:12 AM To: OpenSceneGraph Users Subject: [!! SPAM] Re: [osg-users] osgviewerd cow.osg ---no data loaded Hello Randy, > After installing, I don’t know how to set environment variable > ”OSG_FILE_PATH” which should be the “sample” directory. Since I get only > 4 files in installing directory——bin,include,lib,share,but with no > sample file. See http://www.openscenegraph.org/projects/osg/wiki/Downloads/SampleDatasets Download the OpenSceneGraph-Data-2.8.0.zip file, unzip it wherever you want (it can be in a "data" directory parallel to your bin, include, lib, share directories, for example) then set OSG_FILE_PATH to that directory, for example (on Windows): set OSG_FILE_PATH=C:\OpenSceneGraph\data If you want OSG_FILE_PATH to be set at the system level (so you don't need to set it each time you start a new command prompt) go to your system properties, Environment Variables button and set it there. On Linux (bash), you'd type: export OSG_FILE_PATH=/home/username/src/OpenSceneGraph/data and you'd add that to your .bashrc for example. Hope this helps, J-S -- ______________________________________________________ Jean-Sebastien Guay jean-sebastien.g...@cm-labs.com http://www.cm-labs.com/ http://whitestar02.webhop.org/ _______________________________________________ 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