704 Commits

Author SHA1 Message Date
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. 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
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
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
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
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
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
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
javasabr
f354343e47 fixed the NPE with controls 2016-06-05 20:30:21 +03:00
Nehon
3d1a541903 Fixed an issue when resizing the viewport, with a FPP and antialiasing would stop rendering 2016-06-02 18:54:42 +02:00
Rémy Bouquet
29dfff223c proper equal and hashcode for ShaderNodesVariables. 2016-05-14 23:46:21 +02:00
Kirill Vainer
7d4a34f96f build: check file exists before getting text
Conflicts:
	jme3-core/build.gradle
2016-05-03 22:43:55 -04:00
Paul Speed
2fd9da3d50 Merge pull request #487 from Dokthar/joysticks
Joystick detection on linux and more... (v3.1)
2016-04-25 17:51:50 -04:00
Dokthar
256abb38fa joystick : added mapping for two gamepads
- the "GASIA CORP. PLAYSTATION(R)3 Controller"
- the "DragonRise Inc.   Generic   USB  Joystick"
2016-04-25 21:01:00 +02:00
Dokthar
5e594a87d2 joystick : add trim() to each joystick name input 2016-04-25 20:52:04 +02:00
Kirill Vainer
d044ad13e1 Fix issue #479 2016-04-23 15:37:33 -04:00
Kirill Vainer
3353aea546 fix Uniform issue related to material changes 2016-04-20 16:41:01 -04:00
Kirill Vainer
e71cf81b96 J3M: allow static pass lighting to be selected 2016-04-20 16:40:11 -04:00
Nehon
091b8664ad Fixed an issue where Vector3f.NAN constant reference was assigned to an attribute instead of being cloned in AudioNode. 2016-04-17 14:15:48 +02:00
Nehon
7bd2feb416 Made a test for shaderNode based j3md loading 2016-04-11 21:02:16 +02:00
Nehon
c859cf375c Fixed an issue with shaderNodes loading 2016-04-11 20:19:16 +02:00
Kirill Vainer
8d4962d11f fix failing unit test 2016-04-10 23:46:41 -04:00
Kirill Vainer
9d094b222a AudioNode: add setVelocityFromTranslation 2016-04-10 23:25:06 -04:00
Kirill Vainer
2dca1a2732 add AudioListenerState 2016-04-10 23:24:19 -04:00
Kirill Vainer
97a53e0c99 material: add unit test 2016-04-10 23:21:38 -04:00
Kirill Vainer
65b7c205f9 StaticPass: fix spot light 2016-04-10 23:21:05 -04:00
Kirill Vainer
3f5cc4963e FBX: use new loader by default 2016-04-10 23:20:41 -04:00
Kirill Vainer
78b635726a AL: fix crash when device is disconnected 2016-04-10 17:58:36 -04:00
Kirill Vainer
44e568943b fix merge issues 2016-04-10 13:00:15 -04:00
Kirill Vainer
cb61e760ce Merge branch 'master' into BorealFeast-master
Conflicts:
	jme3-core/src/main/java/com/jme3/material/RenderState.java
	jme3-core/src/main/java/com/jme3/renderer/opengl/GL.java
2016-04-10 12:51:19 -04:00
Kirill Vainer
9332a04b18 minor cleanup 2016-04-10 12:38:55 -04:00
Kirill Vainer
f2f748ed7e material: rename PostShadow15 -> PostShadow 2016-04-10 12:26:15 -04:00
Kirill Vainer
5584ca9119 test: add missing test data 2016-04-10 12:23:27 -04:00