hi,

I would like to modify the camera settings of a SimpleSceneManager (SSM)
object, in this way:

    MultiDisplayWindowPtr MDWndPtr = MultiDisplayWindow::create();* // a
multi display window is involved*
    /* initialize multi display window
        ......
     */

    g_SceneManager = new SimpleSceneManager;
    g_SceneManager->setWindow(MDWndPtr);
    g_SceneManager->setRoot(g_SceneRoot);

    g_SceneManager->showAll();

    PerspectiveCameraPtr ptrCam = g_SceneManager->getCamera();
    beginEditCP(ptrCam);
    ptrCam->setFov(deg2rad(90));
    endEditCP(ptrCam);
*    g_SceneManager->setCamera(ptrCam);*  // this line will cause a
corruption of the heap

    *// change initial LookAt parameters*
    Pnt3f from = g_SceneManager->getNavigator()->getFrom();
    from[0] = from[1] = 0;
    from[2] = 3;
    g_SceneManager->getNavigator()->setFrom(from);
    from[0] = from[1] = from[2] = 0;
    g_SceneManager->getNavigator()->setAt(from);

    MDWndPtr->init();  *// program crashed here*



-- 
Jie Liu
Visualization Research Group
Center for Information Science, School of EECS,
Room 2104, Science Building No.2,
Peking University, Beijing 100871, China
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to