上一页 1 ··· 76 77 78 79 80 81 82 83 84 ··· 94 下一页
摘要: class CPickHandler :public osgGA::GUIEventHandler { public: CPickHandler(osgViewer::Viewer *viewer) :mViewer(viewer) {} virtual bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionA... 阅读全文
posted @ 2019-07-07 21:44 西北逍遥 阅读(995) 评论(2) 推荐(0) 编辑
摘要: void setNodeStateset(osg::Node *nodeParam) { osg::ref_ptr stateset1 = nodeParam->getOrCreateStateSet(); osg::ref_ptr program1 = new osg::Program; program1->addShader(new osg::Shader(os... 阅读全文
posted @ 2019-07-07 21:13 西北逍遥 阅读(1097) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-07-07 21:00 西北逍遥 阅读(609) 评论(0) 推荐(0) 编辑
摘要: fbx model element count:80 三维视图: {三维} 4294967295 osg::MatrixTransform1 基本墙 wall_240 [361750] 4294967295 osg::MatrixTransform2 基本墙 wall_240 [361813] 42 阅读全文
posted @ 2019-07-07 15:47 西北逍遥 阅读(1073) 评论(0) 推荐(0) 编辑
摘要: count:560 construction_worker 4294967295 osg::MatrixTransform1 Bip001 L Finger02 4294967295 osg::MatrixTransform2 Bip001 L Finger01 4294967295 osg::Ma 阅读全文
posted @ 2019-07-06 22:29 西北逍遥 阅读(486) 评论(0) 推荐(0) 编辑
摘要: std::string name = w2m(m2w(obj->GetName(), CP_UTF8));//转换编码 阅读全文
posted @ 2019-07-05 21:39 西北逍遥 阅读(545) 评论(0) 推荐(0) 编辑
摘要: export root nodeNode : RootNodeNode : RootNodeNode : construction_workerNode : Bip001Node : Bip001 PelvisNode : Bip001 SpineNode : Bip001 Spine1Node : 阅读全文
posted @ 2019-07-05 11:05 西北逍遥 阅读(2020) 评论(0) 推荐(0) 编辑
摘要: 使用osg加载fbx模型,需要自己编译fbx插件,编译流程与插件使用案例如下 代码地址:https://github.com/shelltdf/osgFBX CMake Error: The following variables are used in this project, but they 阅读全文
posted @ 2019-07-04 20:09 西北逍遥 阅读(3070) 评论(0) 推荐(0) 编辑
摘要: #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 18:10 西北逍遥 阅读(1292) 评论(0) 推荐(0) 编辑
摘要: #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 西北逍遥 阅读(665) 评论(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 西北逍遥 阅读(745) 评论(1) 推荐(0) 编辑
摘要: 当前位置:osgViewer/Viewer.cpp 第 643行,osgViewer:: Viewer::advance() 好的,现在我们终于正式进入仿真循环当中了,之前的 realize 函数虽然十分重要,但它实际上是循环运行前的准备工作。而从这一日开始介绍的 advance,eventTrav 阅读全文
posted @ 2019-07-02 16:03 西北逍遥 阅读(1286) 评论(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 西北逍遥 阅读(1962) 评论(0) 推荐(0) 编辑
摘要: //获取系统分辨率 osg::GraphicsContext::WindowingSystemInterface *wsInterface = osg::GraphicsContext::getWindowingSystemInterface(); if (!wsInterface) { retur 阅读全文
posted @ 2019-07-02 10:12 西北逍遥 阅读(793) 评论(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 西北逍遥 阅读(412) 评论(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 西北逍遥 阅读(985) 评论(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 西北逍遥 阅读(1408) 评论(0) 推荐(0) 编辑
摘要: setUpViewOnSingleScreen 和 setUpViewAcrossAllScreens 函数的实现流程与上一日介绍的 setUpViewInWindow 区别不是很大。值得注意的是,setUpViewAcrossAllScreens 函数中调用 GraphicsContext::ge 阅读全文
posted @ 2019-06-30 18:00 西北逍遥 阅读(594) 评论(0) 推荐(0) 编辑
摘要: 当前位置:osgViewer/View.cpp 第 575 行,osgViewer::View::setUpViewInWindow()这个函数有五个传入参数:窗口左上角坐标 x,y,宽度 width,高度 height,以及屏幕数 screenNum。它的作用顾名思义是根据给定的窗口参数来创建一个 阅读全文
posted @ 2019-06-30 17:37 西北逍遥 阅读(1315) 评论(0) 推荐(0) 编辑
摘要: 开始:osgViewer/ViewerBase.cpp 389行,startThreading()函数,启动线程 void ViewerBase::startThreading() { if (_threadsRunning) return; OSG_INFO<<"Viewer::startThre 阅读全文
posted @ 2019-06-29 21:37 西北逍遥 阅读(619) 评论(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 西北逍遥 阅读(1091) 评论(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 西北逍遥 阅读(1411) 评论(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 西北逍遥 阅读(1103) 评论(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 西北逍遥 阅读(923) 评论(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 西北逍遥 阅读(1275) 评论(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 西北逍遥 阅读(388) 评论(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 西北逍遥 阅读(596) 评论(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 西北逍遥 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 正在从以下位置加载符号:Microsoft符号服务器 尝试取消禁用后续符号加载 进入VS 工具 选项 调试 符号,看右边有个“Microsoft符号服务器”,将前面的勾去掉,(可能还有删除下面的那个缓存)。然后就不会在调试时加载了! Debug卡顿,可以尝试删除 C:\Users\<username 阅读全文
posted @ 2019-06-27 19:01 西北逍遥 阅读(10703) 评论(1) 推荐(2) 编辑
摘要: osg自带窗口去掉边框 阅读全文
posted @ 2019-06-27 09:27 西北逍遥 阅读(1918) 评论(0) 推荐(0) 编辑
上一页 1 ··· 76 77 78 79 80 81 82 83 84 ··· 94 下一页