Mode7-like perspective transform in canvas?

前端 未结 2 1275
星月不相逢
星月不相逢 2020-12-24 08:40

I\'m making a canvas-based game engine and am wondering if anyone has any good info on how to achieve an overhead view perspective. What I\'m looking for is somewhere halfwa

2条回答
  •  悲&欢浪女
    2020-12-24 09:25

    if i understand you right, you just want a simple trapeze transformation. if so, maybe this or this link helps you out. for images that aren't centered it would just be an additional rhomboid tranformation, wich is easily possible with canvas, as far as i know.

提交回复
热议问题