04 2013 档案

摘要:混合java和C++编译器事先安装好CDT插件(我是下载集成CDT的eclipse),然后下载android-ndk-r8e(解压即可,例如e:\android-ndk-r8e)打开eclipse,Window-Preferences-Android-NDK,设置NDK Location:e:\android-ndk-r8e新建一个android application project 例如Test,在工程上右键-Properties-Builders,可以看到只有4个builder,下面向工程中添加CDT-builder在Test上右击-Android Tools-Add Native Su 阅读全文
posted @ 2013-04-25 17:02 酷熊 阅读(328) 评论(0) 推荐(0) 编辑
摘要:近期在google官网上下载了最新的NDK-R8,发现在执行ndk-build时候,发现以下错误:NDK/build/gmsl/__gmsl:512: non-numeric second argument to ‘wordlist’ function如果中文系统的话,就是以下提示:NDK/build/gmsl/__gmsl:512: *** “wordlist”函数的第二个参数不是数值参数: ”。 停止。找到__gmsl文件,用记事本打开,搜索“int_encode = $(__gmsl_tr1)$(wordlist 1, $1,$(__gmsl_input_int))”I changed 阅读全文
posted @ 2013-04-25 12:44 酷熊 阅读(501) 评论(0) 推荐(0) 编辑
摘要:#include //for _finddata_t,_findfirst,_findnext,_findclose#include //for mkdir#include #include using namespace std;// 查询C:/windows文件夹下.exe文件的个数void traverse(string fileName = "C:/windows/*.exe", int exeNum = 0){ _finddata_t fileInfo; long handle = _findfirst(fileName.c_str(), &fileIn. 阅读全文
posted @ 2013-04-22 10:57 酷熊 阅读(223) 评论(0) 推荐(0) 编辑
摘要:百度去 阅读全文
posted @ 2013-04-22 09:24 酷熊 阅读(277) 评论(0) 推荐(0) 编辑
摘要:视点接近地面时,由于默认的近裁剪面near太大,导致看不见靠近摄像机的物体,这时需要重新调节near和far的值(或者near/far的比率),可以使用osgEarth::Util::AutoClipPlaneCullCallback(osgEarth::MapNode* mapNode)例如:osgViewer::Viewer viewer;viewer.getCamera()->addCullCallback( new osgEarth::Util::AutoClipPlaneCullCallback(mapNode) ); 阅读全文
posted @ 2013-04-19 15:24 酷熊 阅读(2321) 评论(0) 推荐(0) 编辑
摘要:现在有LOD10-LOD15的金字塔数据,可以通过osgearth_backfill工具生成LOD0-LOD9的数据,貌似OE2.3版本没有此工具,⊙﹏⊙b汗,OE2.4是有的 阅读全文
posted @ 2013-04-19 12:48 酷熊 阅读(485) 评论(0) 推荐(0) 编辑
摘要:From韶华百世的新浪博客注意,在earthManip->setViewpoint()之前,要先v->setCameraManipulator(earthManip);在使用osgEarth中的EarthManipulator,通过setViewpoint设置视点:1.osg::ref_ptr<osgEarth::Util::EarthManipulator> manip = new osgEarth::Util::EarthManipulator;2.manip->setViewpoint( osgEarth::Util::Viewpoint( 108.0f, 阅读全文
posted @ 2013-04-18 17:25 酷熊 阅读(3495) 评论(0) 推荐(0) 编辑
摘要:一下内容摘自百度文库。//读取方式: 逐行读取, 将行读入字符串, 行之间用回车换行区分//If you want to avoid reading into character arrays,//you can use the C++ string getline() function to read lines into stringsvoid ReadDataFromFileLBLIntoString() { ifstream fin("data.txt"); string s; while( getline(fin,s) ) { cout > s ) { co 阅读全文
posted @ 2013-04-17 17:16 酷熊 阅读(647) 评论(0) 推荐(0) 编辑
摘要:可以使用hlep dir查看帮助dir /a-d /b d:\mydir\*.* > d:\allfiles.txt/b是只保留文件名和后缀,不包含其他注释/a-d表示不输出目录名字dir /s /b d:\mydir > d:\allfiles.txt可以输出子文件夹 阅读全文
posted @ 2013-04-17 16:50 酷熊 阅读(298) 评论(0) 推荐(0) 编辑
摘要:使用DB Manager将access的.mdb格式数据库文件转换成SQLite的.db文件,注意只有DBManager Professional版本才有此转换功能,悲催的是它只有30天试用期假设待转换文件为abc.mdbTools-Server-Server Manager添加一个SQLite服务器(注意试用版只能添加两个服务器)右击Databases添加一个数据库,Name随便起(例如AAA),FileName选择一个路径随便写(例如c:/ABC.db),这样就建立了一个数据库Tools-Data Management-Import Data(DAO)选择abc.mdb,选择所有的表,下一 阅读全文
posted @ 2013-04-10 17:48 酷熊 阅读(341) 评论(0) 推荐(0) 编辑
摘要:osg::Vec3p_start(-100,0,0);osg::Vec3p_end(100,0,0);osgUtil::LineSegmentIntersector::Intersections_intersections;osg::ref_ptr_lineSegmentIntersector=newosgUtil::LineSegmentIntersector(p_start,p_end);osgUtil::IntersectionVisitor_iv(_lineSegmentIntersector.get());cow->accept(_iv);_intersections=_lin 阅读全文
posted @ 2013-04-10 11:42 酷熊 阅读(1330) 评论(0) 推荐(0) 编辑
摘要:使用GDAL驱动读取多个数据文件详见OE的tests/gdal_multiple_files.earth文件主要就是<heifhtfield name="terrain" driver="gdal"> <url>../data/terrain</url>//文件夹而不是文件路径 <extensions>tif</extensions></heightfield> 阅读全文
posted @ 2013-04-08 10:04 酷熊 阅读(469) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示