6896 Commits

Author SHA1 Message Date
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
Ali-RS
16ccd36d56
Rename TestRTLBitmapText.java to TestRtlBitmapText.java 2019-08-13 10:49:17 +04:30
Ali-RS
53839ca528
Added TestRTLBitmapText for issue #1158 (#1159) 2019-08-13 10:22:10 +04:30
Dima Myroniuk
ae67b9c6f8 Update the link of the "Lightspeed Frontier". (#1160)
The old link leads to the site for adults.
2019-08-12 22:12:55 -07:00
Ali-RS
467d7b2f0f Modified TransformTrack.jmeClone() return type to TransformTrack (#1155) 2019-07-30 06:33:08 -07:00
sgold
3fe896300d README.md: 3.2.4 is the latest stable version of the SDK 2019-07-27 13:31:34 -07:00
Lou Hamersly
b864372256 Fix for NPE when running TestGImpactShape via TestChooser (#1151) 2019-07-25 08:08:40 -07:00
Stephen Gold
acdeef54fe
.travis.yml: specify "precise" Linux distro for JDK8 build
Travis's default Linux distro is now "xenial" !
2019-07-24 13:50:36 -07:00
empirephoenix
80aed88f82 fix for NPE when being called from CombinedTexture with null baseImage (#1146)
* fix for NPE when being called from CombinedTexture with null baseImage

* formating only
2019-07-24 09:09:55 -07:00
Lou Hamersly
de092b92bb Wrap potential IOExceptions during native file extraction 2019-07-16 13:40:37 +02:00
travis-ci
e31a047746 [ci skip] bullet: update linux natives 2019-07-12 03:34:03 +00:00
travis-ci
9f51de98a5 [ci skip] bullet: update osx natives 2019-07-12 03:33:47 +00:00
appveyor
e7bf627e9d [ci skip] bullet: update windows natives 2019-07-12 03:31:43 +00:00
sgold
23ee02071e fix for issue #1141 2019-07-11 20:25:37 -07:00
Ali-RS
02ccce08ec
Updated CONTRIBUTING.md (#1139)
* Updated CONTRIBUTING.md

Added "Customs around integration, branching, tagging, and releases" section to contribution guide.

* Clarify that the admonition to squash PRs is directed at integrators
2019-07-11 09:56:05 +04:30
Trevor Flynn
57db8f618f Add support for gltf morph names. (#1100)
* Add support for gltf morph names.

* Fix formatting stuff

* Add morph name to be saved

* Testing changes to gltf plugin

* Review changes

* Fix comments

* Fixes for review

* Remove getMorphNames from Geometry class
2019-07-11 09:51:25 +04:30
Riccardo Balbo
7058439e7d
Merge pull request #1132 from riccardobl/fixfspace
Fix forced colorspace in matdefs working only once.
2019-07-08 09:33:27 +02:00
Sebastian Teumert
0ffc612bfb jme-core: IndexBuffer fixes & API improvements (#1136)
* jme-core: IndexBuffer fixes & API improvements

As discussed in:
https://hub.jmonkeyengine.org/t/indexbuffer-suggestions-improvements-consistency/42022/4

* [Fix] createIndexBuffer(int, int): return IndexByteBuffer as well for
	vertexCount < 128
* [Enhancement] Make put(int i, int value) fluid interface
* [Enhancement] Add relative put(int i) to allow easier chaining (parity
	with other buffer implementations)
* [Enhancement] Add getFormat() to allow setting an IndexBuffer to a
	Mesh directly without type inspection.
* [Fix] Fix WrappedIndexBuffer
	API changes make it possible that IndexByteBuffer is now a valid  type
for outBuf, leverage the new getFormat() method to set the buffer to the
mesh regardless of its type.

* Update VirtualIndexBuffer to @72f8019566fa4d1379caa820c0c9dc000f489444
2019-07-07 20:42:18 -07:00
Lou H
827d4ebd52 Test for issue #1120 - JBullet GImpactShape fall-through (#1137) 2019-07-07 20:40:02 -07:00
travis-ci
1d5fe496e0 [ci skip] bullet: update linux natives 2019-07-04 15:38:33 +00:00
appveyor
69319738e6 [ci skip] bullet: update windows natives 2019-07-04 15:38:00 +00:00
travis-ci
918d90a637 [ci skip] bullet: update osx natives 2019-07-04 15:37:31 +00:00
Stephen Gold
f831301a2a fix for issue #1135 (ConeJoint causes rigid body to disappear) 2019-07-04 08:29:30 -07:00
sgold
2ab0319202 jme3-examples: apply the "dirt_normal.png" normal map where appropriate 2019-07-01 10:10:20 -07:00
Lou H
8856ba7d25 GImpactShape Test Added (#1117)
* GImpactShape Test Added

* GImpactShape Test Updates (WIP)

* Minor tweaks based on feedback

* Minor corrections + documentation added

* Final tweaks
2019-07-01 09:16:05 -07:00
sgold
cff4dec57d README.md: a v3.2.3 SDK was released on 28 June 2019 2019-06-30 11:50:04 -07:00
Riccardo Balbo
e603845fa5 Fix forced colorspace in materials when a matparamtexture value is changed. + unit test 2019-06-26 23:10:18 +02:00