6881 Commits

Author SHA1 Message Date
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
Stephen Gold
fca8bcf470 make native Bullet the default for jme3-examples (instead of JBullet) 2019-06-26 12:33:34 -07:00
Remy
adb88dcaeb when the image object has a ColorSpace value we pass it on, else we leave it at the default value. fix for #1106 (#1110) 2019-06-26 09:26:28 -07:00
sgold
23759820e5 fix GImpact scaling in jme3-jbullet: issue #1120 2019-06-20 11:29:33 -07:00
travis-ci
12e513c8ee [ci skip] bullet: update linux natives 2019-06-20 14:47:01 +00:00
travis-ci
ad6232c297 [ci skip] bullet: update osx natives 2019-06-20 14:44:47 +00:00
appveyor
5b9693f000 [ci skip] bullet: update windows natives 2019-06-20 14:43:36 +00:00
sgold
56d37cb866 fix GImpact scaling in jme3-bullet (native Bullet) 2019-06-20 07:34:38 -07:00
Stephen Gold
2cd3dac543 jme3-bullet fix for issue #1125 (physics shapes don't match TerrainQuad) 2019-06-18 12:30:54 -07:00
Stephen Gold
df02333cd2 add test for issue #1125 (heightfield shapes don't match TerrainQuad) 2019-06-18 12:18:50 -07:00
Stephen Gold
5586c28c95 fix for issue #1116 (NPE in TerrainGridAlphaMapTest) 2019-06-18 10:05:00 -07:00
Lou H
1687d34eb7 #1107 - Javadoc warning cleanup & Fix for JDK 11 Javadoc NPE (#1118)
* Fixed "broken" @see tags causing Javadoc NPE in JDK 11

* Updated comments to clear Javadoc warnings in JDK 11

* Added @Deprecated annotations to clear JDK 11 Javadoc warnings
2019-06-18 09:06:48 -07:00
Lou H
1f3245b237 #1121-updateBound() call for PQTorus geometry updates (#1122)
* #1121-updateBound() call for PQTorus geometry updates

* World bounds test added for #1121

* World bounds test enhancements for #1121

* Updated test comment
2019-06-18 09:04:26 -07:00
Stephen Gold
a91bcfd678 fix for issue #1127 ("Reset" action in TestHoveringTank) 2019-06-18 08:50:49 -07:00
Stephen Gold
a4b22e4b37 fix for issue #1126 (TestHoveringTank assertion failures) 2019-06-18 08:36:44 -07:00
richardTingle
04f771f7f9 Issue 1113. Allow for Particle emitters that constantly have their particlesPerSec set to still emit (#1114)
Previously if particlesPerSec was constantly set timeDifference could never grow large enough to emit a particle as timeDifference was reset to zero each time. This fixes that problem while still ensuring that timeDifference can't have grown very very large (leading to huge numbers of particles being emitted) by capping the timeDifference at the point where its just about to emit a particle.

Discussed at https://hub.jmonkeyengine.org/t/particle-emitter-cannot-emit-particles-if-its-emissions-per-second-is-updated-every-frame/41930/2
2019-06-08 17:12:04 -07:00