5925 Commits

Author SHA1 Message Date
Paul Speed
50b2f76bdf Modified the FieldSerializer to support classes with non-public no-arg constructors.
Finally we can end the tyranny of exposing dangerous public constructors in the
name of a cheap serialization.
2015-12-24 03:29:36 -05:00
Daniel Johansson
69c17d72c8 Reverted statistics code for tracking number of lights in the scene. Not counting correctly. Maybe this can be added back in later on. 2015-12-23 20:49:25 +00:00
Daniel Johansson
0354f976e9 Merge remote-tracking branch 'origin/master' 2015-12-22 11:11:31 +00:00
Daniel Johansson
25b9691e32 Added support for toggling lights on and off via Light.setEnabled(boolean). This implements #393
This commit also contains some minor changes to TestManyLightsSingle which now has a key trigger (L) for toggling lights on and off.
2015-12-22 11:10:47 +00:00
Daniel Johansson
67eb998ef4 Added numLights to statistics. This tells us how many lights are left to render after filtering has occurred. Also did some tidy up of javadoc in RenderManager. 2015-12-22 10:55:43 +00:00
Daniel Johansson
e0c24cd73a Added a guard to ensure setSinglePassLightBatchSize() is set to a minimum of at least 1. 2015-12-22 10:37:08 +00:00
Paul Speed
98194e83aa Modified the RPC layer to pass exceptions over the wire
if they are serializable.  They are still wrapped but at
least the original exception is intact if callers want to 
peel it out.
2015-12-22 05:33:44 -05:00
normen
fd4f9789cc Merge pull request #391 from NemesisMate/patch-5
Fixed BetterCharacterControl "flickering" when not moving.
2015-12-18 16:54:39 +01:00
NemesisMate
abdd739437 Fixed BetterCharacterControl "flickering" when not moving.
Sometimes, when the BetterCharacterControl is not moving, it flickers due it physics being always active. The reason for it being always active is that on the prePhysicsTick method it always set the rigidBody's linear velocity (and the method PhysicsRigidBody.setLinearVelocity(Vector3f) reactivates the physics each time is called).

The fix consist on just comparing if the current velocity and the setting one aren't the same and, thus, not setting it (using ZERO_TOLERANCE instead 0 to best results).
2015-12-18 12:11:54 +00:00
NemesisMate
19577c3288 Fixed a possible bug in TextureAtlas.java
It seems that the variable was the wrong one when adding the normal texture to the atlas.
2015-12-15 19:13:12 +00:00
Nehon
ab76585ff2 More fine tuning calibration of roughness, and various visual fixes for PBR 2015-12-12 15:26:42 +01:00
Nehon
9e1a1f6131 PBR, fixed the way metallic material base color was handled for indirect lighting.
Also calibrated roughness so that it matches Substance painter renderer.
2015-12-08 23:57:08 +01:00
Alrik
f9f3c0185e Merge branch 'master' of https://github.com/jMonkeyEngine/jmonkeyengine.git 2015-12-07 10:04:54 +01:00
Paul Speed
b006204c0f Various warning-related cleanups. Added @Overrides
and removed some manual unboxing.
2015-12-05 22:14:36 -05:00
Paul Speed
3189323c2f Converted manual array + list management over to just use SafeArrayList.
It was a class added after this code.
2015-12-05 20:00:52 -05:00
Paul Speed
46794e251d Allow the caller to override the axis' default dead
zone configured at startup.
2015-12-05 06:27:17 -05:00
Paul Speed
2a2c71dadf Modified to pay attention to the joystick axis'
dead zone if it is larger than the globally defined
dead zone.
2015-12-05 06:26:55 -05:00
Paul Speed
84ccd71873 Added additional information to the range check exception. 2015-12-05 04:16:56 -05:00
Paul Speed
14e84a4dd7 Added a constructor that just takes the service's
default channel.
2015-12-05 04:15:48 -05:00
Paul Speed
99742a76f2 Added additional trace logging. 2015-12-05 04:15:28 -05:00
Paul Speed
15afcfb735 Added the error information to the toString() if
there is error information to show.
2015-12-05 04:05:49 -05:00
jmekaelthas
8958459ef9 Bugfix: fixed a bug that caused NURB lines did not use their proper
resolution.
2015-12-01 22:31:54 +01:00
jmekaelthas
7e185b25df Bugfix: fixed a bug that caused Bezier objects to use only the vertices
of its first bezier line (out of many).
2015-12-01 20:50:01 +01:00
jmekaelthas
153cb27d78 Bugfix: fixed error in Inverse Kinematics constraint (animations with
these constraint should look better now, although not yet perfect ;).
2015-11-29 19:34:03 +01:00
Nehon
1276dc583e Point Of Interest light probe blending start of implementation : basic structure, probes selection and blend factor computation. 2015-11-29 16:09:32 +01:00
Nehon
9fd90ab799 Merge branch 'master' into PBRisComing 2015-11-26 21:00:39 +01:00
Nehon
6b262e56c8 Fixed the javadoc fixes :D 2015-11-26 21:00:27 +01:00
Nehon
e5608d6e38 Merge branch 'master' into PBRisComing 2015-11-26 20:48:01 +01:00
Nehon
2648f67b34 Javadoc in RenderManager : Fixed some typos and added some for light mode methods. 2015-11-26 20:47:44 +01:00
Nehon
52154e1cea Introduced a LightProbeBlendingStrategy, that can be passed to the default light filter upon construction.
It sets how multiple LightProbes will be blended or selected for the final render.
This is meant to be highly customizable as there are already several strategies with pros and cons in the industry and some may arise in the future.
2015-11-26 20:45:07 +01:00
Kirill Vainer
d5ba6b92bd Merge pull request #384 from Dokthar/fix_physicsRigidBody_read
fix #383 : in PhysicsRigidBody the old statement in read() (l.741) was always false
2015-11-22 12:49:33 -05:00
Paul Speed
197ed33c9e Added some missing @Overrides and finals. 2015-11-22 05:23:24 -05:00
Paul Speed
388a8a8bd7 Added a bunch of lower level logging that can be
used to either watch traffic or debug serialization
issues, etc..
Went ahead and instrumented the service manager while
I was at it... and fixed a potential NPE in the AbstractService's
toString() method.
Fixed a bug in the DefaultClient where it couldn't be shutdown
if attempted before the services had been started.
2015-11-22 05:13:12 -05:00
Dokthar
00c687b4d8 fix #383 : in PhysicsRigidBody the old statement in read() (l.741) was always false 2015-11-21 13:06:30 +01:00
Nehon
fcff7f6933 Merge branch 'master' into PBRisComing 2015-11-20 16:30:26 +01:00
Nehon
022899c199 Changed the way texture previews are done in the SDK.
All texture loading is now done on JME's thread and not on the awt thread anymore to avoid to stall the UI when loading big textures.
2015-11-20 16:29:08 +01:00
Julien Gouesse
361cb0893a Merge pull request #379 from davidB/fix_opengl3
jogl: use pixel unit for window's dimension (fix issue on MaxOS X)
2015-11-20 14:04:32 +01:00
Nehon
cedb4d3c3e Merge branch 'master' into PBRisComing 2015-11-20 09:00:23 +01:00
Nehon
50a9a8636b HDRLoader, reverted the change that loaded the HDR files in sRGB space, since the specs says that data is in linear space for this format. 2015-11-20 08:59:42 +01:00
Nehon
ec8e7d6713 The LightProbe is now treated apart from other lights in the rendering pass as the Ambient light is and is always rendered on the first pass if there are several passes. 2015-11-19 22:33:45 +01:00
Nehon
6c2396f023 Used the proper Lod finction in the reflect debug material 2015-11-19 19:05:53 +01:00
Nehon
f010f1be59 Fixed an outstanding issue with PBR lighting that was screwing reflection with normal maps. 2015-11-19 19:05:20 +01:00
Nehon
31d271d972 Changed the way indirect lighting is toggled on or of, there was silly problems with previous commit. 2015-11-19 19:04:14 +01:00
Nehon
e438ad0928 LightProbe maps can now be re rendered in the engine and in the SDK 2015-11-19 11:39:41 +01:00
Nehon
20ec2f0797 Merge branch 'master' into PBRisComing 2015-11-18 15:07:48 +01:00
Nehon
822d327236 Image now properly save it's colorSpace when saved 2015-11-18 15:06:58 +01:00
Nehon
d92171b153 Fixed LightProbe Saving and Loading 2015-11-18 13:54:26 +01:00
Nehon
667afa9ef3 SDK : the probe radius is now a dashed lines cirle 2015-11-18 10:34:38 +01:00
Nehon
aa067ef60d Merge branch 'master' into PBRisComing 2015-11-17 14:55:36 +01:00
Nehon
ad4634ce04 .hdr files are now loaded in sRGB color space as there is no reason it should be loaded in linear space. 2015-11-17 14:54:59 +01:00