OSG:开头篇 介绍

Written by

in

文章目录

OpenSceneGraph-3.6.2   :   http://www.openscenegraph.org/index.php/download-section/stable-releases/
 
3rdParty_VS2017_v141_x64_V11_small.7z  :  http://www.openscenegraph.org/index.php/download-section/dependencies/
 
OpenSceneGraph-Data-3.4.0.zip  :  http://www.openscenegraph.org/index.php/download-section/data/

可能发生的错误:

1.更改CmakeList.txt  set (CMAKE_PREFIX_PATH "osg源代码路径")

2.3rdParty第三方库只编译32位即可

3.VS2010安装目录下的VC->bin中的cvtres.exe,把它重命名,例如我的做法是cvtres[backup].exe。具体原因自行百度COFF和LNK1123。

 OSG主要包含4个库:OSG核心库(Core Library) OSG工具库(NodeKit) OSG插件库  OSG内省库(osgIntrospection)

osg库:基本数据类,负责提供基本场景图类,构建场景图形节点(节点类 状态类 绘制类 向量和矩阵类),一些包含程序特定功能类(命令行解析和错误调试信息等)

OSG:先导篇 内存管理

OSG:先导篇 数据类型

OSG:幼儿园篇 第一章 节点类

OSG:幼儿园篇 第二章 图像纹理类

OSG:幼儿园篇 第三章 文件IO类

#include <osg/Node>

#include <osg/Geode>

#include <osg/Group>

#include <osg/Material>

#include <osg/Depth>

#include <osg/Projection>

#include <osg/MatrixTransform>

#include <osg/Camera>

#include <osg/io_utils>

#include <osg/BlendColor>

#include <osg/BlendFunc>

#include <osg/Point>

#include <osg/ComputeBoundsVisitor>

#include <osg/LineWidth>

#include <osgDB/ReadFile>

#include <osgDB/WriteFile>

#include <osgDB/FileUtils>

#include <osgDB/FileNameUtils>

#include <osgFX/Scribe>

#include <osgGA/GUIEventHandler>

#include <osgGA/TrackballManipulator>

 #include <osgManipulator/Dragger>

#include <osgManipulator/TranslateAxisDragger>

osgManipulator.lib

osgManipulatord.lib

#include <osgText/Text>

#include <osgUtil/Optimizer>

#include <osgUtil/LineSegmentIntersector>  //线段相交类

#include <osgViewer/Viewer>

#include <osgViewer/ViewerEventHandlers>

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

站内搜索