94 Commits

Author SHA1 Message Date
rac..om
8cdef21af6 upgraded nifty and nifty-default-controls to nightly build of 2011-03-24. Also fixed the AwtMouseInput and removed some ununsed imports. The com.jme3.niftygui.InputSystem has been changed as well to correspond with the new Nifty way of working with mouse events. It now uses the new MouseInputEventQueue and the new NiftyMouseInputEvent.
There is still an issue with the mouse buttons besides the first mouse button. These should be picked up by nifty, but for some reason are not triggering a MouseButtonEvent. This is something Kirril will need to take a look at.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7114 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-25 21:59:52 +00:00
PSp..om
5439dbc2a9 Made the UDP port constant separate from TCP to allow
for more interesting testing with fewer code changes.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7108 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-24 19:34:07 +00:00
PSp..om
7e3020fd07 Forgot to actually check the udp port for server
creation... now it properly disables UDP for -1.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7107 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-24 19:31:30 +00:00
PSp..om
73305755bc Modified so that a -1 UDP port completely disables UDP.
Client and server should match or bad things happen and it
might be worth adding this to the connection negotation
as a validation.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7106 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-24 19:26:09 +00:00
Kae..pl
a343fef6ea Fix to bezier curve length computation.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7100 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-24 11:41:50 +00:00
Kae..pl
b17d5d3706 Bugfix: missing break might have caused problems with curves interpolations.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7099 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-24 10:32:09 +00:00
Kae..pl
46785739a4 Small fixes and support for closed NURBS surfaces.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7098 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-24 10:08:06 +00:00
mul..va
66f5e2c1b6 URL: http://jmonkeyengine.org/groups/contribution-depot-jme3/forum/topic/missing-mouseevent-settime/
Set event time for MouseEvent

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7097 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-24 10:02:25 +00:00
rem..om
1906af7d3e Changed alpha value of output color to 1 to avoid problems with screenshots
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7096 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-24 09:42:57 +00:00
sha..rd
9b84a79811 jME3
* RenderManager will reload "shader" boolean on each invocation of render(), since Renderer might not have proper capabilities set before canvas has been attached

jMP
 * Fixed some illegal calls in SceneApplication

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7095 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-24 04:17:16 +00:00
Kae..pl
a9a7d2d4de Basic support for NURBS curves and surfaces added.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7089 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-23 20:03:17 +00:00
PSp..om
b641b5670c Fixed stupid buffer copy bug partially caused by some
last minute shifts in APIs.  Anyway, outbound TCP
broadcasts work again and are more efficient since the
Kernel callers can better control when their message
buffers are copied (in this case it isn't necessary so
we save a buffer copy).


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7088 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-23 17:45:35 +00:00
PSp..om
c552080030 Fixes for the now gone local UDP port.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7087 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-23 17:25:56 +00:00
PSp..om
862d2729f8 Pull the local UDP port from the ethereal set. The previous
way made the caller specify a local port due to an unusually
persistent bit of ancient lore lodged in my brain.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7086 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-23 17:25:12 +00:00
PSp..om
f6d070afe6 A crude but working chat client and server using swing
on the client (could be converted to nifty someday).
Simple but lets users test UDP or TCP messaging.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7083 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-23 07:52:43 +00:00
PSp..om
6ee8fb646c HostedConnection can now supply the Server instance
that is hosting it.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7082 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-23 07:35:21 +00:00
PSp..om
35e19c1667 Applied the null filter fix to the UDP kernel that
has already been applied to the TCP kernel.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7081 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-23 07:34:56 +00:00
PSp..om
6895e1e709 Pass the server name and version on through to the overloaded method.
Cut-paste typo.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7080 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-23 07:04:56 +00:00
mul..va
26adc4f487 Add missing copyright paraphrase of Curve class
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7079 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-23 04:58:34 +00:00
sha..rd
61aea1e2c5 * Big refactoring of LWJGL display system, mainly to support updating the main loop without a render context or input devices being available.
* Added test that demonstrates above functionality, by starting Application without attaching the canvas, and then constantly attaching and detaching canvas from a frame.
 * Deleted deprecated methods in JmeContext 
 * Deleted deprecated class LwjglJoyInput
 * Audio renderer will not attempt to initialize OpenAL twice if already initialized

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7078 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-23 03:48:37 +00:00
sha..rd
d9822dd92e * Created test for (non-existent) safe canvas
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7076 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-23 00:16:11 +00:00
nor..67
0925a6ca51 - add android build to main build file
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7074 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-22 02:08:39 +00:00
nor..67
b2e0ae582c - remove defect golem game
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7073 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-22 01:28:48 +00:00
PSp..om
82b8cebc16 Unwinding a bit of the Message vs. Message conundrum
to give new API users a proper extension point for their
own messages. (forgot this file in the last commit)


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7070 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-21 23:34:48 +00:00
PSp..om
0fecd032df Unwinding a bit of the Message vs. Message conundrum
to give new API users a proper extension point for their
own messages.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7069 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-21 23:34:13 +00:00
PSp..om
ec7431e0f1 Received messages now have their reliability flag
set properly based on how the message was received.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7068 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-21 23:25:19 +00:00
PSp..om
16c6b13564 Fix client message listeners threading. They may be
called by either the UDP or TCP thread but it will
not be at the same time.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7067 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-21 23:06:27 +00:00
nor..67
34863f926e - add some bullet javadoc
- remove deprecated bullet classes

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7065 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-21 13:12:33 +00:00
Kae..pl
7aae9615ca Calculation of Bezier curve's length added.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7064 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-21 13:07:55 +00:00
Kae..pl
ff5db41a0e A method that returns the length added to curve.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7063 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-21 11:45:00 +00:00
Kae..pl
4c1fd5ddbf The light's name added.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7062 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-21 11:44:33 +00:00
nor..67
974f48a92a - add BrickTower test
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7061 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-21 03:21:20 +00:00
nor..67
e0e539c8bd - fix physics debug view rogue meshes by adding mesh.getFloatBuffer(Type.Position).clear()
- make CollisionShapeFactory use not world translation but translation relative to given parent
- add CollisionShapeFactory test


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7060 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-21 01:48:19 +00:00
mul..va
d758929f15 URL: http://jmonkeyengine.org/groups/contribution-depot-jme3/forum/topic/posterizationfilter-shader-fix-for-mac/
PosterizationFilter compilation error fix for Mac

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7058 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-20 12:13:49 +00:00
mul..va
64a404a939 URL: http://jmonkeyengine.org/groups/contribution-depot-jme3/forum/topic/crosspatchfilter-fails-on-mac/
CrossHatchFilter uniform types from int to float

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7057 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-20 12:10:39 +00:00
rem..om
b68e56c5bf MeshLoader catch AssetNotFoundException when trying to locate the .material of a model
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7056 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-20 08:55:42 +00:00
sha..rd
de14f87e8b * Ported TestMessages to new SM
* Mesh.deepClone() will no longer keep old collision tree

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7050 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-19 22:47:35 +00:00
PSp..om
b46a09066d Updated the Endpoint interface to define a close() method
that can optionally flush the queued messages.  Modified
DefaultServer to close-with-flush when kicking a client
so that the disconnect message actually gets to them.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7049 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-19 22:07:19 +00:00
PSp..om
0d23903830 More comments on restrictions to future thread pooling
implementations.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7048 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-19 21:46:52 +00:00
PSp..om
4091a01c91 Modified the default server implementation to enforce my
own threading rules... it's sort of heavy-handed but
given the separation of the reliable and unreliable
implementations (and the inability to really know how
they are threading from here) this is the safest way and
doesn't seem to really affect throughput.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7047 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-19 21:37:02 +00:00
PSp..om
b1e52b865a Added some comments about the multi-threaded nature
of message event dispatch.  This is one of the reasons
I thought the existing services need to be checked for
'correctness' re: multithreading.  Even in the current
implementations, a message listener may be called by
different threads.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7046 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-19 21:21:06 +00:00
PSp..om
382ca44941 Added a count-down latch to keep track of the connecting
state so that if a caller creates a client then immediately
starts sending message, we can block until the connection
is really established.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7044 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-19 17:26:08 +00:00
PSp..om
a14df8a68f added disconnect information to the client state listener
so that clients that care can know why they were booted, etc.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7043 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-19 17:13:58 +00:00
PSp..om
1871d02b7d Fixed a port typo after all the cutting pasting and
fixing last night.  UDP connection now setup with
the proper remote UDP port.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7042 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-19 15:44:42 +00:00
PSp..om
b6b6175866 Send the version information with the client registration
and kick the client if they don't match.  Need to fix some
other things before the reason actually makes it to the
client before the socket is closed... but at least they'll
know something is wrong.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7041 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-19 07:31:58 +00:00
sha..rd
3087235def * RMI system much more tolerant of bad data now (will display warning in log instead of crashing)
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7040 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-19 07:16:21 +00:00
PSp..om
5faa1f08fe Added the rest of the game name and version stuff... still
doesn't validate with it but at least the client and server
can be setup now.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7039 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-19 07:08:34 +00:00
PSp..om
dda3e4c2a0 Real fix for the client UDP problems and removed my long
winded and erroneous comment now that we have point-to-point
connections again.
Also committing the other classes to which I started adding
game name and version... unfinished but needed for the other
fix.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7038 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-19 06:47:46 +00:00
PSp..om
17ecd6f0c9 Committing something for testing... may revert.
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7037 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-19 06:42:33 +00:00
PSp..om
b73f71aeff Updated to use localhost instead of my hard-coded host
and modified to be able to test unreliable throughput.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7036 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
2011-03-19 06:31:37 +00:00