As I am using the new .irr scene file loader, I would like to gain control over the mesh that a loaded mesh-scenenode posesses.
But there is only a setMesh, and no getMesh(or something like that). Would it be a problem adding this getter to the IMeshSceneNode (and CMeshSceneNode) interface? It seems to me it was just not useful before the .irr loader, but I think it is now.
Or is there some sort of other way of getting the mesh from a scenenode?
is there a scenenode->getmesh?
yeah, I know, thats why I said IMeshSceneNode, I guess you could use getType() to see what kind of scenenode you should use, and then create a pointer of that kind to reference to it. But as most of the scene nodes have IMeshSceneNode as their parent, I feel that the getMesh() should be in there.
should I make a bug report of this?
should I make a bug report of this?
This is simply not true. The only class that has IMeshSceneNode as a base is CMeshSceneNode. As I said, it would not right for the ISceneNode interface to expose a getMesh() method. Very few scene node types actually have a mesh, and of those that do, some of those meshes are animated meshes.But as most of the scene nodes have IMeshSceneNode as their parent, I feel that the getMesh() should be in there
yeah, youre right. I thought that every scene node that contains a mesh (so also animatedmesh, terrainnode(allready has a getmesh) and watersurfacenode) would derive from meshscenenode, but I was wrong in that assumption.
I totally agree with you on the matter that getmesh should not be in ISceneNode, I meant with 'should be in there' that there should be a getmesh in IMeshSceneNode and a getanimatedmesh in IAnimatedMeshscenenode, like you said in your first post.
but to get these methods in, should it be made a bug report, or is there an other way?
I totally agree with you on the matter that getmesh should not be in ISceneNode, I meant with 'should be in there' that there should be a getmesh in IMeshSceneNode and a getanimatedmesh in IAnimatedMeshscenenode, like you said in your first post.
but to get these methods in, should it be made a bug report, or is there an other way?
where did you add it? in a IScenenode?
Compete or join in irrlichts monthly screenshot competition!
Blog/site: http://rex.4vandorp.eu
Company: http://www.islandworks.eu/, InCourse
Twitter: @strong99
Blog/site: http://rex.4vandorp.eu
Company: http://www.islandworks.eu/, InCourse
Twitter: @strong99