5512 Commits

Author SHA1 Message Date
Paul Speed
2bdb3de2f5 Started implementing the JmeCloneable stuff for Spatial
and Mesh.  Still need to catch some of the outer subclasses of
Node and Geometry.  Nothing is hooked up or tested yet.
2016-03-25 04:31:10 -04:00
Rémy Bouquet
911b4be868 Merge pull request #455 from MeFisto94/SplineIssue
Fixed a NPE when Serializing a Spline without points.
2016-03-23 23:01:21 +01:00
Nehon
5970444b9c Fixed an issue with previous commit on shadows, in the glsl100 shader 2016-03-22 18:08:07 +01:00
Kirill Vainer
4d2542c1ed Merge pull request #448 from Dokthar/hoveringtank
fix NPE in hovering tank test, running with native bullet
2016-03-22 11:11:48 -04:00
Nehon
493855bac9 LineWidth is now a RenderState parameter, One can change the lineWidth used to render a mesh wireframe or a mesh in Lines mode by using material.getAdditionalRenderState().setLineWidth(value) 2016-03-20 21:36:28 +01:00
MeFisto94
8477fa781b Fixed another NPE when missing serialized waypoints and fixed having different names for write/read 2016-03-20 20:25:39 +01:00
Nehon
c4525aa550 Fixed MotionEvent clone for Spatial as it was resulting in controls added twice to the spatial. Also removed a useless line in all the constructors. 2016-03-20 18:56:29 +01:00
MeFisto94
23fe0658a6 Fixed a NPE when Serializing a Spline without points. Also fixed a Typo. 2016-03-20 12:45:19 +01:00
Paul Speed
8b1ddbe60f First round of getting JmeCloneable implemented... added
support for Cloner to the controls that implemented cloneForSpatial().
Unused until spatial cloning is implemented.
2016-03-20 02:47:16 -04:00
jmekaelthas
197b9c28e8 Merge branch 'master' of https://github.com/jMonkeyEngine/jmonkeyengine.git 2016-03-17 18:14:47 +01:00
jmekaelthas
a9a1544681 Merge branch 'master' of https://github.com/jMonkeyEngine/jmonkeyengine.git 2016-03-17 18:05:57 +01:00
Nehon
b218f4104e Forgot to commit the change in the Cornell box model 2016-03-17 18:05:53 +01:00
jmekaelthas
be3dc06e28 Bugfix: fixed a bug that caused NPE during vertex groups loading when
mesh block was saved without its parent.
2016-03-17 18:05:27 +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
107123820b Fixed material exporting NPE when the additionalRenderState is null 2016-03-17 14:04:48 +01:00
iwgeric
ef35af958b Remove logging on touch events 2016-03-17 08:57:21 -04:00
Rémy Bouquet
c3d12f0e4a Merge pull request #444 from InShadow/master
Added public method getGeometry on Batch class.
2016-03-16 09:20:29 +01:00
jmekaelthas
13f68c623c Bugfix: fixed small bug in face triangulation and several computations
in the Edge class.
2016-03-15 17:24:23 +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
Paul Speed
0b487ee9f3 Moved the file writing in screen shot app state to its own
method... 1) because it's a little cleaner, 2) because it means
subclasses can hook it if desired.
v3.1.0-alpha3
2016-03-13 04:44:54 -04:00
Nehon
f391b9c3aa Made AbstractControl Implement Cloneable 2016-03-12 19:07:41 +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
Kirill Vainer
93b7be9b83 Merge pull request #446 from NemesisMate/patch-6
Missing getHeight present on jbullet
2016-03-11 20:52:54 -05:00
Nehon
e0ffff3af0 Better test for material loading, also ensured that the J3MExporter writes UTF-8 files 2016-03-11 21:27:46 +01:00
NemesisMate
5c1d442b00 Missing getHeight present on jbullet
Well, I found that I'm using this on my code with jbullet but is not present on bullet version so here it is.
2016-03-11 18:11:33 +00:00
Nehon
3245c9ac89 Silence test...anyway who does tests? 2016-03-11 18:58:53 +01:00
Nehon
d1e707feb0 Testing something so the Test can properly Test the Test I want it to Test 2016-03-11 18:36:53 +01:00
Nehon
bcea9bfe51 Better regex testing in TestMaterialWrite 2016-03-11 18:16:48 +01:00
Nehon
5e6d2e8ca3 J3MExporter : allows to save Materials to j3m files.
Added proper test in jme3-plugins
2016-03-11 17:45:29 +01:00
Nehon
cb56fd88eb For some reason the J3MLoader never loads the material name. Not that it's really important, but since we have the name field... let's read it... 2016-03-11 17:45:29 +01:00
Paul Speed
f83c7006f0 Removed some cloneForSpatial() methods that weren't doing anything
that the super class would do.
Adding @Override to cloneForSpatial() methods in jme3-core controls
and CloneableTracks.
2016-03-11 05:46:31 -05:00
Paul Speed
eb2e2f4cdc Adding @Override to cloneForSpatial() methods in examples. 2016-03-11 05:45:18 -05:00
Paul Speed
2b81011668 Adding @Override to cloneForSpatial() methods in terrain lib. 2016-03-11 05:38:32 -05:00
Paul Speed
20f62cbd64 Adding @Override to cloneForSpatial() methods in bullet lib. 2016-03-11 05:37:07 -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
68425480cb Removed a bit of commented out dead code. 2016-03-10 03:45:11 -05:00
InShadow
947904b71d Added public method getGeometry on Batch class. 2016-03-09 07:49:07 -08: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
70154f1b1d Added a simple deep cloning that can replace all of our odd post-fixup
piece-meal stuff with proper full-object-graph shared reference cloning.
2016-03-09 00:54:01 -05:00
Paul Speed
35de6bd6d3 Upping source compatibility to 1.7. Even 1.7 is end-of-lifed by now
but at least it's newer than the ancient 1.6.
2016-03-09 00:52:39 -05:00
Nehon
838978ed15 Null check for the renderFrameBuffer of the fpp when cleaning up the fpp. It may be null if multisampling is enabled. 2016-03-08 21:00:24 +01:00
Rémy Bouquet
3bce0f4f1a Merge pull request #443 from MeFisto94/Issue442
Fixes #442 - Add 64bit detection for the armv7 platform
2016-03-08 00:17:14 +01: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
MeFisto94
870f84c6c6 Fixes #442 - Add 64bit detection for the armv7 platform 2016-03-07 23:28:25 +01: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
Daniel Johansson
9f9cb824cd Fixed an issue with J3MLoader thinking certain texture path patterns with new texture options still looked like old style and hence ignoring new options and getting the texture path wrong. 2016-03-07 16:38:43 +00:00
Daniel Johansson
e530fa644b Merged with master after pull. 2016-03-07 16:36:43 +00:00