Questions tagged [jmonkeyengine]

A 3D game engine written in and for Java. Many features including collisions, particle systems, shaders, terrain system, renderer abstraction.

1
vote
0answers
19 views

Issue in running JavaFX and JMonkey project in Maven

We have some problem in getting a JavaFx and JMonkey project running in Maven. The project is running without any issues in Gradle. But when we try to get it running in Maven we get a ".jar file not ...
0
votes
0answers
20 views

Is there a method to subdivide a mesh in jMonkeyEngine?

I have so far not found any way of subdividing a Mesh in jMonkeyEngine. I did find this SubdivisionSurfaceModifier class, but that is part of importing Blender models/scenes to the engine. I am ...
0
votes
0answers
57 views

jmonkey server with multiple clients

I am trying to make a video game using jmonkey but I can't get the client to work with the server. It connects to the server and makes a thread but the thread won't receive what the client sends. I'm ...
1
vote
1answer
42 views

Play video on JMonkeyEngine

I am doing game development using JMonkeyEngine and I have created an introduction video (.mp4). I want to play it at the start before the game starts but I am unable to play the video and can only ...
1
vote
1answer
198 views

Android - javax.imageio does not exists

One of the libs in my Android project (jMonkey 3 based) uses javax.imageio which does not exist in Android SDK. Is there anything to do about it?
0
votes
1answer
30 views

what is the best way to customize threading depending on device Capabilities

i'm developing an android 3d game the game can run better on a high devices capability but still i can boost up the game by reducing textures or by customize the frame rate of the game or also ...
0
votes
1answer
31 views

jMonkeyEngine ignores keyboard input in Nifty GUI form

Created a game login form using the Nifty GUI. The interface reacts to the movement and clicking of the mouse, but ignores the input in the text fields. Whether the program is looking for a click ...
0
votes
0answers
18 views

How to increase volume when playing sounds with AudioRender

Can anyone please help. How to increase volume when playing sounds with AudioRender in java code?
0
votes
0answers
34 views

How to move around 3D object in 3D scene

I use the jme3 game engine and I have this update code for a space scenario. public void simpleUpdate(float tpf) { playtime = System.currentTimeMillis() - starttime; int speed = 25 * 80000; ...
0
votes
1answer
26 views

Collision detection fails after updating vertex buffer

Using jMonkeyEngine, I am updating specific vertices of a mesh by modifying the vertexbuffer. That all works fine. However, I've noticed that collision detection no longer works on the moved bit of '...
0
votes
1answer
87 views

JmonkeyEngine gradlew build doesn't work

I am beginner in JMonkeyEngine. I cloned the repository JMonkeyEngine SDK based on Netbeans, then I ran ./ gradlew build in the terminal and returned this error: FAILURE: Build failed with an ...
0
votes
1answer
59 views

pixel format not accelerated in jmonkeyengine 3

Instaled jmonkeyengine 3.1.0 stable SDK create new project.basic game.then run default main.java like hello world application.but gor error: failed to create display. Pixel format not accerated Org....
0
votes
1answer
26 views

jmonkey shows blackscreen with blender models

So I build a model of a tank in blender which I implemented later on in jmonkey with a spatial. But when I gave the model texture, materials and morde detail, jmonkey responds with an error "...
0
votes
2answers
468 views

How to find the intersection of two lines in a 3D space using jmonkeyengine3 (or possibly another library)?

At first I tried something like this: Ray ray1 = new Ray(); Vector3f originRay1 = new Vector3f(0, 0, 1); ray1.setOrigin(originRay1); Vector3f directionRay1 = new Vector3f(0, 0, -1); ray1....
1
vote
0answers
73 views

jMonkeyEngine 3.1 apk not installed

I have a lot of problems with running jME project on android. Firs problem: jME SDK does not support latest version of Android SDK (it does not have sdk/tools/ant folder). I have found an older SDK ...
1
vote
1answer
63 views

jMonkeyEngine from repo under Scala is crashing

After a lot of time I am going again trying jMonkeyEngine with Scala. This time I wanted properly set sbt and dependencies. Unfortunately there is a lot of issues and discomfort (like having to ...
1
vote
1answer
123 views

Java project using jMonkey really slow on high-end pc

I have a java project running jMonkey Engine. On my normal laptop (not the greatest laptop there is) my project runs fine. But on my high-end gaming pc (GeForce GTX 970, Intel i5-6600K @3.50 GHz, 16 ...
1
vote
0answers
28 views

Non-square TerrainQuad

I am trying to create a game in which there is a tabletop that users can manipulate: they can change the height of vertices to create hills. I am using JME3 (JMonkeyEngine) for this. I am trying to ...
2
votes
0answers
141 views

How can I start a JavaFx application while passing an object to it?

I am writing a game in which I am using jMonkeyEngine and JavaFx. I have a launcher written in JavaFx that can launch a new thread and run jMonkeyEngine on that thread. When it does so, it calls ...
2
votes
1answer
475 views

jMonkeyEngine 3 with Maven

I've got a problem. I am trying to use jme3 with eclipse and Maven. I am using the m2e plugin (with eclipse Oxygen). Now, I want to add the jme3 dependencies to my pom.xml. I copied the dependency ...
1
vote
1answer
36 views

I want to add random vector to an array that has n elements.HoweverI want a distance between a new random Vertor and elements in the array>4f

Here is my code, apparently it doesn't correct? Is there any other way to create object in random location without overlap? Thanks for your time. public ArrayList getVector3f() { boolean ...
0
votes
0answers
82 views

Is there are a way to add Multi Agent layer into a game development ?

I am hoping to build a RTS game for my final year project. Is there are a way to add Multi Agent layer into a game development ? I am hoping to use unity 3d or JMoneky
1
vote
0answers
77 views

Texturing bug in Jmonkey

To my immense surprise, it seems impossible to find any other people having this problem -- I can use Jmonkey to import a mesh (in my case a gear), but it doesn't properly map the texture (which is ...
2
votes
2answers
124 views

How can I stop the a jMonkeyEngine game?

I want to quit the game, if 2 values are higher than 3. I want to put in in here: if(player.getWorldTranslation().y > 3){ if(player.getWorldTranslation().z > 3){ ...
0
votes
0answers
23 views

Java - Jmonkeyengine [duplicate]

when I copy code from this tutorial https://jmonkeyengine.github.io/wiki/jme3/beginner/hello_animation.html, everythink works correctly. But when I change the model from example to my, which I made in ...
1
vote
1answer
72 views

jMonkeyEngine: flyCam and inputManager both return NULL

I've got a trouble: suddenly flyCam and inputManager inside simpleInitApp() both became equal to NULL. I don't understand what happened! They are ALWAYS NULL! public void simpleInitApp() { ...
1
vote
1answer
278 views

Can't build with gradle

What does this error msg mean? FAILURE: Build failed with an exception. * What went wrong: Could not resolve all dependencies for configuration ':compile'. > Could not find com.jme3:xmlpull-xpp3:...
-2
votes
1answer
694 views

JMonkeyEngine in Intellij IDEA

I have this pom.xml which is not working. It is impossible to use jme3 with maven. It is also not possible to use jme3 with jar:s, because the jar:s are not available, so nothing is possible. <?...
-1
votes
1answer
41 views

JME3 geom rotation using mouse

So i've got this geom at the center of my window in a top-down view, if i place my cursor to the right of said geom, i want said geom to rotate to face the cursor, the geom pretty much always faces ...
0
votes
1answer
134 views

Putting JMEcanvas into JPanel SWING

I need to put a JME canvas into my app JPanel. In the class with JME I init this: public JmeCanvasContext ctx; public Dimension dim = new Dimension(800, 600); private void init() { AppSettings ...
3
votes
0answers
319 views

Camera2 callback equivalent

I got a RA application using Camera API and I want to integrate Camera2. Is an equivalent exists to get each preview frame in order to sent it to JMonkeyEngine ? Here is my code using Camera API : ...
0
votes
1answer
203 views

Google Tango Update Listener onXyzIjAvailable Callback never gets called

first: there are two topics in here which are pretty similar, but one ended with the device being faulty, others are on the C API... that's why a open a new question. I am using the Google Tango SDK ...
0
votes
1answer
48 views

how can i project a camera onto a cube as a Texture in jMonkeyEngine 3?

how can i project a camera onto a cube as a Texture in JMonkeyEngine3? would you mind helping me? I try to do it by this piece of code but it dosent work: private void addCamera() { Camera c = ...
0
votes
1answer
340 views

Get stabilized pitch and roll values

I want to get best pitch and roll values. I'm already using that code to get azimut value. Pitch and roll values seem not be good. @Override public void onSensorChanged(SensorEvent event) { ...
0
votes
1answer
66 views

how to rotate a spatial with physics control in JmonkeyEngine3?

I loaded a 3D model from asset Manager and add CharacterControl as a control. every thing was working correctly but when I tried to rotate the model it did`nt work. private CharacterControl player; ...
0
votes
1answer
106 views

jMonkeyEngine: Take screenshots without displaying game?

I want to take screenshots of rendered scenes without displaying the game itself. The procedure I want to follow is: createScene(); for(i = 0; i < num_screenshots; i++) { moveCameraRandomly(); ...
1
vote
1answer
82 views

Jmonkey Nifty. detect if user stops sliding

Is there a way to detect if a user stopped slyding? Maybe bij mouse input check or something. I tried mouse isButton0Release and hasFocus in the onSliderChange event to check if the user stopped ...
0
votes
1answer
97 views

jMonkeyEngine 3: Missing “Basic Game” Template for New Project?

I'm trying to create a new project in jme3 (on OSX) but the Basic Game template has disappeared from my menu. That is, I had it before because I definitely used the Basic Game template before, but now ...
0
votes
1answer
157 views

Jmonkey: Make RigidBodyControl React to Gravity

I am trying my best to make an object fall, and so far I can't even come close. Here is the code i am trying. BulletAppState bulletAppState = new BulletAppState(); cubemesh = new Box(1f,1f,...
0
votes
1answer
47 views

Model created in Blender, imported to JME3, not visualizable in SceneComposer

I followed these instruction to create the Blender model, the output shown below: https://en.wikibooks.org/wiki/Blender_3D:_Noob_to_Pro/UV_Map_Basics http://i.stack.imgur.com/piXv9.png I import the ...
1
vote
1answer
95 views

cant play movie file with JME3-JFX

I am trying to play an flv file using JME3X-JFX and i use the demo class and can play their file via the http url method. I can also download their flv and play it with the flv method. But i cant seem ...
0
votes
1answer
100 views

String/byte efficiency and memory behavior

I have a 2D map in this format: (x,y,type,index) Which is fed into jmonkeyengine renderer from a Swing app. I used: String map_array[10000][1000]; Example: map_array[100][200]="E8"; Which means in ...
1
vote
1answer
189 views

Nifty GUI “onClickRepeat” not working in “controlDefinition” in JME3

I'm trying to make an image button in Nifty GUI in JME3 but my interact events are not working. I'm running my app in android. The button seem to be drawing but the events are not working. Here is my ...
2
votes
1answer
113 views

How can I access the Vector3f location of a BetterCharacterControl object in JMonkeyEngine3?

I'm wanting to move away from the deprecated "CharacterControl" to the "BetterCharacterControl" for the 3D game I'm messing with in JMonkeyEngine3 Here is the code I have so far for initiating them: ...
0
votes
1answer
132 views

Java for loop not running full loop

I'm not sure if this is an issue with my for loop, or the rectangle position, but I have set a breakpoint and used a debug draw to draw the rectangles and they appear to be correct. public void ...
1
vote
1answer
108 views

Setting up a Native Library on JMonkey IDE

How to set a Native Library (*.dll) location of a jar file in JMonkey IDE? I'm trying to connect Leap Motion with JMonkey engine. Therefore I need to put LeapJava.jar in build path. As the native ...
1
vote
1answer
276 views

Combine jMonkeyEngine and Vuforia: Geometry doesn't remain at the center of the target

I am trying to combine Vuforia SDK and jMonkeyEngine. The cube is placed on the target (ImageTarget) so far. But when I move the camera the cube moves a little bit too. I want that the cube remains at ...
4
votes
1answer
284 views

Change camera behavior in jMonkey

I am writing a program that is supposed to display 3D point clouds. For this purpose, I am using the jMonkeyEngine. Unfortunately, I do not like the default camera behavior of jMonkey. Especially the ...
0
votes
1answer
175 views

Strange shadows on a blender model with subdivision surface

Placing a blender model in the scene with shadows applied produces the following result. The filters used are a DirectionalLightShadowFilter, SSAOFilter and BloomFilter. The model is exported using ...
0
votes
1answer
160 views

JMonkey Filter Shader - get World Position of Fragment

I'm implementing Warcraft/Age of Empires-style "Fog of War" by writing a Filter class and the appropriate JME material definition with vertex and fragment shaders. I was able to figure that out very ...