1
$\begingroup$

I would like to imitate the orthographic projection that Matlab uses by default:

Matlab View Projections

and

Matlab camproj

It seems similar to the "Trimetric" projection described here:

Wikipedia on Orthographic Projection

see the picture here:

Wikipedia picture - Comparison of projections

but I don't know whether they are definitely the same. Does anyone know the exact details of the Matlab projection ?

Thank you !

$\endgroup$
0
$\begingroup$

All of the above. If you look on matlabs page a little further down, it becomes apparent that matlab initializes a canvas (the screen), then looks for each pixel what is directly behind that screen. This gets rid of perspective. When you set the camera angle to 45 degrees down and 45 degrees left/right, you will get an implicit isometric projection. So really the "projection" just depends on your camera angle.

Sidenote: if you would want to keep a 3d perspective, you would need to draw the ray from the camera origin to the position on the canvas. That gives the ray the direction it needs to create perspective.

$\endgroup$
0
$\begingroup$

It's tricky because there are 2 non-uniform scales called "DataAspectRatio" and "PlotBoxAspectRatio". I worked through a simple case in the answer to this post, but I'm afraid that doesn't cover all of the edge cases.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.