OSG:開頭篇 介紹

一.OSG簡介

 

二.OSG配置編譯

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/php

 

可能發生的錯誤:html

1.更改CmakeList.txt  set (CMAKE_PREFIX_PATH "osg源代碼路徑")數據庫

2.3rdParty第三方庫只編譯32位便可工具

3.VS2010安裝目錄下的VC->bin中的cvtres.exe,把它重命名,例如個人作法是cvtres[backup].exe。具體緣由自行百度COFF和LNK1123。post

 

 

三.OSG組成模塊

 OSG主要包含4個庫:OSG核心庫(Core Library) OSG工具庫(NodeKit) OSG插件庫  OSG內省庫(osgIntrospection)動畫

1.OSG核心庫

osg庫:基本數據類,負責提供基本場景圖類,構建場景圖形節點(節點類 狀態類 繪製類 向量和矩陣類),一些包含程序特定功能類(命令行解析和錯誤調試信息等)插件

 

 

2.OSG工具庫

 

3.OSG插件庫

 

4.OSG內省庫

 

四.OSG流程

 

OSG:先導篇 內存管理命令行

OSG:先導篇 數據類型線程

 

 

OSG:幼兒園篇 第一章 節點類調試

OSG:幼兒園篇 第二章 圖像紋理類

OSG:幼兒園篇 第三章 文件IO類

 

五.OSG模塊

1.OpenThreads(線程模塊)

 

2.osg(核心模塊)

#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>

 

3.osgAnimation(動畫模塊)

 

4.osgDB(數據庫模塊)

#include <osgDB/ReadFile>

#include <osgDB/WriteFile>

#include <osgDB/FileUtils>

#include <osgDB/FileNameUtils>

 

5.osgFX(效果模塊)

#include <osgFX/Scribe>

 

6.osgGA(交互模塊)

#include <osgGA/GUIEventHandler>

#include <osgGA/TrackballManipulator>

 

7.osgManipulator

 #include <osgManipulator/Dragger>

#include <osgManipulator/TranslateAxisDragger>

 

osgManipulator.lib

osgManipulatord.lib

 

8.osgParticle

 

9.osgPresentation

 

10.osgQt

 

11.osgShadow

 

12.osgSim

 

13.osgTerrain

 

14.osgText(文本模塊)

#include <osgText/Text>

 

15.osgUI

 

16.osgUtil(工具模塊)

#include <osgUtil/Optimizer>

#include <osgUtil/LineSegmentIntersector>  //線段相交類

 

17.osgViewer(視圖模塊)

#include <osgViewer/Viewer>

#include <osgViewer/ViewerEventHandlers>

 

18.osgVolume

 

19.osgWidget

相關文章
相關標籤/搜索