osg--Scene Graph
时间 2021-01-13
标签
# osg
osg
概念
- NodeKits 不同功能的node集合
- 组节点
- 叶子节点
- 父节点管理
- 自定义Node
- visitor design pattern
- 遍历
组节点
- osg::Transform子类
-
绝对几何坐标 setReferenceFrame(osg::Transform::ABSOLUTE_RF);
-
相对几何坐标 setReferenceFrame(osg::Transform::RELATIVE_RF);
-
osg::MatrixTransform子类
- getMatrix()
- setMatrix
- 参数为osg::Matrix类,不需要智能指针申请
- osg::Matrix::scale
- osg::Matrix::translate
- osg::Matrix::rotate
- osg::Matrix::inverse
-
osg::PositionAttitudeTransform子类