简体   繁体   English

合成景观360度

[英]Synthetic landscape 360 degree

有没有人对SRTM或HGT或DEM文件(“数字海拔数据”)有经验,可以与您创建图像类型的静态和合成景观: http : //www.lalpinistavirtuale.it/Panorami/Ronce_sintetico.jpg I想讨论一下(算法,绘图模式等。)谢谢您提供任何信息

Given elevation data, ie a height map, you can generate a 3D mesh made of triangles. 给定高程数据,即高度图,您可以生成由三角形组成的3D网格。 This is a technique commonly used in video game development, and you should have no problem finding sample code for doing so online (one place you could look is in the terrain generators of the Irrlicht or OGRE graphics engines). 这是视频游戏开发中常用的一种技术,在线查找示例代码应该没有问题(可以在IrrlichtOGRE图形引擎的地形生成器中找到一个位置)。

You could then use Android's OpenGL support to render these meshes into a virtual landscape like the one you linked. 然后,您可以使用Android的OpenGL支持将这些网格渲染为虚拟景观,就像您链接的那样。

You could then just move the virtual camera around your generated world. 然后,您可以仅在生成的世界中移动虚拟相机。 Or, if you want to generate a panorama, just keep the camera in one location, then rotate around, rendering images. 或者,如果要生成全景图,只需将相机放在一个位置,然后旋转以渲染图像。 Since you know the azimuth at which you rendered each image, combining them should be fairly trivial. 由于您知道渲染每个图像的方位角,因此将它们组合起来应该是微不足道的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM