5376 Commits

Author SHA1 Message Date
Paul Speed
d4c94bc7c0 Added a vector4f based populate method. 2016-01-30 04:32:19 -05:00
Kirill Vainer
c39788d4fa Merge pull request #402 from MeFisto94/Issue373
Fixes #373 - Faulty Loggings of a SphereCollissionShape when using na…
2016-01-26 19:52:59 -05:00
Paul Speed
8cfe537625 Fix clone to account for the update list added for update
optimization.  The updateList was cloned also and needs to
be cleared out and the update flag reset as if freshly
initialized.  Thanks for lightbringer for pointing out the
problem and solution.
2016-01-26 19:28:23 -05:00
MeFisto94
e776967c23 Reverted Changes and fixed it the way it was done in CapsuleCollissionShape (See Commit f836b26)
"SphereCollisionShape: warn about scaling only if its not identity"
2016-01-26 15:53:53 +01:00
Paul Speed
c6768dc724 Added some additional finest logging. 2016-01-23 05:38:23 -05:00
MeFisto94
5064552905 Fixes #373 - Faulty Loggings of a SphereCollissionShape when using native bullet 2016-01-21 15:35:20 +01:00
Paul Speed
b28f7e9293 Removing a println I had for testing something else.
Added some gating to the endpoint closure to try to delay
some NPE I'm seeing caused be a race condition somewhere when
client and server in the same VM and shutting down at the same
time.
2016-01-16 04:24:02 -05:00
Paul Speed
ac672df63a Fixes to keep the kernel adapter threads from hanging.
Closing the underlying kernel didn't wake up any readers
and so the read() operation in the adapter was never returning.
KernelAdapter.close() was modified to call join() after closing
the underlying kernel so that the method won't complete until
all of the threads are done.
Then the kernels were modified to wakeup the readers (and this
is now standardized in a base class method) so that they don't
hang forever.
2016-01-16 03:28:10 -05:00
jmekaelthas
84a38d1363 Bugfix: fixed an error that caused bad faces triangulation in some
cases.
2016-01-13 20:02:32 +01:00
Paul Speed
696b19467f Merge pull request #401 from Pesegato/master
Added support to Logitech F310 with Xinput for Windows 10
2016-01-08 09:29:58 -05:00
Pesegato
1df3c204f2 Added support to Logitech F310 with Xinput for Windows 10 2016-01-08 10:06:49 +01:00
Paul Speed
c38a050f61 Added some trace level logging to field serializer. 2015-12-31 04:28:03 -05:00
Paul Speed
ac5cc5312b Added some additional information to the bad constants exception.
Only of marginal utility but it was a nice sanity check.
2015-12-31 04:27:05 -05:00
Paul Speed
a0569b340d Fixed a bug caused by generic registration of the enum class
but it could catch the user unaware for any registered non-leaf
class.  When a class has a field of a specific final type then
the type information is implicit in the outer object... and
the proper serialization information can be written.  It is then
sometimes useful to register a generic serializer for something
like Enum to catch these cases.  However, there are many times where
the type cannot be implicitly known and so must be specifically
registered.  Prior to this fix, having a generic Enum serializer
registered would cause problems on the reading end because it
wouldn't know what real enum class to use.
Now we catch the issue on the write side where enough information
is known to properly report this to the user.  Only a few Bothans
died to bring this info.
2015-12-31 04:26:22 -05:00
Paul Speed
05587ab387 Modified to avoid closing the connection if it is already
closed.  Certain race conditions can cause this to happen
during whole-server shutdown.
2015-12-31 04:23:11 -05:00
Kirill Vainer
7bf4949e83 Revert native loading changes 2015-12-29 00:11:31 -05:00
Kirill Vainer
2ca55c8b3a LWJGL3 improvements
* Added key remapping for GLFW key constants
 * Rename AppSettings.getGammaCorrection() to isGammaCorrection()
 * Use LWJGL3 artifacts from maven
 * Minor compatibility changes for LWJGL 3.0.0b
 * Fixed some minor bugs in LwjglWindow
2015-12-29 00:00:39 -05:00
Paul Speed
6cb691592d Fixed two potential race conditions in the DefaultClient.
In one case, closing a client while it was already closing on
another thread (say because the server is shutting down and
you are exiting at the same time) would cause an NPE if you
caught it just right.  Now the thing checking and setting the
connection state is synchronized to avoid the race.

The other more subtle one was caused by sending out the 'connected'
event before the services were all started.  It's quite common for
application code to start doing stuff when the 'connected' event comes
through like sending messages and stuff.  If the services hadn't been
fully started then even the serializers might not be registered yet...
and that = bad.

Now the client doesn't send the 'connected' event until the services
are started.  This should be safe and one could argue that it's more
'correct' but there is some small chance that it screws up certain
use-cases.  However, if a real use-case comes up that's not solved by
a service then we can always add some kind of prestarted event.
2015-12-26 17:56:31 -05:00
Paul Speed
d8d7d061f6 Small formatting change. 2015-12-26 17:51:47 -05:00
Paul Speed
0bfabacef6 Small formatting change. 2015-12-26 17:49:37 -05:00
Paul Speed
d241a9a235 Added a couple more bracketing log messages just to confirm
my own sanity.
Some small formatting changes.
2015-12-26 17:45:58 -05:00
Paul Speed
ab0628c070 Fixed a typo in an exception message. 2015-12-26 17:42:15 -05:00
Kirill Vainer
72423b682e Merge pull request #392 from NemesisMate/patch-4
Fixed a possible bug in TextureAtlas.java
2015-12-26 15:36:41 -05:00
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
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
6b262e56c8 Fixed the javadoc fixes :D 2015-11-26 21:00:27 +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
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