FAQ Database Discussion Community


rotation matrix to quaternion (and back) what is wrong?

c++,quaternions,jmonkeyengine
I copied a code for conversion of 3D roation matrix to quaternions and back. The same code is used in jMonkey (I just rewrote it into my C++ class). However, it does not work properly (at least not as I would expect.) e.g. I made this test: matrix (a,b,c): a...

How do you include the JMonkey test data jar on a Gradle project?

java,gradle,jmonkeyengine
I've followed the instructions to creating a Gradle project using JMonkey but I have been unable to get any of the assets to load as stated in the tutorial: http://wiki.jmonkeyengine.org/doku.php/jme3:beginner:hello_asset My build.gradle looks like this: apply plugin: 'java' apply plugin: 'eclipse' sourceCompatibility = 1.8 version = '1.0' jar { manifest...

Why will my geometry not appear? (jMonkeyEngine)

java,3d,jmonkeyengine
I'm just now picking up jMonkeyEngine and I've encountered an issue I can't seem to solve. In the simpleInitApp method in the main class, I can use the following code to successfully render a box: Box playerBase = new Box(Vector3f.ZERO,1f,1f,1f); Geometry playerBaseGeom = new Geometry("playerBase", playerBase); Transform fixBaseHeight = new...

Runnable concurrency

java,concurrency,runnable,jmonkeyengine
I am playing around with JMonkeyEngine. While doing this i play JavaFX MediaPlayer. This MediaPlayer takes a Runnable to handle what's to do, when the media finished: mp.setOnEndOfMedia(new Runnable() { @Override public void run() { }} I want to do sth. like this: mp.setOnEndOfMedia(new Runnable() { @Override public void run()...