6972 Commits

Author SHA1 Message Date
Stephen Gold
0425c61dd4
fix for issue #1178 (BulletAppState violates AppState contract) (#1187)
* fix for issue #1178 (BulletAppState violates AppState contract)

* BulletAppState: make isRunning volatile (potential multithreaded access)
2019-09-20 17:51:44 -07:00
Stephen Gold
dcb66977ba fix issue #1188 (TestNiftyExamples crash) 2019-09-20 13:33:32 -07:00
Ali-RS
621a4ab6a9 Bump LWJGL3 version to '3.2.3' on jme3-vr as well 2019-09-20 12:13:59 -07:00
Ali-RS
981aa1d181 Bump LWJGL3 version to '3.2.3' 2019-09-20 12:13:59 -07:00
Stephen Gold
46a52af2f5 README.md: fix linkrot in the powered-by-JME list 2019-09-19 10:35:36 -07:00
travis-ci
bc38b9b7ef [ci skip] bullet: update linux natives 2019-09-19 04:57:54 +00:00
Stephen Gold
89e753bf47
.travis.yml: use openjdk8 for the uploading build 2019-09-18 21:47:55 -07:00
Stephen Gold
3e89cd1377
define 2 new Platform values for Linux ARM, register BulletJme lib paths (#1182) 2019-09-18 20:50:45 -07:00
sgold
126874873c .travis.yml: try xenial dist for the oraclejdk8 build 2019-09-18 20:22:48 -07:00
travis-ci
6640436b03 [ci skip] update android natives 2019-09-19 03:07:46 +00:00
travis-ci
cc9fcd7173 [ci skip] bullet: update osx natives 2019-09-19 03:04:41 +00:00
appveyor
8f6c88413f [ci skip] bullet: update windows natives 2019-09-19 03:02:53 +00:00
sgold
3482904c76 CollisionShape: add isNonMoving() and test buildscript 2019-09-18 19:56:39 -07:00
travis-ci
4ccdd7aae0 [ci skip] update android natives 2019-09-19 02:46:36 +00:00
sgold
814ab1b106 upload_native.sh: single commit per Travis CI job 2019-09-18 19:34:17 -07:00
travis-ci
4e56a6e24a [ci skip] bullet: update osx natives 2019-09-19 01:48:22 +00:00
appveyor
06c07fe0df [ci skip] bullet: update windows natives 2019-09-19 01:45:44 +00:00
Stephen Gold
42530de219 PhysicsCollisionObject: add getDeactivationTime() and test buildscript 2019-09-18 18:40:10 -07:00
Stephen Gold
2c2f76cca1 upload_native.sh: use "git diff" instead of "git diff-tree" 2019-09-18 18:15:37 -07:00
travis-ci
91f304272a [ci skip] bullet: update osx natives 2019-09-19 00:17:24 +00:00
appveyor
1484107c92 [ci skip] bullet: update windows natives 2019-09-19 00:14:56 +00:00
Stephen Gold
392a3c5cff SixDofJoint: add getAngles() and test recent buildscript changes 2019-09-18 17:09:12 -07:00
Stephen Gold
0f3bc6cdcf upload_native.sh: add debugging aids and comments 2019-09-18 16:46:16 -07:00
Stephen Gold
5eaf653de9
address issue #1119 (serialization with protected/private constructor) (#1181)
* address issue #1119 (serialization with protected/private constructor)

* remove an unnecessary step in findNoArgConstructor()

* use getDeclaredConstructor() in place of the for-loop

* simplify by throwing the exception in findNoArgContructor()
2019-09-17 17:58:44 -07:00
travis-ci
909ea30216 [ci skip] bullet: update osx natives 2019-09-17 20:37:21 +00:00
appveyor
637ccf91db [ci skip] bullet: update windows natives 2019-09-17 20:34:42 +00:00
Stephen Gold
30d1ecaec2 fix for issue #1157 (can't enable a TranslationalLimitMotor) 2019-09-17 13:27:08 -07:00
Stephen Gold
3c74fe539c
test and fix for issue #1138 (#1177) 2019-09-17 08:53:19 -07:00
MeFisto94
6aac1a21bd Continuous Integration: Change else-if to if, so that when multiple natives have been changed that multiple commits are issued. 2019-09-17 13:02:34 +02:00
MeFisto94
ad64b7e4b6 Continuous Integration: Fix regression in 21d0854b6132cf450c4eeba470594f16a4b76eba. Variable was misnamed. 2019-09-17 12:37:01 +02:00
MeFisto94
21d0854b61 Continuous Integration: Also upload natives from bullet-native-android and android (#1171) 2019-09-17 12:28:49 +02:00
MeFisto94
c461a1b43d .travis.yml: remove deployment of android-natives from ubuntu build so they don't conflict with the android build matrix (#1171) 2019-09-17 11:51:48 +02:00
Stephen Gold
9aa25ad3ef
build.gradle: the clean task should remove merged javadoc 2019-09-16 17:27:03 -07:00
Stephen Gold
04953341d4
.travis.yml: continuous integration shouldn't need root privileges 2019-09-16 13:13:51 -07:00
mitm001
7a4e881bc6 Adding link to project tab. (#1170) 2019-09-16 20:49:56 +04:30
appveyor
970eb7fa15 [ci skip] bullet: update windows natives 2019-09-16 13:55:03 +00:00
MeFisto94
1bde90d1a1 Build android bullet-native on Travis (#1175)
* First attempt at building android-natives.

*  Use OpenJDK because native build is broken without

* Try OpenJDK 10

* Try openJDK 9

* Try openJDK11 again but "enable" the EE Module

* OpenJDK 11 has no Java EE Module anymore.

* Try to fix Android Header Generation

* Fix invalid flag error with javac by removing empty quotes

* Try to fix build of decode.

* Remove jni generated headers from the repository.

* Adjust .gitignore as those header files won't appear at that location anymore

* Fix Android Build: Fill the jme3-android-native headers during the build of jme3-android. This works because jme3-android-native already depends on jme3-android.

Due to technical reasons, the headers share the same location and thus the include directives have been adjusted slightly.

* Copy jni headers to the jni directory.

* Adjust the path slightly

* Try to silence android sdk's license print out

* Also fix openAL

* Solve task name conflict

* Really silence license now

* Tasks seem shared but Strings are not...

* Only build Android-Native

* Trying to reduce the amount of dependencies needed.

* Remove even more dependencies

* Even more removal

* Prepare Deployment

* Fix Deployment

* Cleanup: Remove feature branch from branches for travis.

* Revert a few unnecessary things

* Removed NDK Comments.

* Bullet Android: Some cosmetic changes (removed commented debug code) and generate bullet-native headers during jme3-bullet compilation.

* Fix Bullet Build by using GNU libstdc++ instead of STLPort (discontinued)

* Fix Bullet-Native Compilation
2019-09-16 06:49:45 -07:00
Stephen Gold
194ae883c5
fix for issue #99 (pr #1082) 2019-09-15 21:43:11 -07:00
MeFisto94
3ec89ce499 Fix and Improve TerrainPicking (#1049)
* Fix TerrainPicking by not adding "ghost" collisions to the CollisionResults (which weren't removed).

Improve TerrainPicking by allowing to do more ray tracing (previously, it stopped on the first hit, now it will stop on the first hit within range).

* Upgraded TerrainTestCollision to support multiple collisions and print the collision results detailed. MultiCollision can easily be turned on/off in simpleInitApp().
During testing, I noticed a bug where in very rare cases the first collision isn't what is expected but the back side of the clicked mountain. It has to be validated if this is due to the following changes or was already present.

* Added Basic Unit Tests for Collision

* TerrainPicker: Change API to return int to conform with collideWith

* TerrainQuad: Conform with Picker now returning the number of collisions and allow to set multipleCollisions true or false.

* TerrainPicking: Fixed a bug where the perpendicular collision always returned true, no matter the result of checkTriangles.

Also add support for multiple collisions (which is toggleable to the old behavior, because the picker can early out then).

* Try to fix Travis Build

* Fixed a Regression which occurred due to Multi Collision Handling:
The method used to provide duplicate results, which is why I commented it out. This lead to corner-cases not colliding at all anymore, thus I added a unit-test and removed the commented code and instead made addCollision de-duplicate entries.
2019-09-15 19:57:06 -07:00
Paul Speed
1ffd11fae4 Added a basic unit test for some of the AppStateManager functionality.
(Specifically the stuff that deals with IDs.)
Also added the ability to use groovy tests for those who like a little
testing but aren't complete masochists.
2019-09-15 20:54:53 -04:00
Paul Speed
36afe829c6 Part 2 of the small AppState refactoring: added methods to AppStateManager
for retrieving an AppState by ID.  Also modified attach() to throw an
IllegalArgumentException if the ID is already registered.
Updated TestAppStateLifeCycle to add a small ID demonstration.
2019-09-15 20:27:46 -04:00
Paul Speed
3dd2755c20 Merge branch 'master' of https://github.com/jMonkeyEngine/jmonkeyengine 2019-09-15 19:40:36 -04:00
Paul Speed
3b8314a36f Part 1 of small refactoring to give AppState a unique ID for lookup purposes.
This is a breaking change for direct implementers of AppState as they must
add a getId() method.  (Which is also a good time to evaluate if they should
be extending AbstractAppState or BaseAppState and/or if their life cycle is
implemented correctly. e.g.: BulletAppState is breaking the AppState contract
a bit.)
2019-09-15 19:38:50 -04:00
MeFisto94
90d3b69bd1 Build Android Natives (OpenAL, Vorbis, TextureLoading) on Travis (#1171)
* First attempt at building android-natives.

*  Use OpenJDK because native build is broken without

* Try OpenJDK 10

* Try openJDK 9

* Try openJDK11 again but "enable" the EE Module

* OpenJDK 11 has no Java EE Module anymore.

* Try to fix Android Header Generation

* Fix invalid flag error with javac by removing empty quotes

* Try to fix build of decode.

* Remove jni generated headers from the repository.

* Adjust .gitignore as those header files won't appear at that location anymore

* Fix Android Build: Fill the jme3-android-native headers during the build of jme3-android. This works because jme3-android-native already depends on jme3-android.

Due to technical reasons, the headers share the same location and thus the include directives have been adjusted slightly.

* Copy jni headers to the jni directory.

* Adjust the path slightly

* Try to silence android sdk's license print out

* Also fix openAL

* Solve task name conflict

* Really silence license now

* Tasks seem shared but Strings are not...

* Only build Android-Native

* Trying to reduce the amount of dependencies needed.

* Remove even more dependencies

* Even more removal

* Prepare Deployment

* Fix Deployment

* Cleanup: Remove feature branch from branches for travis.

* Revert a few unnecessary things

* Removed NDK Comments.
2019-09-14 11:26:18 -07:00
Paul Speed
0d8fe2ac22 Created a LazyMessageBuffer class that differs from GreedyMessageBuffer only
in that it delays serialization until the message is requested.  This should
fix the issue where the initial server messages would sometimes fail to
deserialize because the serialization registration message hadn't been processed
before the other messages in the block were deserialized.  Now each message will
be deserialized as it is encountered.
In the end the fix was simple enough that it's probably only a 2-3 line change to
MessageProtocol in JME 3.2 if someone wants to back port the fix.  (Just queue
up ByteBuffer instead of Message.)
2019-09-08 21:17:04 -04:00
Paul Speed
1c37d5a92d Refactored the base networking imlpementation's "MessageProtocol" to be an
interface and strictly implement the to/from ByteBuffer protocol.  In the future
this will allow the message protocol to be swappable.  Also moved out the buffering
aspect since often buffers need to be created 'on the fly' and are separate from
the protocol.  This will allow me to play with fixing the issue related to messages
being deserialized before the serialization registry message has been processed by
swapping out the GreedyMessageBuffer implementation for a LazyMessageBuffer implementation.
2019-09-08 20:40:53 -04:00
Riccardo Balbo
a9afcecc41
Recognize .glsl files as glsllib. 2019-09-02 09:25:41 +02:00
grizeldi
484d192467 Some fixes in jme-vr (#1163)
* Added Valve Index to the recognized HMD list

* Fix lwjgl version mismatch

* Removing linux from the blacklist
2019-08-28 23:15:57 -07:00
Ali-RS
3d7a5ee01b
Fixed an issue with previous commit 2019-08-13 11:39:02 +04:30
Ali-RS
740832d699
Renamed class to TestRtlBitmapText 2019-08-13 11:17:37 +04:30