5746 Commits

Author SHA1 Message Date
Riccardo Balbo
1ae6e98d05 Fix MeshCollisionShape crash when loaded from j3o: always create BVH before scaling. 2017-02-06 14:59:30 +01:00
Nehon
69cd160956 Fixed an issue where ParticleEmitter had NaN bounds during the first update when added to the scene graph during the update loop v3.1.0-beta3 2017-01-26 21:10:49 +01:00
Nehon
789daa6295 Fixed warning that were coming out of the particle.j3md. Also fixed the preshadow technique 2017-01-24 20:17:19 +01:00
Rémy Bouquet
659ed8fd23 Merge pull request #602 from stephengold/v3.1
fix errors in how vector projection is calculated
2017-01-20 23:14:15 +01:00
Stephen Gold
f3e2925bd8 fix errors in how vector projection is calculated 2017-01-20 13:08:28 -08:00
Rémy Bouquet
5d2c89f040 Merge pull request #599 from stephengold/v3.1
CapsuleCollisionShape: warn about scaling only if it's not identity
2017-01-17 21:31:31 +01:00
Stephen Gold
ac8eb4d40a CapsuleCollisionShape: warn about scaling only if it's not identity
same diff riccardobl committed to 'master' on Jun 20, 2016
2017-01-17 11:42:21 -08:00
Nehon
aae6170cc5 Fixed MikktSpaceTangentGenerator that was not replacing existing Tangent buffers on the mesh. That could cause crashes when the old tangent buffer did not have the same amount of components 2016-12-30 16:53:09 +01:00
iwgeric
7ecb81c230 Update AndroidLocator to allow assets to be stored in Android assets, drawable, or mipmap directories.
Texture assets can now be stored in Android Drawable and Mipmap directories.  Allows Android to automatically select the closest matching image asset for the actual device configuration (ie. lower resolution textures for lower-end devices).  Search order is:  assets -> drawable -> mipmap.  First match found is returned.

(cherry picked from commit c219ce1)
2016-12-29 00:41:02 -05:00
Paul Speed
63e8c9c485 Convert Skeleton and Bone over to use the JME cloner system for cloning...
this should do automatic fix-up and hopefully make bones attachments work 
properly again in clones.
2016-12-13 06:03:43 -05:00
empirephoenix
975954fb17 Merge pull request #575 from Fadorico/upstream3.1
Write/read the width and height of a quad (3.1)
2016-12-07 13:01:26 +01:00
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
Fadorico
e3bd122519 Write/read the width and height of the quad 2016-11-24 18:16:48 -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