November 9, 2020, 4:15pm
I have a Problem with the Node.getControl method it does not set the AnimControl. What am I doing wrong? This is the code (Problem in Line 70):
public class Main extends SimpleApplication
public static void main(String args)
public void run()
AppSettings settings = new AppSettings(true);
Main canvasApplication = new Main();
canvasApplication.createCanvas(); // create canvas!
JmeCanvasContext ctx = (JmeCanvasContext) canvasApplication.getContext();
Dimension dim = new Dimension(640, 480);
JFrame window = new JFrame("Swing Application");
JButton test = new JButton("Hallo");
test.setBounds(0, 0, 200, 50);
public void simpleInitApp()
Node testObjekt = (Node)assetManager.loadModel("Textures/testObjekt/testObjekt.j3o");
kontrolle = testObjekt.getControl(AnimControl.class);
kanal = kontrolle.createChannel();
PointLight licht = new PointLight(new Vector3f(0.5f, 2, 1), new ColorRGBA(1, 1, 1, 1), 10);
public void simpleUpdate(float tpf)
//TODO: add update code
public void simpleRender(RenderManager rm)
//TODO: add render code
3.3+ version of JME use AnimComposer instead AnimControl class (models converted using 3.3 version)
November 9, 2020, 4:24pm
First for the future (or if you want to edit your post):
How to type code blocks
Second, what oxplay says is true but it also could be that the control is not on the node but on one of the children. We’d have to know more information about JME version, where you got the j3o file, etc… We don’t even really have enough information to know if it should have an animation control.
November 9, 2020, 4:28pm
well I use the 3.3.2 sdk.
I tried to do it like in the Tutorial
is there a Tutorial on using AnimComposer as well?
i think that Wiki you linked is confusing, because Test Model it uses probably have old Control class in it.
@mitm i thought 3.3 wiki use new Animation class in it. seems like it didnt.
@Dares see links:
This file has been truncated.
* Copyright (c) 2009-2020 jMonkeyEngine
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of 'jMonkeyEngine' nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
and other files inside:
You can open it in SDK by New Project → JME → JME Tests project → Run → search for animation test
November 10, 2020, 2:46pm
It requires someone who uses the new system to write about it. I have not used it but I am saving forum posts about it so I can gather it all together into something that makes sense once I do.
As the wiki is open to anyone, anyone can freely contribute, but that has not happened yet. So here we are.
I don’t have the time right now to do anything for a short while to come.
November 10, 2020, 2:48pm
thanks for info, currently having mind in networking topic, but if noone will do it, i will try myself make some pull request. (just hope we had some GLTF model in test-repo there)
November 10, 2020, 2:58pm
There is a duck gltf on engine site in testdata believe. I think Oto and Sinbad uses new system also.
November 10, 2020, 3:00pm
yes, old models should work too, i just thought that many new users had problems with “older formats” so it would be better them to see GLTF instead “ogre.mesh” so they use new one
so it would be good to convert old models to gltf version of them.
November 10, 2020, 3:02pm
Yes, there are open source gltf I have seen myself with cc0 that can be used.