查看: 2203|回复: 1

osgdem生成ive地形时提示ive not supported怎么解决

[复制链接]

该用户从未签到

发表于 2017-6-15 21:37:01 | 显示全部楼层 |阅读模式
vpb编译成功了,运行下面代码
  1. osgdem -t D:\earthResource\image\zhejiang17.tif -d D:\earthResource\heightfield\ zhejiang17.tif -o out.ive --no-mip-mapping
复制代码

提示如下:

  1. -t D:\earthResource\image\zhejiang17.tif
  2. ADD: D:\earthResource\image\zhejiang17.tif
  3. -d D:\earthResource\heightfield\zhejiang17.tif
  4. ADD: D:\earthResource\heightfield\zhejiang17.tif
  5. -o out.ive
  6. Adding terrainTile
  7. DataSet::_run() 0 0
  8. Now checking for plug-in osgPlugins-3.4.0/osgdb_nvtt.dll
  9. DataSet::assignDestinationCoordinateSystem() : assigning first source file as the destination coordinate system
  10. started DataSet::createDestination(30)
  11. Time for after_reproject 0.000003
  12. local_extents = xMin() 120.020142 120.294800
  13.                 yMin() 30.124512 30.300293
  14. AR=1.562500 C1=2 R1=1
  15. createNewDestinationGraph
  16. Time for _destinationGraph->computeMaximumSourceResolution() = 0.036620
  17. Time for createDestinationGraph 0.229234
  18. Time for after_computeNeighbours 0.035749
  19. completed DataSet::createDestination(30)
  20. There are 2 contributing source files:
  21.     D:\earthResource\heightfield\zhejiang17.tif
  22.     D:\earthResource\image\zhejiang17.tif
  23. mkpath()
  24. Need to create output task directory = out_root_L0_X0_Y0
  25.    Directory already created
  26. Task output directory = out_root_L0_X0_Y0\
  27. started DataSet::writeDestination(out.ive)
  28. _readRow 1
  29.    reading tile level=0 X=0 Y=0
  30. imageName = out_L0_X0_Y0.dds
  31. DestinationTile::readFrom(SetName=, FileName=D:\earthResource\heightfield\zhejiang17.tif)
  32. DestinationTile::readFrom(SetName=, FileName=D:\earthResource\image\zhejiang17.tif)

  33. _equalizeRow 1
  34.    equalizing tile level=0 X=0 Y=0
  35. _writeRow 1
  36. DestinationTile::createStateSet() - DataSet::NO_MIP_MAPPING
  37. Compressed image
  38. called DataSet::decorateWithTerrain()
  39.        getDirectory()=
  40.    writeNodeFile = 0 X=0 Y=0 filename=out.ive
  41. _writeNodeFile(out.ive)
  42. Writing out image layer out_L0_X0_Y0.dds, _directory=
  43. vpb::access(out.ive, W_OK)=-1
  44. vpb::access(., W_OK)=0
  45. Caught exception : Warning: Write to "out.ive" not supported.
复制代码

重点是
Caught exception : Warning: Write to "out.ive" not supported
但其中osgdb_ive.dll就在文件夹下。请问怎么破?

该用户从未签到

发表于 2017-6-17 12:16:26 | 显示全部楼层
Caught exception : Warning: Write to "out.ive" not supported。根据这句话,去查到代码,调试找原因
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

联系我们

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