Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I need to remove one object from the scene graph imported by Assimp and I can't. I've tried to change aiScene.h including a method called DelNode and I can´t. How can I do it - is it possible?

share|improve this question
add comment

1 Answer 1

No, it is not.

You are not permitted to modify the scene that assimp returns to you (it is const for this reason).

Assimp's data structures should not be used for rendering etc. instead, you should copy their contents to your own data structures appropriate to your environment.

When designing Assimp, we explicitly designed it to be only usable for importing. It's not a scenegraph library.

[That said, if you const_cast the scene, add that DelNode method to aiScene and NULL the slot where the node to be removed originally had been it would work as intended, but this would be a hack].

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.