695 Commits

Author SHA1 Message Date
Paul Speed
7665fef2de ParticleEmitter and related classes (ugh) now implement JmeCloneable.
It hasn't replaced the old clone() method yet and is still untested.
2016-03-26 03:46:48 -04:00
Paul Speed
6e999aa79b Tired of committing around the generated version.prpoerties
file... so I'm remove it and fixing it with a .gitignore.
2016-03-26 03:45:34 -04:00
Rémy Bouquet
27f6f85dab Merge pull request #454 from MeFisto94/MECloneIssue
Allow MotionEvents to be cloned (NPE)
2016-03-26 00:39:09 +01:00
Nehon
07088452ff Fixed binormal calculation in Single pass lighting 2016-03-25 23:49:07 +01:00
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
MeFisto94
665908cdee Improved the MotionEvent Cloning to not throw an NPE or edit constant Vectors 2016-03-24 20:52:17 +01: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
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
MeFisto94
15c9c083cd Allow MotionEvents to be cloned 2016-03-20 10:11:04 +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
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
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
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.
2016-03-13 04:44:54 -04:00
Nehon
f391b9c3aa Made AbstractControl Implement Cloneable 2016-03-12 19:07:41 +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
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
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
Kirill Vainer
87af1f30b0 MPO: clone MPOs instead of sharing references 2016-03-08 19:36:40 -05:00
Kirill Vainer
e691de4459 fix null checks 2016-03-08 19:34:43 -05:00
Kirill Vainer
2dafd1e485 MPO: add null override list check 2016-03-08 19:33:51 -05:00
Kirill Vainer
c586bacbb0 MPO: clear param for null textures 2016-03-08 19:32:19 -05:00
Kirill Vainer
fde095458e MPO: add javadoc 2016-03-08 15:16:55 -05:00
Kirill Vainer
e8fd22223a MPO: use List instead of ArrayList
Also rename get*Overrides to get*MatParamOverrides to be more specific.
2016-03-08 15:15:53 -05:00
Kirill Vainer
53d3b72478 MPO: add ability to disable an override 2016-03-08 15:14:00 -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
MeFisto94
870f84c6c6 Fixes #442 - Add 64bit detection for the armv7 platform 2016-03-07 23:28:25 +01: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
Nehon
f14e609287 Updated MatParam.getAsString to reflect recent change on j3m texture parameter format 2016-03-07 00:30:20 +01:00
Kirill Vainer
2cdb4a8486 spatial: fix bug in remove/clear MPO
add unit test for those methods
2016-03-05 19:31:26 -05:00
Kirill Vainer
152a7638cd material: fix sort id unit test failure 2016-03-05 19:30:28 -05:00
Kirill Vainer
adc5084f5d MPO: implement overrides on uniforms and add test 2016-03-05 19:05:36 -05:00
Kirill Vainer
42d76cfd29 MPO: implement propagation and add test 2016-03-05 19:02:16 -05:00
Kirill Vainer
ba22487c38 material: move technique logic into its own package 2016-03-05 18:59:04 -05:00
Kirill Vainer
00b6d904af add StaticPassLightingLogic 2016-03-05 17:33:16 -05:00
Kirill Vainer
655457ab6a Merge branch 'master' into experimental 2016-03-04 19:55:01 -05:00
Kirill Vainer
18dc729d6a Merge branch 'BorealFeast-master' 2016-03-04 19:52:52 -05:00
Kirill Vainer
b431d16981 Cylinder: fix incorrect axis samples for closed 2016-03-04 19:51:18 -05:00
Kirill Vainer
7639657fc1 initial implementation of MPO (untested!) 2016-03-04 16:59:15 -05:00
InShadow
6c9cd46e11 Corrected spelling mistake. 2016-03-03 21:57:19 -08:00
Teencrusher
5468a48050 Removed the modification of the input parameter that lead to a wrong axisSamples member then the cylinder was closed 2016-03-03 13:23:04 -05:00
Kirill Vainer
2f218f0cdb Merge pull request #435 from AlrikG/BoneAnimationBindTransformBug
Bone animation bind transform bug
2016-03-02 17:11:05 -05:00