简体   繁体   English

OpenSceneGraph:从3D模型转换“对象”

[英]OpenSceneGraph: Transform “objects” from 3D model

I have an ac3d model file with objects grouped and named. 我有一个带有对象分组和命名的ac3d模型文件。 How would I transform these specific objects (and not the whole model) using osg? 如何使用osg转换这些特定对象(而不是整个模型)?

Is there a way I can create a node out of a object in the model to do this? 有什么方法可以从模型中的对象创建节点来执行此操作?

Thank you. 谢谢。

You can traverse your model graph and keep reference to your nodes of interest. 您可以遍历模型图,并继续引用您感兴趣的节点。

Here you have how to traverse an OSG graph: http://trac.openscenegraph.org/projects/osg//wiki/Support/Tutorials/FindingNodes 在这里,您将了解如何遍历OSG图: http : //trac.openscenegraph.org/projects/osg//wiki/Support/Tutorials/FindingNodes

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM