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模型中的节点都能够正常删除。

 

转载于:https://www.cnblogs.com/herd/p/11146466.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值