jmonkeyengine

smooth translation combined with compas

心已入冬 提交于 2019-12-11 20:25:33
问题 I'm building augmented reality app for android and I'm using jMonkey as my 3D engine. I want to do simple thing. Move object from left side of screen to right (X axis) by changing the azimuth of view (I got it from compass). I can calculate where the object is (rendered object has gps location) so I can say am I looking directly or maybe it is on the left or right. Now my problem is smooth move and calculate the change for local translation. My questions are: 1. how can I calculate position

Enabling materials and textures for OGre 3D model in jmonkeyengine?

不想你离开。 提交于 2019-12-11 14:08:00
问题 I downloaded models from WorldForge and I can introduce the mesh of a goblin to my scene but the texture and material won't render: I use eclipse and the added files look like this: The way I add the goblin in the code is this Spatial model3 = assetManager.loadModel("objects/creatures/goblin/goblin.mesh.xml"); model3.setLocalTranslation(-30.0f, 4.5f, 0.0f); rootNode.attachChild(model3); Can you help me how I improve the goblin? There are several textures and materials definition in the files

Download jMonkeyEngine using SBT

大城市里の小女人 提交于 2019-12-11 03:43:27
问题 I am trying to use jMonkeyEngine 3 with Scala (using IntelliJ as an IDE, in a SBT driven Scala project). As Maven distribution was added few months ago, I try to pull the JME from this maven repository. This is what I have added into my build.sbt file: resolvers += Resolver.sonatypeRepo("snapshots") libraryDependencies += "com.jme3" % "jmonkeyengine3" % "3.0.0.20140325-SNAPSHOT" The only jar downloaded jmonkeyengine3-3.0.0.20140325-SNAPSHOT.jar seems to contain the tests only (folder jme3test

Threads in jMonkey and Nifty?

情到浓时终转凉″ 提交于 2019-12-10 22:48:58
问题 I have recently learnt that jMonkey operates on only a single thread which is its openGL render thread. However I'm not able to understand it completely. I can understand that it executes all update and initialize() calls on a single update loop but input should be independent of this update loop, otherwise it will become a polling mechanism. What exactly happens when the jMonkey application starts. Three tasks that it needs to do is run a update loop, run initialize methods of app states

Relative gravity

随声附和 提交于 2019-12-09 16:39:16
问题 I've started using jMonkey engine recently, which is very nice. But I got stuck trying to implement relative gravity. I want to make planets orbiting around each other (not necessarily in perfectly circular orbit, depends on velocity). So every object should affect other objects. What I have right now: turning off global gravity bulletAppState.getPhysicsSpace().setGravity(Vector3f.ZERO); initializing spheres and adding to physics space Sphere sphere = new Sphere(50, 50, 5); Geometry sun = new

Smooth rotation with quaternions

前提是你 提交于 2019-12-07 05:21:44
问题 Quaternion can describe not only rotation, but also an orientation, i.e. rotation from initial (zero) position. I was wishing to model smooth rotation from one orientation to another. I calculated start orientation startOrientation and end orientation endOrientation and was wishing to describe intermediate orientations as startOrientation*(1-argument) + endOrientation*argument while argument changes from 0 to 1 . The code for monkey engine update function is follows: @Override public void

Can i use jmonkeyengine on android? [closed]

余生颓废 提交于 2019-12-06 23:21:39
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I'm, trying to make a simple 3D game for Android, and I want to use jmonkeyengine. Can I do this? How can I do it? Can somebody can

How to improve character control for my 3D game?

一个人想着一个人 提交于 2019-12-06 05:57:54
问题 Since I changed from the helper class CharacterControl to the new BetterCharacterControl I notice some improvements such as pushing other characters is working but my main character has started sliding over steps and can't climb higher steps. I must jump the step above which is not the right way of playing, it should be just walking over. The old helper class CharacterControl had a default way of not sliding, just walking over steps and I think it can be corrected by altering the code where I

Smooth rotation with quaternions

亡梦爱人 提交于 2019-12-05 10:53:49
Quaternion can describe not only rotation, but also an orientation, i.e. rotation from initial (zero) position. I was wishing to model smooth rotation from one orientation to another. I calculated start orientation startOrientation and end orientation endOrientation and was wishing to describe intermediate orientations as startOrientation*(1-argument) + endOrientation*argument while argument changes from 0 to 1 . The code for monkey engine update function is follows: @Override public void simpleUpdate(float tpf) { if( endOrientation != null ) { if( !started ) { started = true; } else {

Can i use jmonkeyengine on android? [closed]

老子叫甜甜 提交于 2019-12-05 04:14:27
I'm, trying to make a simple 3D game for Android, and I want to use jmonkeyengine. Can I do this? How can I do it? Can somebody can show me an example? jME 3 can be used on Android, and the Android support is a relatively new feature as of 2011, but a previous version of jME cannot be used. Mostly this was due to architectural issues with an inflexible pipeline under the hood that wouldn't easily be able to support the mobile GL API. Edited post because information was no longer accurate and was receving downvotes (cannot delete as it is the accepted answer). Erlend I'm a manager with the