Camera



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 02/05/2003 at 12:49, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   8.100 
    Platform:      
    Language(s) :     C++  ;

    ---------
    Can someone tell me how to use SetSceneCamera()? Maybe a small example.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 02/05/2003 at 19:04, xxxxxxxx wrote:

    öhm - SetSceneCamera(cam);
    Easy isn´t it? ;) cam must be a camera object that is in the current scene, if there is no camera or you pass a null-pointer the editor camera will be set.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 12/05/2003 at 15:44, xxxxxxxx wrote:

    I try to use my own created camera by performing the following code :
    CameraObject * mycam = static_cast<CameraObject *>(AllocObject(Ocamera));
    document->GetRenderBaseDraw()->SetSceneCamera(mycam);
    but if I try to get back what is the scene camera right after, using :
    CameraObject * mytestcam = (CameraObject* )document->GetRenderBaseDraw()->GetSceneCamera(document);
    the returned camera doesn't match my camera but still the previous one.
    If someone can explain me what I'm doing wrong or if there is an action required to set the camera it would be very helpful.
    Thanks in advance. (I'm using Cinema 4D 7.303)



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 13/05/2003 at 02:51, xxxxxxxx wrote:

    I have found the solution.
    A camera needs to be added to the scene graph in order to be set as the scene camera and render the scene with it.
    document->InsertObject(mycam, NULL, NULL);
    then
    document->GetRenderBaseDraw()->SetSceneCamera(mycam);


Log in to reply