RenControlEditor + Milkshape


    I wanted to know if it is possible to replace the Box on terrain in with a Milkshape imported model.

If so could you please tell me how to do so or link me to some examples on similar lines. I tried modifying setupcharacter() method in RenControlEditor like this :

 try {
                i = (Node) BinaryImporter.getInstance().load(new ByteArrayInputStream(BO.toByteArray()));
            } catch (IOException e) {
      "darn exceptions:" + e.getMessage());

            Node modelRoot = new Node("Milkshape");
            m_character = new Node("char node");
            m_character = modelRoot;

            m_character.getLocalTranslation().y = 255;
            m_character.updateWorldBound(); // We do this to allow the camera setup access to the world bound in our setup code.

and got this error :

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at jmetest.util.JMESwingTest$ControlImplementor.setupChaseCamera(Unknown Source)
        at jmetest.util.JMESwingTest$ControlImplementor.simpleSetup(Unknown Source)
        at com.jmex.awt.SimpleCanvasImpl.doSetup(Unknown Source)
        at com.jmex.awt.lwjgl.LWJGLCanvas.paintGL(Unknown Source)
        at org.lwjgl.opengl.AWTGLCanvas.paint(
        at org.lwjgl.opengl.AWTGLCanvas.update(
        at sun.awt.RepaintArea.updateComponent(
        at sun.awt.RepaintArea.paint(
        at java.awt.Component.dispatchEventImpl(
        at java.awt.Component.dispatchEvent(
        at java.awt.EventQueue.dispatchEvent(
        at java.awt.EventDispatchThread.pumpOneEventForFilters(
        at java.awt.EventDispatchThread.pumpEventsForFilter(
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(
        at java.awt.EventDispatchThread.pumpEvents(
        at java.awt.EventDispatchThread.pumpEvents(

Thank you,