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

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

问题描述

我正在使用 C# 和 .NET CF 为 Windows Mobile 开发逐向导航软件.我可以通过绘制线条来绘制 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?


(来源:cartotype.com)

推荐答案

使用透视变换,因为它将直线映射为直线.此答案中的更多详细信息.

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

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

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