随笔分类 - openscenegraph(osg)
摘要:#ifdef _WIN32 #include #endif // _WIN32 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #in...
阅读全文
摘要:#ifdef _WIN32 #include #endif // _WIN32 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #in...
阅读全文
摘要:#ifdef _WIN32 #include #endif // _WIN32 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #in...
阅读全文
摘要:#pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #...
阅读全文
摘要:<osgGA/MatrixManipulator>:No such file or directory 修改为 #include <osgGA/CameraManipulator> osgGA::GUIEventHandler osgGA::CameraManipulator osgGA::Stan
阅读全文
摘要:VCNodeMatrix.h VCNodeMatrix.cpp
阅读全文
摘要:osg::ref_ptr OSG_Qt_::operateMatrix() { osg::ref_ptr group = new osg::Group; osg::ref_ptr node1 = osgDB::readNodeFile("D:\\参考手册\\BIM\\osg\\tanker.OSGB"); osg::ref_ptr node2 = osgDB::readN...
阅读全文
摘要:osg::ref_ptr OSG_Qt_::operateMatrix() { osg::ref_ptr group = new osg::Group; osg::ref_ptr node = osgDB::readNodeFile("D:\\参考手册\\BIM\\osg\\tanker.OSGB"); //return node; group->addChild...
阅读全文
摘要:osg::ref_ptr OSG_Qt_::createSimple() { osg::ref_ptr geode = new osg::Geode; osg::ref_ptr geometry = new osg::Geometry; //申请顶点 osg::ref_ptr coords = new osg::Vec3Array; //申请颜色 ...
阅读全文
摘要:osg::ref_ptr OSG_Qt_::createBox() { osg::ref_ptr osg_geode = new osg::Geode; osg::ref_ptr osg_hints = new osg::TessellationHints; osg::ref_ptr osg_box = new osg::Box(osg::Vec3(0.0, 0.0, 0...
阅读全文
摘要:osg::ref_ptr MyOSGLoadEarth::CreateNode() { osg::ref_ptr _root = new osg::Group; //定义并读取高程文件 //真实高程文件名称为:ASTGTM2_N34E110_dem.tif //属于特殊的tiff格式,GEOTiff //读取的时候使用osg的gdal插件进行读取,所以...
阅读全文
摘要:graphicswindowqt.h graphicswindowqt.cpp vcqtosgwidget.h vcqtosgwidget.cpp main.cpp
阅读全文
摘要:osgViewer::Viewer* _viewer = nullptr; _viewer = new osgViewer::Viewer;osg::ref_ptr<osg::Group> root = new osg::Group;//注意:这两句话的先后顺序 先添加模型在添加相机//root->
阅读全文
摘要:#ifdef _WIN32#include <Windows.h>#endif // _WIN32 #include <osgViewer/Viewer>#include <osgDB/ReadFile>#include <osgGA/GUIEventAdapter>#include <osgVie
阅读全文
摘要:openscenegraph 3.6.3 链接:https://pan.baidu.com/s/1CyhGsS4qVckQq29eel3DvQ 提取码:mnqt --来自百度网盘超级会员的分享 openscenegraph 3.4 链接:https://pan.baidu.com/s/1CDZj4C
阅读全文
摘要:#ifdef _WIN32#include <windows.h>#endif#include <osgViewer/Viewer>#include <osgDB/ReadFile> int main(){ osgViewer::Viewer viewer; osg::Node *node = ne
阅读全文
摘要:1> 已启动生成: 项目: OSG_3_1_osgViewer应用基础, 配置: Debug x64 1>cl : 命令行 warning D9002: 忽略未知选项“/SAFESEH:NO”1> osgViewer应用基础1.cpp1>e:\opensourcegraph\openscenegra
阅读全文
摘要:include E:\OpenSourceGraph\OSG_install2\include E:\Qt\Qt5.11.1\5.11.1\msvc2015_64\include E:\IFC\Carve\include\2019 E:\IFC\IfcPlusPlusd\include\2019 E
阅读全文
摘要:编译项目时,发现报错:VS 无法打开包括文件: “QOpenGLWidget”: No such file or directory,在Qt对应的目录(E:\Qt\Qt5.12.2\5.12.2\msvc2017_64\include)中发现QOpenGLWidget是在QtWidgets目录下面的
阅读全文