2 points perspective camera

Hi everybody,

Is it possible to create a 2 point perspective camera to adapt a mesh to a 2D photo ?

Here’s an example of what i’d like realised with Sketchup.

Sincerely yours,

Boris

1 Like

yes, it looks possible to compute a projection matrix from 2 or 3 point perspective camera :

https://people.eecs.berkeley.edu/~barsky/perspective.html

Thanks. Could you give me an example of conputing camera matrix in BabylonJS ?

I’ve found some great infos in this thread:

3 Likes

@bvaisman wondering if you had any success with this? Is there a PG I can take a look at?