zoukankan      html  css  js  c++  java
  • osg控制相机移动

    osg控制相机移动

    viewer->getCameraManipulator()->setHomePosition(_homeEye,_homeCenter,_homeUp);

    osg::Vec3d              _homeEye;
    osg::Vec3d              _homeCenter;
    osg::Vec3d              _homeUp;
    
    /** Manually set the home position, and set the automatic compute of home position. */
    virtual void setHomePosition(const osg::Vec3d& eye, const osg::Vec3d& center, const osg::Vec3d& up, bool autoComputeHomePosition=false)
    {
        setAutoComputeHomePosition(autoComputeHomePosition);
        _homeEye = eye;
        _homeCenter = center;
        _homeUp = up;
    }
    
    /** Get the manually set home position. */
    virtual void getHomePosition(osg::Vec3d& eye, osg::Vec3d& center, osg::Vec3d& up) const
    {
        eye = _homeEye;
        center = _homeCenter;
        up = _homeUp;
    }

    ##############################

    QQ 3087438119
  • 相关阅读:
    每周总结8.18
    每周总结7.28
    每周总结8.25
    每周总结7.21
    每周总结8.11
    每周总结8.4
    大道至简 读后感
    递归进行回文的判断
    课后作业1
    GoodBlogs Websites
  • 原文地址:https://www.cnblogs.com/herd/p/15345018.html
Copyright © 2011-2022 走看看