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,


1 Like

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


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

I’ve found some great infos in this thread:


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