5734 Commits

Author SHA1 Message Date
Paul Speed
92b5d40003 Modified BitmapTextPage to always deep clone its mesh since otherwise
BitmapText objects end up sharing them and that's bad.
2016-12-04 20:35:49 -05:00
Paul Speed
4952ad0cb5 Broke out the Serializer's static initializer into a separate initialize()
static method.  This allows servers to completely reset the Serializer's
registry when restarting the server in the same JVM instance.
2016-12-04 16:28:12 -05:00
Paul Speed
a13a3a7f09 Another bitmap text clone fix. The text pages array (the list of the actual geometry of
the bitmap text) wasn't really being cloned... only the elements were.  This meant that
that a cloned BitmapText object would continue to share the meshes from the original.
2016-12-04 15:49:51 -05:00
Paul Speed
735397f16e Another fix for BitmapText cloning where the regular clone() was
completely bypassing the JME cloner framework... and making a bad
clone.
2016-12-04 15:31:30 -05:00
Paul Speed
c1764bc425 Fixed the cloned Letters to use the cloned StringBlock instead of the
original reference.
2016-12-04 14:24:34 -05:00
Paul Speed
da1b7da329 Added a test for cloning BitmapText. 2016-12-04 04:26:41 -05:00
Paul Speed
e879a0e142 Fix for issue #577 StringBlock cannot be cloned with the cloner because
it is package private and the cloner cannot instantiate one directly.
Since it is extremely unlikely (read: impossible) that there would ever 
be shared StringBlock references between BitmapText objects then it is safe 
to just clone it directly.
It is important to note that BitmapText never really did support clone
before and only pretended to... so this wasn't really a regression.
2016-12-04 04:20:55 -05:00
Kirill Vainer
72b9f186ed fix broken bullet native source url 2016-11-24 13:31:59 -05:00
Kirill Vainer
8c4b44941e Fix #550 2016-11-23 22:04:56 -05:00
Nehon
a71fb286f4 Fixed shadow fade and zfar computation as it was breaking shadow border filtering. v3.1.0-beta2 2016-11-20 23:55:47 +01:00
Nehon
69d8e5d13e Fixed an issue where some occluders were wrongly culled out from the shadow map at very steep light angle, and when the view cam was almost align with light direction. 2016-11-20 19:04:53 +01:00
Paul Speed
4919620e61 Improved the "compare result changed" error message to include the most
likely cause of the error.
2016-11-20 07:14:24 -05:00
Nehon
1315af8d52 Changed the minimum value of a float when converting it to half float. It was 5.96046E-8f and it's now 3.054738E-5f. This values seems to be the lowest one before 0 when converting back half to float.
This issue has been revealed in this post https://hub.jmonkeyengine.org/t/pbr-nan-to-half-conversion-errors/37219
The bad minimum was causing erratic data being wrote to the texture when the value was very close to 0, and causing the glitches and even crashes when color values were given as Float.Infinity or Float.NaN.
2016-11-04 20:09:27 +01:00
Nehon
efd47c4347 fixed some javadoc in AbstractShadowRenderer 2016-11-04 17:00:15 +01:00
Nehon
142b006ad6 Fixed post shadow filter for glsl1.5 2016-11-02 09:59:02 +01:00
Nehon
9500227ca7 Defaulted the render back faces shadows in the AbstractShadowRenderer to true to keep the same behavior as in 3.0 2016-11-02 09:26:55 +01:00
Nehon
5495b7d064 Fixed the link to the paper for convertHalfToFloat 2016-10-31 10:02:59 +01:00
Nehon
da5e4a18c7 ShaderNodes now move all the declared extensions at the top of the generated shader source 2016-10-09 20:13:07 +02:00
Nehon
dd8271e8b3 Fixed SpotLight constructor to properly compute the invSpotRange see https://github.com/jMonkeyEngine/jmonkeyengine/issues/563 2016-10-09 10:01:17 +02:00
jjYBdx4IL
cfd491e270 fixes issue https://github.com/jMonkeyEngine/jmonkeyengine/issues/506 : Material->toString() does not prevent/check for possible NPEs 2016-10-06 09:07:40 +02:00
Nehon
95bf9efe9b MikktSpace tangent generator now properly generates the BindPoseTangent buffer when necessary 2016-10-03 23:33:39 +02:00
Rémy Bouquet
7e458e496c Fixed wiki links in the realm.md 2016-09-22 09:13:41 +02:00
Kirill Vainer
09e9c1efa0 Merge pull request #555 from JavaSaBr/master-original
fixed missing Cloneable in the Triangle.
2016-09-11 20:32:17 -04:00
Kirill Vainer
2440fc5a74 Merge pull request #554 from TehLeo/patch-2
Fix for MTR Framebuffers
2016-09-11 15:05:08 -04:00
empirephoenix
bbad454e43 Merge pull request #541 from tonihele/issue-537
Added a cursor cache for LWJGL 2, resolves #537
2016-09-05 16:07:36 +02:00
empirephoenix
7eb9463496 Merge pull request #505 from JavaSaBr/v3.1
fixed the NPE with controls, thanks to JavaSaBr
2016-09-05 16:05:24 +02:00
Rémy Bouquet
769cf36221 Merge pull request #547 from MeFisto94/ios-legacyapplication
Using LegacyApplication in the iOS Harness
2016-08-20 11:59:07 +02:00
MeFisto94
7b0a00b364 Using LegacyApplication in the iOS Harness just like it has been done for Android in 3c56afe 2016-08-20 11:26:41 +02:00
Rémy Bouquet
b42bf7f67e fixed glsl 1.0 version of the postShadowFilter shader 2016-08-12 20:52:47 +02:00
Rémy Bouquet
056dbdf981 Changed the int value of EdgeFilteringMode.Nearest from 0 to 10 as it seems a define with a 0 value is now ignored. 2016-08-12 18:29:36 +02:00
Rémy Bouquet
a7edef3a06 fixed transparent shadows on mac. 2016-08-12 18:25:56 +02:00
Toni Helenius
52c0a35525 Added a cursor cache to avoid cursor disappearing and app crashing when too many cursors are created 2016-08-09 19:56:12 +03:00
Riccardo Balbo
c92009a40a Use texture() instead of texture2D() in bloomExtract15 and bloomFinal15 2016-07-19 18:36:47 +02:00
Rémy Bouquet
e4a8b8d91c Merge pull request #530 from tiatin/v3.1
v3.1 - Added ability to set framebuffer image format used in FilterPostProce…
2016-07-13 23:01:15 +02:00
tiatin
f65f0a7ee8 Added ability to set framebuffer image format used in FilterPostProcessor.
https://hub.jmonkeyengine.org/t/ability-to-change-image-format-for-filterpostprocessor/36379
2016-07-13 22:17:22 +03:00
Julien Gouesse
4ba4da2e31 Merge pull request #525 from saloisio/v3.1
NewtMouseInput accepts null cursor
2016-07-07 21:00:21 +02:00
saloisio
05c39990ca NewtMouseInput now resets mouse cursor to default image when inputManager.setMouseCursor(null) invoked 2016-07-07 14:38:35 -04:00
Rémy Bouquet
fae07c9c71 Merge pull request #522 from MeFisto94/v3.1_HWSkinning
Also applying PR #501 on 3.1
2016-07-04 18:17:20 +02:00
Rémy Bouquet
eefc17428c Merge pull request #501 from MeFisto94/HwSkinningFixV02
Fixes #499: Fix Hardware Skinning in 3.1
2016-07-04 17:07:29 +02:00
Julien Gouesse
75c3d61f8f Merge pull request #520 from saloisio/v3.1
NewtMouseInput no longer auto-centers mouse cursor
2016-06-30 17:42:32 +02:00
saloisio
d0175a77b6 Merge branch 'v3.1' of https://github.com/saloisio/jmonkeyengine into v3.1 2016-06-30 11:22:07 -04:00
saloisio
9b8c27a0fb Removed auto centering of mouse cursor 2016-06-30 09:42:18 -04:00
Paul Speed
02c5d9d414 Merge pull request #517 from tiatin/v3.1
Garbage collection and list iteration improvements for v3.1
2016-06-26 21:47:13 -04:00
tiatin
d8529573e4 Changed overrides from ArrayList to SafeArrayList for GC and iteration performance reasons. Fixed bug in SafeArrayList.equals(). 2016-06-26 15:08:12 +03:00
tiatin
9b0422fc3c Added iteration using iterator, if List is not ArrayList.
Reason for this is that if List is LinkedList, complexity for get(int i) is O(n/4).
2016-06-26 15:08:09 +03:00
tiatin
93c2fd1989 Changed iteration over List from for-each to manual iteration.
For-Each loop creates Iterator object and uses hasNext and next methods, which are slower, than manual iteration. Also allocating Iterator object increases work for GC.

Forum post: https://hub.jmonkeyengine.org/t/iteration-over-list-performance-improvement/36250

See test 9 for more details: http://www.devahead.com/blog/2011/12/coding-for-performance-and-avoiding-garbage-collection-in-android/
2016-06-26 15:08:06 +03:00
javasabr
be66436745 added warning 2016-06-26 08:52:38 +03:00
empirephoenix
2c3d94a166 Merge pull request #504 from davidB/v3.1
nifty-gui: upgrade from 1.4.1 to 1.4.2, available on maven central wi…
2016-06-22 16:19:51 +02:00
Paul Speed
a2efd1323f Merge pull request #509 from davidB/patch-1
travis: disable uploadArchives
2016-06-13 02:24:45 -04:00
David Bernard
758fdcf394 travis: disable uploadArchives
without uploadArchives no more snapshots, but you can release (beta2,...)
2016-06-12 21:53:57 +02:00