Hey together,
i’m trying to export a picture based on the selection of 1 component in orthographic view.
Since i know the worldposition and the components dimensions i can position a matrix above the component and position a view to this matrix.
The only thing that is missing now is the correct calculation of the view frustum based on the components dimensions (fovy, near, far).
Has anybody a good explanation how to calculate this in VC?
It seems that this is only simple geometry but apparently it is not!
Also i wonder how the frustum respectively the near and far plane should have an impact on the view in orthographic view? Since the shape of this view should be a block with a field of view of 180° or am i wrong?
I also tried to read the values of the far and near plane of different views and make an own formula to calculate these values but this didn’t work either.
Greetings, Andreas