[英]How to scale/rotate/move an asset in OpenSceneGraph
I am totally new with OpenSceneGraph我对 OpenSceneGraph 完全陌生
I can open and save an OSG asset.我可以打开并保存 OSG 资产。 I need to do some simple transformations on it, like dimension scaling/rotation/translation.
我需要对其进行一些简单的转换,例如尺寸缩放/旋转/平移。
It seems a pretty easy task, anyway I can't find any quick documentation :/这似乎是一项非常简单的任务,无论如何我找不到任何快速文档:/
osg::ref_ptr<osg::Node> rectangle = osgDB::readNodeFile("../../inputs/Rectangle.osg");
// define simple transformation matrix
// apply simple trnasformation matrix
osgDB::writeNodeFile(*rectangle, "../../outputs/saved.osg");
Any hint?任何提示?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.