上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 40 下一页
摘要: #include #include #include #include #include #include //只能处理osgExp插件导出的单个ive文件class InsideLODVisitor : public osg::NodeVisitor{public: InsideLODVisito... 阅读全文
posted @ 2015-06-19 09:46 酷熊 阅读(1248) 评论(0) 推荐(0) 编辑
摘要: CStringLeft(intnCount)const;//从左边1开始获取前nCount个字符CStringMid(intnFirst)const;//从左边第nCount+1个字符开始,获取后面所有的字符CStringMid(intnFirst,intnCount)const;//从左边第nFi... 阅读全文
posted @ 2015-06-08 16:03 酷熊 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 可以使用Geometry头文件中的 Geometry* createTexturedQuadGeometry osg::ref_ptr<osg::Texture2D> texture = new osg::Texture2D; osg::ref_ptr<osg::Image> image = osg 阅读全文
posted @ 2015-05-22 15:26 酷熊 阅读(1102) 评论(0) 推荐(0) 编辑
摘要: 在公式中输入=sum(A2:A6),计算的是A列2-6行的和=sum(A:A)计算的是A列全部的和 阅读全文
posted @ 2015-05-01 20:57 酷熊 阅读(1790) 评论(0) 推荐(0) 编辑
摘要: texconv D:\png\*.* -o E:\dds -m 5 -f dxt3 -ft dds上述命令的意思是把D:\png目录下的全部文件(当然可以指定特定格式例如*.png)转换成dds格式,存储到E:dds目录(注意此目录一定要存在)-m表示mip级数,-f表示dds内部格式,一般常用的有... 阅读全文
posted @ 2015-04-21 16:04 酷熊 阅读(1271) 评论(0) 推荐(0) 编辑
摘要: 严重注意!!!以下设置必须在viewer.realize();之后,否则不起作用!!!!设置相机的位置,可以通过CameraManipulator(一般是osgGA::TrackballManipulator)设置,可以使用setTransformation设置设置相机的其他参数,ViewMatri... 阅读全文
posted @ 2015-04-21 12:08 酷熊 阅读(3317) 评论(0) 推荐(0) 编辑
摘要: 从alphapixel网站下载了OSG3.0.1VS2010x64版本的库,但是里面不包括osgQt模块,于是得自己编译*************osgQtx64.zip工程文件可以去本博客园的“文件”中去下载************64位电脑,自己编译好64位Qt4.8.2,假设编译好的64位Qt... 阅读全文
posted @ 2015-04-17 14:03 酷熊 阅读(3805) 评论(0) 推荐(0) 编辑
摘要: 安装qt-win-opensource-4.8.2-vs2010.exe(从http://download.qt.io/archive/qt/4.8/4.8.2/下 载),这个是32位的,里面有编译好的库,可以直接用来开发,里面也有src源文件,现在要用源文件编译VS2010下使用的64位的库确定自... 阅读全文
posted @ 2015-04-15 17:29 酷熊 阅读(2573) 评论(0) 推荐(0) 编辑
摘要: osgDB::writeNodeFile(node, path, new osgDB::Options("noTexturesInIVEFile")); noTexturesInIVEFile:选项可以在写ive模型文件的时候只写纹理文件对应的路径,而不是默认的将纹理数据写入ive文件 更多参数,可 阅读全文
posted @ 2015-03-20 17:10 酷熊 阅读(1766) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#include#include#include#include#include#include#includeclass TextureVisitor:public osg::NodeVisitor{public:TextureVis... 阅读全文
posted @ 2015-02-06 15:49 酷熊 阅读(1560) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 40 下一页