当前位置:网站首页>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())
边栏推荐
- [usaco12mar]cows in a skyscraper g (state compression DP)
- Golang url的编码和解码
- C语言-入门-精华版-带你走进编程(一)
- Are you still watching the weather forecast on TV?
- Retail philosophy retail psychological warfare after reading -- 7-11 is a good product!
- C course design employee information management system
- [set theory] order relation (the relation between elements of partial order set | comparable | strictly less than | covering | Haas diagram)
- P1596 [USACO10OCT]Lake Counting S
- Cesium service deployment, and import and display local 3dfiles data
- [set theory] order relation (hastu example | divisive relation hastu | inclusive relation hastu | refinement relation hastu)
猜你喜欢
璞华PLM为全场景产品生命周期管理赋能,助力产品主线的企业数字化转型
CLion-Toolchains are not configured Configure Disable profile问题解决
A tunnel to all ports of the server
Un système de gestion de centre commercial pour la conception de cours de technologie d'application de base de données
Clion toolchains are not configured configure disable profile problem solving
一条通往服务器所有端口的隧道
[set theory] order relation (hastu example | divisive relation hastu | inclusive relation hastu | refinement relation hastu)
详解sizeof、strlen、指针和数组等组合题
Redis的数据结构
Detailed explanation of all transfer function (activation function) formulas of MATLAB neural network
随机推荐
Delete the last character of the string in golang
Golang 中string和int类型相互转换
WPF:解决MaterialDesign:DialogHost 无法关闭问题
Kunlunbase meetup is waiting for you!
Pulitzer Prize in the field of information graphics - malofiej Award
Lua hot update basic grammar
Unity performance optimization
Why can void * be a general pointer
Get to know unity2 for the first time
Minimap plug-in
Youyou1 of xlua knapsack system
Yolo series --- xml2txt script
C language - Introduction - essence Edition - take you into programming (I)
[usaco12mar]cows in a skyscraper g (state compression DP)
Mutual call between Lua and C #
One dimensional array two dimensional array (sort Max insert sort)
Basic operation and process control
Kwai 20200412 recruitment
Retail philosophy retail psychological warfare after reading -- 7-11 is a good product!
animation