146 Commits

Author SHA1 Message Date
Nehon
b218f4104e Forgot to commit the change in the Cornell box model 2016-03-17 18:05:53 +01:00
Nehon
dff4befafb Added an option to not render backfaces shadows with the shadow renderer and the shadow filter. It's the default for the renderer but not for the filter as it may have some edges artifacts. 2016-03-17 17:58:41 +01:00
Nehon
32be69f3e6 Remove a lot of duplicate code for shadows 2016-03-17 14:34:18 +01:00
Nehon
26719e0047 Fixed sign post material and adjusted ambient lights for the spot lights tests 2016-03-14 20:30:42 +01:00
Dokthar
d9f489d8dd removed unnecessary changes 2016-03-12 13:55:39 +01:00
Dokthar
3e0b838324 fix NPE when launching the hovering test with native bullet 2016-03-12 13:50:26 +01:00
Paul Speed
eb2e2f4cdc Adding @Override to cloneForSpatial() methods in examples. 2016-03-11 05:45:18 -05:00
Paul Speed
10947e8b50 Modified the JmeCloneable's clone() method to be jmeClone() so that
implementing objects will still be able to keep a regular public
clone() method that may do their own selective deep cloning.  This
allows explicit demarcation between the normal 'user' facing clone()
and the two step cloning process used by Cloner.

Specifically, this will let Spatial continue to have a clone() method
that operates as it does today... with its new guts essentially calling
a properly configured Cloner.
2016-03-10 04:25:43 -05:00
Paul Speed
8bc2348046 Removed some commented out code I forgot to remove. 2016-03-09 00:59:51 -05:00
Paul Speed
90af571f76 Added a test/demo showing how to use the cloner with various examples
of the kinds of classes it can work with.
2016-03-09 00:59:21 -05:00
Paul Speed
bdc3ff8434 Fixed a bug in server initialization related to serializer registration.
Lowered the logging level so that these both spew all of the lowest
level network logging.  Useful for seeing what's going on and finding
issues.
2016-03-07 17:33:31 -05:00
Paul Speed
57bcb3967f Fix the test chooser to not instantiate the class if it's just
going to call it's static main method anyway.  Also, call the static
main method on the class instead of an instantiated object.
2016-03-07 16:35:15 -05:00
john01dav
f9a9839228 Added enqueue runnable 2016-02-14 15:16:45 -06: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
Paul Speed
2c337123a9 Added a test/example of running a client and a server in the
same JVM.  a) this makes a good example of self-hosted style
LAN multiplayer games, and b) it causes the serialization bug
to show up so I can fix it.  (Already fixed it and that commit
will be next... it's almost like TDD.)
2015-11-15 02:15:30 -05:00
Paul Speed
e832ad5c94 Added an isRunning() method so that other classes can
check if the server is still running.
2015-11-15 02:14:26 -05:00
Paul Speed
17df399f68 Commented out the message class serialization and left
a comment as to why: in 3.1 there is a default service
that automatically does this on clients.
2015-11-15 02:13:58 -05:00
Paul Speed
cea36ffc47 Added some more client-side error and connection handling
to make a more complete example.  It should now be relatively
well behaved through all normal shutdown paths.
Modified the server to gracefully close the client connections
when shutting down rather than just letting the sockets die.
2015-11-15 01:53:32 -05:00
Paul Speed
38fe771ed8 Modified the client state messages to include the chat
instance in case we add a multi-client test.
2015-11-15 01:22:17 -05:00
Paul Speed
9e80d8a7aa Beefing up the client server tests a little to add
some listeners and to better report what's going on to the
console.  This is in prep for making a combined test.
2015-11-15 01:20:28 -05:00
Kirill Vainer
500f57a64f AssetManager: set locator path only once per thread 2015-09-14 23:19:43 -04:00
Kirill Vainer
7659a7b986 TestCustomAnim: fix crash when enabling HW skinning 2015-09-14 23:03:08 -04:00
Kirill Vainer
1aaf806c65 test: fix crash due to deprecated material 2015-09-14 23:00:55 -04:00
Nehon
6d1ab7af65 Redesign of the frag part of unshadedNodes so it's more modular, and can be properly used as GLSL 1.5 shader.
Added a stress test for unshadedNodes.
Changed the name of the texture parameter to textureMap in TextureFetch shaderNode as it was conflicting with the texture function used to fetch a texel from a a texture in glsl 1.5
2015-07-05 23:43:38 +02:00
Nehon
6d3377a2a8 Fixed Parallax without normal map in lighting.j3md 2015-07-03 23:33:19 +02:00
Kirill Vainer
0178029782 Example to show character model cloning / export 2015-05-03 16:02:25 -04:00
Kirill Vainer
55d3a5dd15 UnshadedArray: does not require gpu shader extension 2015-05-02 15:27:28 -04:00
iwgeric
a52bc0a82c Bullet (and jBullet): Update Test Classes to use BulletAppState.setDebugEnabled instead of PhysicsSpace.enableDebug. 2015-04-26 19:21:00 -04:00
shadowislord
87b6c117f2 TestSweepTest: ignore collisions against ourselves (needed for native bullet) 2015-03-28 13:23:00 -04:00
shadowislord
38e4580857 TestSweepTest: fix crash on native bullet (natives not loaded when shapes are created) 2015-03-27 23:37:13 -04:00
shadowislord
83ddf9d7c3 TestCartoonEdge: more reliable way to detect lighting material 2015-03-18 23:15:11 -04:00
Nehon
96502e9061 Fixed crash in TestFilterCompositing.
Something is till odd though
2015-03-18 23:51:02 +01:00
Nehon
39515c52c7 Relocated the character in TestWalkingChar so that it doesn't fall under the ground 2015-03-18 22:12:59 +01:00
Rémy Bouquet
46c00c95b3 Merge pull request #226 from jMonkeyEngine/pr/223
Obsolete shadowRecv and sceneReceivers code cleanup
2015-03-03 22:35:25 +01:00
Nehon
a6a2059ef8 Removed deprecated methods calls in TestPointDirectinalAndSpotLightShadows 2015-03-03 22:30:44 +01:00
Nehon
a78d8a7bd0 Test for parallel tangent generation 2015-03-03 21:51:07 +01:00
Nehon
3d720e164e Changed the keys in tessellation test case so that it doesn't step on movement keys 2015-03-03 21:41:50 +01:00
Kirill Vainer
273f3a6e62 Merge pull request #220 from zzuegg/master
Geometry shader and Tessellation shader support
2015-03-02 10:01:08 -05:00
shadowislord
a374e73376 AssetManager: adjust usage according to latest changes 2015-03-01 15:14:30 -05:00
michael
1cce72cd0a Allow modifing of the tess factor with keys a and y 2015-02-28 13:53:36 +01:00
michael
690dd7bf28 Added Geometry and Tessellation Shader Tests 2015-02-28 13:40:10 +01:00
michael
cae4e1996a GL4ShaderSupport 2015-02-24 21:53:08 +01:00
shadowislord
2f86e0c17b Delete TestTriangleStrip
- since triangle stripper was removed, this test was not compiling
2015-02-22 16:04:01 -05:00
shadowislord
14ff6e4f29 SinglePass Lighting: support two sided lighting
- also added test case with both regular per pixel lighting and bump mapping
 - NOTE: two sided lighting is not supported with vertex lighting
2015-02-22 15:47:56 -05:00
Nehon
21179dc132 Changed standard lighting to blinn phong instead of phong only 2015-02-18 20:39:45 +01:00
void
d4ade2473f feature: Update Nifty GUI to version 1.4.1
This commit updates Nifty to version 1.4.1 and makes all
the necessary changes to the JME-Nifty integration to be
compatible with this version of Nifty (manily support of multiple
texture atlases in the batch renderer and some minor changes
like the removal of some *Null classes).

Most User code should still be able to compile with this change.

However, the NiftyJmeDisplay constructor that requires the
width and height of the texture atlas has been deprecated in
favour of the newly added static factory methods:
NiftyJmeDisplay.newNiftyJmeDisplay(). The new methods
add support for the Nifty BatchRenderConfiguration class that
allow further configuration of some rendering details.

The testcase jme3test.niftygui.TestNiftyGui has been modified
to use the new methods and seems to render fine for me.

Most of Nifty 1.4.1 should be compatible with old versions of
Nifty. However some compile-time incompatibilities might
exists to old 1.3.x code. Additionally some internal mechanism
have been modified with 1.4 so there might be additional runtime
incompatibilities as well.
2015-02-15 23:17:18 +01:00
shadowislord
809092c236 Allow application to be a resizable window.
Also allow buffer swapping to be disabled, e.g. for Oculus Rift.
2015-02-10 20:14:36 -05:00
shadowislord
e19be328a7 Add simple test case for the "scene not updated" crash in the SDK 2015-02-08 17:42:07 -05:00
shadowislord
7bd07d144e TestRenderToMemory to use the same read-back method as AwtPanels 2015-01-31 12:57:54 -05:00
shadowislord
a676c51a50 * Test the RGB565 format in TestImageRaster (since it is supported on all platforms) 2015-01-23 22:44:38 -05:00