currently, I'm working with Jirr, the Java Binding for Irrlicht. I presume, not many people got experience with Jirr (most of you propably use Irrlicht with C++).
Here is a problem, an experienced Irrlicht user may have a solution for (I hope so):
I want to create my own cutom scene node. I created a class, that is almost the same as a CMeshSceneNode class (just with java syntax). Now I do the following:
Code: Select all
SimMeshNode node = new SimMeshNode( mesh, scene.getRootSceneNode(), scene, -1, new vector3df(0, 50.0f, 0), new vector3df(0, 0, 0), new vector3df(1.0f, 1.0f, 1.0f) );
My idea why the code doesn't work is the following: CSceneManager is in the source a class derived from ISceneManager _and_ ISceneNode, so a CSceneManager _is_ also an ISceneNode.
I think in Jirr, this is not the case. In the code above, I use "scene.getRootSceneNode()", and when you have a look at the Irrlicht source code, "getRootSceneNode" returns "this", and "this" is the CSceneManager class, and so a ISceneNode.
I think the problem is (why my program crashes), that in Jirr, I get the Scenemanager with "device.getSceneManager();", it returns an object of type "ISceneManager". But that object ist _not_ a ISceneNode! You get the problem?
When I do "scene.getRootSceneNode()" when I create my own custom SceneNode, the parameter should be an ISceneNode, but it is not. So the Irrlicht code can't run correctly, and the whole thing crashes.
So, when you do have _any_ ideas how I may use my custom SceneNode in Jirr (even when the idea is crazy), that would ne great
Honestly, I don't believe I get a response from someone, who uses Jirr, are there any people? So please, any response is welcome