当前位置:网站首页>Creation of osgearth earth files to the earth ------ osgearth rendering engine series (1)
Creation of osgearth earth files to the earth ------ osgearth rendering engine series (1)
2022-07-03 08:19:00 【CHPCWWHSU】
This article introduces the code , Explain in osgEarth in , from .earth Document to earth creation process , show osgEarth Middle concept , Such as Map、Layer as well as MapNode.
Content
osg::Node* node = MapNodeHelper().load(arguments, &viewer);
analysis osgEarth The creation of the middle earth , Start with the code above , among arguments Variable is osg::ArgumentParser object , Its path contains a .earth file ,viewer by osgViewer::Viewer object , Created in the above code osg::Node object , Can be set directly to viewer The scene node of the object , Implement rendering , The results are shown in the following figure :
The next analysis load The contents of the function :
osg::ref_ptr<osg::Node> node = osgDB::readNodeFiles(args, myReadOptions.get());
// fallback in case none is specified:
if (!node.valid())
边栏推荐
猜你喜欢
[global product discovery 2] the first pure cloud augmented reality (AR) platform - Israel
Basic operation and process control
Base64 and base64url
KunlunBase MeetUP 等您来!
数据库应用技术课程设计之商城管理系统
Abstract classes and interfaces
I want to do large screen data visualization application feature analysis
Haproxy+kept cluster setup 02
the installer has encountered an unexpected error installing this package
Base64编码简介
随机推荐
Pycharm remote ssh pyenv error: pydev debugger: warning: trying to add breakpoint to file that does
Viz artist advanced script video tutorial -- stringmap use and vertex operation
Use filechannel to copy files
freetype库的移植
tslib库的移植
The general trend of data news releases the power of visual reporting ----- essays after reading
Redis的数据结构
oracle 插入单引号
使用base64编码传图片
Golang 时间格式整理
P2622 关灯问题II(状态压缩 搜索)
Get to know unity2 for the first time
P2704 [noi2001] artillery position (shape pressure DP)
Oracle insert single quotation mark
Product creation and commercial realization of chat robot (according to La Ma Bang - Dr. Wang Jingjing - speech)
Base64编码简介
YOLO系列 --- xml2txt脚本
數據庫應用技術課程設計之商城管理系統
Base64 and base64url
CLion-Toolchains are not configured Configure Disable profile问题解决