绘制2.5D或3D地图与C#从线 [英] Draw 2.5D or 3D Map with C# from lines

查看:328
本文介绍了绘制2.5D或3D地图与C#从线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个转由turn导航软件为Windows Mobile使用C#和.NET CF.我能画线绘制2D地图。我的问题是我想获得一个2.5D地图一样的图片。我尝试了2D渲染的图像上的非仿射变换,但它是我们的目标是在Windows Mobile设备太慢。谁能给我一个线索对我的问题?

I'm developing a turn-by-turn navigation software for Windows Mobile using C# and .NET CF. I'm able to draw a 2D maps by drawing lines. My problem is I would like to get a 2.5D map like in the picture. I tried non-affine transformation on the 2D rendered image but it is too slow for the Windows Mobile device we are targeting. Could anyone give me a clue on my problem?

推荐答案

使用透视转换,因为它会直接映射线直线。在<一个更多细节href="http://stackoverflow.com/questions/3647532/problem-with-birds-eye-view-or-2-5d-rendering-of-map/3670524#3670524">this回答。

Use a perspective transformation, because it will map straight lines to straight lines. More details in this answer.

这篇关于绘制2.5D或3D地图与C#从线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆