查看: 2171|回复: 5

运行osgOcean的例子的问题

[复制链接]

该用户从未签到

发表于 2013-1-26 16:58:12 | 显示全部楼层 |阅读模式
运行osgOcean带的那个oceanExample.exe,场景只有下半部分的海浪,上半部分是黑屏,我的显卡是nvidia的GF8400M;还有运行时会提示islands.ive找不到,这是什么原因呢?

该用户从未签到

发表于 2013-1-26 21:11:45 | 显示全部楼层
是天空盒的图片和island.ive的模型找不到,好处理哦

该用户从未签到

 楼主| 发表于 2013-1-27 15:53:45 | 显示全部楼层
本帖最后由 zbyishui 于 2013-1-27 15:54 编辑
wenjing20090909 发表于 2013-1-26 21:11
是天空盒的图片和island.ive的模型找不到,好处理哦


下下来的那个resources文件应该放在哪儿呢?我放置的相对位置如下所示(bin目录):
20130127_155052.jpg

该用户从未签到

发表于 2013-1-28 07:51:54 | 显示全部楼层
  1. Resources

  2. Both the library and the example require a set of resource files (models/textures) which can be downloaded from here:

  3. http://osgocean.googlecode.com/files/osgOcean-Resources-1.0.1.rar

  4. 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:

  5. %install_path%/bin/resources/

  6. osgOcean uses the osgDB registry to find the resource files. By default it adds the following paths to the registry:

  7. Shader path: resources/shaders/

  8. Texture path: resources/textures/

  9. 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:

  10. osgDB::FilePathList& pathList = osgDB::Registry::instance()->getDataFilePathList();
  11. pathList.push_back( new_path );
复制代码

该用户从未签到

发表于 2014-8-20 23:32:07 | 显示全部楼层

我用64位win8编译的,resources放在哪个目录下都不显示天空纹理,这是什么情况??应该与显卡无关吧,

该用户从未签到

发表于 2014-8-21 14:49:52 | 显示全部楼层
siucan 发表于 2014-8-20 23:32
我用64位win8编译的,resources放在哪个目录下都不显示天空纹理,这是什么情况??应该与显卡无关吧,

跟显卡有关吗  笔记本是A卡啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则

OSG中国官方论坛-有您OSG在中国才更好

网站简介:osgChina是国内首个三维相关技术开源社区,旨在为国内更多的技术开发人员提供最前沿的技术资讯,为更多的三维从业者提供一个学习、交流的技术平台。

联系我们

  • 工作时间:09:00--18:00
  • 反馈邮箱:1315785073@qq.com
快速回复 返回顶部 返回列表