|
发表于 2013-1-28 07:51:54
|
显示全部楼层
- Resources
- Both the library and the example require a set of resource files (models/textures) which can be downloaded from here:
- http://osgocean.googlecode.com/files/osgOcean-Resources-1.0.1.rar
- Once you've downloaded them, extract the 'Island','Textures' and 'Boat' folders into the resources directory found in the root of the source code tree. The install project will copy the relevant data files to the bin path like so:
- %install_path%/bin/resources/
- osgOcean uses the osgDB registry to find the resource files. By default it adds the following paths to the registry:
- Shader path: resources/shaders/
- Texture path: resources/textures/
- If you wish to move these resources you must update the data file path list within the registry yourself. This can be down from outside the library with the following code:
- osgDB::FilePathList& pathList = osgDB::Registry::instance()->getDataFilePathList();
- pathList.push_back( new_path );
复制代码 |
|