On 15/05/2013 at 07:49, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R14+
Platform: Windows ;
Language(s) : C++ ;
---------
I am trying to get the fov:
BaseDraw* editor = doc->GetActiveBaseDraw();
if (!editor)
return false;
m_camera= editor->GetSceneCamera(doc);
BaseContainer *data = m_camera->GetDataInstance();
Real fov_h=data->GetReal (CAMERAOBJECT_FOV);
Real fov_v=data->GetReal (CAMERAOBJECT_FOV_VERTICAL);
but fov_h, fov_v is always==0. What could I be doing wrong?
Edit: I seem to have worked out what to do to get the fov.
I would also like to get hold of the clipping planes and frustum (as in OGL) is are these values available somewhere?
Markus