随笔分类 -  openscenegraph(osg)

上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要:#ifdef _WIN32 #include #endif // _WIN32 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #in... 阅读全文
posted @ 2019-07-04 16:38 西北逍遥 阅读(676) 评论(0) 推荐(0)
摘要:#ifdef _WIN32 #include <Windows.h> #endif // _WIN32 #include <osg/Group> #include <osg/Camera> #include <osgDB/ReadFile> #include <osg/Node> #include 阅读全文
posted @ 2019-07-03 11:05 西北逍遥 阅读(761) 评论(1) 推荐(0)
摘要:当前位置:osgViewer/Viewer.cpp 第 643行,osgViewer:: Viewer::advance() 好的,现在我们终于正式进入仿真循环当中了,之前的 realize 函数虽然十分重要,但它实际上是循环运行前的准备工作。而从这一日开始介绍的 advance,eventTrav 阅读全文
posted @ 2019-07-02 16:03 西北逍遥 阅读(1349) 评论(0) 推荐(1)
摘要:#ifdef _WIN32 #include #endif // _WIN32 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #i... 阅读全文
posted @ 2019-07-02 11:06 西北逍遥 阅读(2041) 评论(0) 推荐(0)
摘要://获取系统分辨率 osg::GraphicsContext::WindowingSystemInterface *wsInterface = osg::GraphicsContext::getWindowingSystemInterface(); if (!wsInterface) { retur 阅读全文
posted @ 2019-07-02 10:12 西北逍遥 阅读(825) 评论(0) 推荐(0)
摘要:#ifdef _WIN32 #include #endif // _WIN32 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #inc... 阅读全文
posted @ 2019-07-01 20:37 西北逍遥 阅读(422) 评论(0) 推荐(0)
摘要:#ifdef _WIN32 #include #endif // _WIN32 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #i... 阅读全文
posted @ 2019-07-01 20:13 西北逍遥 阅读(1029) 评论(0) 推荐(0)
摘要:void ViewerBase::frame(double simulationTime) { if (_done) return; // OSG_NOTICE<<std::endl<<"CompositeViewer::frame()"<<std::endl<<std::endl; if (_fi 阅读全文
posted @ 2019-06-30 21:23 西北逍遥 阅读(1486) 评论(0) 推荐(0)
摘要:setUpViewOnSingleScreen 和 setUpViewAcrossAllScreens 函数的实现流程与上一日介绍的 setUpViewInWindow 区别不是很大。值得注意的是,setUpViewAcrossAllScreens 函数中调用 GraphicsContext::ge 阅读全文
posted @ 2019-06-30 18:00 西北逍遥 阅读(626) 评论(0) 推荐(0)
摘要:当前位置:osgViewer/View.cpp 第 575 行,osgViewer::View::setUpViewInWindow()这个函数有五个传入参数:窗口左上角坐标 x,y,宽度 width,高度 height,以及屏幕数 screenNum。它的作用顾名思义是根据给定的窗口参数来创建一个 阅读全文
posted @ 2019-06-30 17:37 西北逍遥 阅读(1416) 评论(0) 推荐(0)
摘要:开始:osgViewer/ViewerBase.cpp 389行,startThreading()函数,启动线程 void ViewerBase::startThreading() { if (_threadsRunning) return; OSG_INFO<<"Viewer::startThre 阅读全文
posted @ 2019-06-29 21:37 西北逍遥 阅读(661) 评论(0) 推荐(0)
摘要:#ifdef _WIN32 #include #endif // _WIN32 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #i... 阅读全文
posted @ 2019-06-29 21:35 西北逍遥 阅读(1145) 评论(0) 推荐(0)
摘要:#ifdef _WIN32 #include #endif // _WIN32 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #i... 阅读全文
posted @ 2019-06-29 20:58 西北逍遥 阅读(1441) 评论(0) 推荐(0)
摘要:#ifdef _WIN32 #include #endif // _WIN32 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #i... 阅读全文
posted @ 2019-06-28 21:55 西北逍遥 阅读(1130) 评论(0) 推荐(0)
摘要:#ifdef _WIN32 #include #endif // _WIN32 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #i... 阅读全文
posted @ 2019-06-28 20:50 西北逍遥 阅读(937) 评论(0) 推荐(0)
摘要:int main() { osg::ref_ptr viewer1 = new osgViewer::Viewer; osg::ref_ptr pageLdc1 = new osg::PagedLOD; pageLdc1->setFileName(0, "D:\\参考手册\\BIM\\osg\\library.OSGB"); pageLdc1-... 阅读全文
posted @ 2019-06-28 16:27 西北逍遥 阅读(1316) 评论(0) 推荐(0)
摘要:[0]osg::Group [1]osg::MatrixTransform [1] osg::MatrixTransform [1]osg::MatrixTransform [2] osg::Geode [3]osg::Geometry [3]osg::Geometry [3] osg::Geome 阅读全文
posted @ 2019-06-27 20:41 西北逍遥 阅读(408) 评论(0) 推荐(0)
摘要:[1]osg::Group [2]osg::PositionAttitudeTransform [2]osg::MatrixTransform [3]osg::Geode [2]osg::MatrixTransform [2]osg::MatrixTransform [2]osg::MatrixTr 阅读全文
posted @ 2019-06-27 20:36 西北逍遥 阅读(606) 评论(0) 推荐(0)
摘要:x:-89.4588 y:-12.1245 z:-11.7807x:-89.4588 y:-6.44823 z:-11.7807x:-89.2164 y:-9.07239 z:-11.811x:-89.4588 y:-12.1245 z:-11.7807x:-89.2164 y:-9.07239 z 阅读全文
posted @ 2019-06-27 19:49 西北逍遥 阅读(447) 评论(0) 推荐(0)
摘要:osg自带窗口去掉边框 阅读全文
posted @ 2019-06-27 09:27 西北逍遥 阅读(1962) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 下一页