实现过程
- 创建节点
- 读取模型
- 为模型添加变换矩阵
- 设置模型坐标
- 加载节点
osg::ref_ptr<osg::CoordinateSystemNode> csn;
osg::ref_ptr<osg::Node> airport;
osg::ref_ptr<QNodeMatrix> mtAirportself;
osg::ref_ptr<osg::MatrixTransform> mtAirport;
csn = new osg::CoordinateSystemNode;
csn->setEllipsoidModel(new osg::EllipsoidModel());//设置地球模型
//加载机场模型
airport = osgDB