osg fbx模型刪除模型中的某幾個節點,實現編輯模型的功能


fbx model element count:8
0 三維視圖: {三維} 4294967295 osg::MatrixTransform
1 基本牆 wall_240 [361750] 4294967295 osg::MatrixTransform
2 基本牆 wall_240 [361813] 4294967295 osg::MatrixTransform
3 基本牆 wall_240 [361889] 4294967295 osg::MatrixTransform
4 基本牆 wall_240 [361993] 4294967295 osg::MatrixTransform
5 基本牆 wall_240 [362170] 4294967295 osg::MatrixTransform
6 基本牆 wall_240 [362246] 4294967295 osg::MatrixTransform
7 基本牆 wall_240 [362332] 4294967295 osg::MatrixTransform

osg delete fbx model node

group1->removeChild(sg->getChild(1));
group1->removeChild(sg->getChild(2));

 


fbx model element count:6
0 三維視圖: {三維} 4294967295 osg::MatrixTransform
1 基本牆 wall_240 [361889] 4294967295 osg::MatrixTransform
2 基本牆 wall_240 [361993] 4294967295 osg::MatrixTransform
3 基本牆 wall_240 [362170] 4294967295 osg::MatrixTransform
4 基本牆 wall_240 [362246] 4294967295 osg::MatrixTransform
5 基本牆 wall_240 [362332] 4294967295 osg::MatrixTransform

 

3dMax導出的部分fbx模型刪除模型中某幾個節點好像還是有問題,但大多數fbx模型中的節點都能夠正常刪除。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM