PEKennedy / cityquery

0 stars 0 forks source link

Proper 3d object positioning / local and world space for camera #19

Open PEKennedy opened 1 year ago

PEKennedy commented 1 year ago

3d objects and the camera should be placed at their proper positions. This involves using the cityjson metadata.geographicsExtent and transform.translate properties to find the latitude and longitude of an object.

Due to floating point errors, all rendered objects should be within a certain range of the canvas's origin (0,0,0 position). Assuming the camera stays at around 0,0,0 in canvas space, but moves around in lat+long, all objects will need to be moved to their proper canvas space.