上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 50 下一页
摘要: 跑osgearthviewer程序 使用一个earth文件做参数传入 跟进代码。 首先osgearthviewer程序加载earth的方式分为两种: 1.根据earth文件(load方式) 2.使用SDK加载(create方式) 我们使用earth文件是load方式,直接看load函数,定位到这个位 阅读全文
posted @ 2017-02-09 17:14 南水之源 阅读(5778) 评论(0) 推荐(0)
摘要: ModelSource 是一个能生成OpenSceneGraph节点的驱动(driver) osgEarth使用ModelSources显示矢量特征(feature)数据和加载和显示外部3d模型 Feature Geometry(特征的几何模型插件) 这个插件使用样式表将矢量特性数据绘制成OSG几何 阅读全文
posted @ 2017-02-09 13:47 南水之源 阅读(1028) 评论(0) 推荐(0)
摘要: 几何Geometry 高度Altitude 挤压Extrusion 图标Icon 模型Model 渲染Render 皮肤Skin 文本Text 覆盖Coverage 提示: 在SDK中,样式表的命名空间是osgEarth::Symbology 每个符号类是在AltitudeSymbol中,属性通过L 阅读全文
posted @ 2017-02-08 17:37 南水之源 阅读(3503) 评论(0) 推荐(0)
摘要: 参考:http://blog.csdn.net/cccstudyer/article/details/17691893 通过\src\osgEarthDrivers\earth\ReaderWriterOsgEarth.cpp文件 ReaderWriterEarth类,用来解析“earth”文件 在 阅读全文
posted @ 2017-02-07 18:44 南水之源 阅读(4233) 评论(2) 推荐(0)
摘要: 原文参考:http://docs.osgearth.org/en/latest/developer/maps.html#programmatic-map-creation 本人翻译水平有限。。。 加载earth地图文件 最简单的方式 API编程式的地图创建 用API创建一个地图的基本步骤是: 1.创 阅读全文
posted @ 2017-02-07 10:33 南水之源 阅读(3654) 评论(0) 推荐(0)
摘要: <!—type 属性可以是geocentric和projected两种模式,分别对应地心坐标系和平面投影坐标系,默认是地心坐标模式。Version是osgEarth的主版本号,必须有版本号--><map name=”myMap” type=”geocentric”/”projected” versi 阅读全文
posted @ 2017-02-06 19:38 南水之源 阅读(8705) 评论(0) 推荐(1)
摘要: 通过API的方式大体需要以下几个步骤: 创建map对象—— 创建影像数据层—— 创建高程数据层—— 将影像数据层以及高程数据层加入到map对象—— 根据前面创建的map对象创建mapNode节点—— 将mapNode节点加入到场景; 我们可以对地形进行修改操作,如添加新的影像、高程数据,移除特定的影 阅读全文
posted @ 2017-02-06 19:25 南水之源 阅读(2391) 评论(0) 推荐(2)
摘要: 参考:http://bbs.osgchina.org/forum.php?mod=viewthread&tid=5484&extra=page%3D1&_dsign=70b153d8 1. 通过earth文件创建图层时,可以指定多个影像数据源和多个高程数据源,数据源的顺序决定渲染顺序,在earth文 阅读全文
posted @ 2017-02-06 17:54 南水之源 阅读(5189) 评论(0) 推荐(0)
摘要: 原文参考:http://docs.osgearth.org/en/latest/references/earthfile.html#model-layer 本人翻译能有限。。。。 模型层 模型层渲染“非地形”数据,如矢量的特征数据,外部三维模型等 举个例子: 模型层也允许你定义一个花式的遮罩,整个地 阅读全文
posted @ 2017-02-06 17:29 南水之源 阅读(1285) 评论(0) 推荐(0)
摘要: 时间是2017年2月5日17:16:32 由于OE2.9还没有发布,但是我又急于使用OE的道路。 所以,我先编译了正在github上调试中的OE2.9 github网址是:https://github.com/gwaldron/osgearth 但是由于,它是调试中的版本,很多例子还不能跑。 不过, 阅读全文
posted @ 2017-02-05 17:25 南水之源 阅读(3716) 评论(7) 推荐(0)
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 50 下一页