maptalks.js icon indicating copy to clipboard operation
maptalks.js copied to clipboard

Set Up Zero-point Perspective

Open arthurtalkgoal opened this issue 3 years ago • 1 comments

maptalks's version and what browser you use?

My Version:

  • maptalks v0.49.5
  • LICENSE : BSD-3-Clause
  • (c) 2016-2021 maptalks.org

Issue description

The client need to set up "Zero-point perspective", but we find not setting upon perspective in Maptalks.

We develop the geojson 2D map which is good everything but the parallel lines is vanishing in a far point.

image

It did not meet the 0 perspective requirements from them. An example they quoted is like SimCity game:

image

Is there any way that we can workaround the zero perspective in Maptalks

Please provide a reproduction URL (on any jsfiddle like site)

reference: https://www.artistsnetwork.com/art-techniques/perspective/zero-point-perspective-ever-hear-of-it/

arthurtalkgoal avatar Mar 26 '22 04:03 arthurtalkgoal

Did some research, if my understanding of zero-point perspective was right, maybe this can be implemented by changing camera's projection matrix from perspective to Orthographic, just like blender doc shows: https://docs.blender.org/manual/en/3.2/editors/3dview/navigate/projections.html

fuzhenn avatar Apr 01 '22 04:04 fuzhenn